If that many words cannot be found before the end of the buffer, return 0.
COUNT negative means scan backward and stop at word beginning. */
+int
scan_words (from, count)
register int from, count;
{
int found;
int from_byte = CHAR_TO_BYTE (from);
int out_bytepos, out_charpos;
+ int temp;
if (depth > 0) min_depth = 0;
while (from < stop)
{
UPDATE_SYNTAX_TABLE_FORWARD (from);
- switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from_byte))))
+
+ /* Some compilers can't handle this inside the switch. */
+ temp = SYNTAX (FETCH_CHAR (from_byte));
+ switch (temp)
{
case Scharquote:
case Sescape:
? (FETCH_CHAR (from_byte) == stringterm)
: SYNTAX (FETCH_CHAR (from_byte)) == Sstring_fence)
break;
- switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from_byte))))
+
+ /* Some compilers can't handle this inside the switch. */
+ temp = SYNTAX (FETCH_CHAR (from_byte));
+ switch (temp)
{
case Scharquote:
case Sescape:
int prev_from_syntax;
int boundary_stop = commentstop == -1;
int nofence;
+ int temp;
prev_from = from;
prev_from_byte = from_byte;
symstarted:
while (from < end)
{
- switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from_byte))))
+ /* Some compilers can't handle this inside the switch. */
+ temp = SYNTAX (FETCH_CHAR (from_byte));
+ switch (temp)
{
case Scharquote:
case Sescape:
if (from >= end) goto done;
c = FETCH_CHAR (from_byte);
if (nofence && c == state.instring) break;
- switch (SWITCH_ENUM_CAST (SYNTAX (c)))
+
+ /* Some compilers can't handle this inside the switch. */
+ temp = SYNTAX (c);
+ switch (temp)
{
case Sstring_fence:
if (!nofence) goto string_end;
Qnil)))))))));
}
\f
+void
init_syntax_once ()
{
register int i, c;
}
}
+void
syms_of_syntax ()
{
Qsyntax_table_p = intern ("syntax-table-p");