diff options
| author | Richard M. Stallman | 1998-05-09 07:39:00 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-05-09 07:39:00 +0000 |
| commit | 7c7ca3d21770be7105a0207e7e8051dae02c650a (patch) | |
| tree | 49259af927af4b71239401eac067cfd64c59d89a /src/syntax.c | |
| parent | f13c1dae6222beeea6d6798642b057f33337f3d8 (diff) | |
| download | emacs-7c7ca3d21770be7105a0207e7e8051dae02c650a.tar.gz emacs-7c7ca3d21770be7105a0207e7e8051dae02c650a.zip | |
(scan_lists, scan_sexps_forward): Move complex expressions
outside of the switch statement.
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/syntax.c b/src/syntax.c index c39e2c2ab66..5d67d11850c 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1769,6 +1769,7 @@ scan_lists (from, count, depth, sexpflag) | |||
| 1769 | int found; | 1769 | int found; |
| 1770 | int from_byte = CHAR_TO_BYTE (from); | 1770 | int from_byte = CHAR_TO_BYTE (from); |
| 1771 | int out_bytepos, out_charpos; | 1771 | int out_bytepos, out_charpos; |
| 1772 | int temp; | ||
| 1772 | 1773 | ||
| 1773 | if (depth > 0) min_depth = 0; | 1774 | if (depth > 0) min_depth = 0; |
| 1774 | 1775 | ||
| @@ -1819,7 +1820,10 @@ scan_lists (from, count, depth, sexpflag) | |||
| 1819 | while (from < stop) | 1820 | while (from < stop) |
| 1820 | { | 1821 | { |
| 1821 | UPDATE_SYNTAX_TABLE_FORWARD (from); | 1822 | UPDATE_SYNTAX_TABLE_FORWARD (from); |
| 1822 | switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from_byte)))) | 1823 | |
| 1824 | /* Some compilers can't handle this inside the switch. */ | ||
| 1825 | temp = SYNTAX (FETCH_CHAR (from_byte)); | ||
| 1826 | switch (temp) | ||
| 1823 | { | 1827 | { |
| 1824 | case Scharquote: | 1828 | case Scharquote: |
| 1825 | case Sescape: | 1829 | case Sescape: |
| @@ -1913,7 +1917,10 @@ scan_lists (from, count, depth, sexpflag) | |||
| 1913 | ? (FETCH_CHAR (from_byte) == stringterm) | 1917 | ? (FETCH_CHAR (from_byte) == stringterm) |
| 1914 | : SYNTAX (FETCH_CHAR (from_byte)) == Sstring_fence) | 1918 | : SYNTAX (FETCH_CHAR (from_byte)) == Sstring_fence) |
| 1915 | break; | 1919 | break; |
| 1916 | switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from_byte)))) | 1920 | |
| 1921 | /* Some compilers can't handle this inside the switch. */ | ||
| 1922 | temp = SYNTAX (FETCH_CHAR (from_byte)); | ||
| 1923 | switch (temp) | ||
| 1917 | { | 1924 | { |
| 1918 | case Scharquote: | 1925 | case Scharquote: |
| 1919 | case Sescape: | 1926 | case Sescape: |
| @@ -2228,6 +2235,7 @@ scan_sexps_forward (stateptr, from, from_byte, end, targetdepth, | |||
| 2228 | int prev_from_syntax; | 2235 | int prev_from_syntax; |
| 2229 | int boundary_stop = commentstop == -1; | 2236 | int boundary_stop = commentstop == -1; |
| 2230 | int nofence; | 2237 | int nofence; |
| 2238 | int temp; | ||
| 2231 | 2239 | ||
| 2232 | prev_from = from; | 2240 | prev_from = from; |
| 2233 | prev_from_byte = from_byte; | 2241 | prev_from_byte = from_byte; |
| @@ -2372,7 +2380,9 @@ do { prev_from = from; \ | |||
| 2372 | symstarted: | 2380 | symstarted: |
| 2373 | while (from < end) | 2381 | while (from < end) |
| 2374 | { | 2382 | { |
| 2375 | switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from_byte)))) | 2383 | /* Some compilers can't handle this inside the switch. */ |
| 2384 | temp = SYNTAX (FETCH_CHAR (from_byte)); | ||
| 2385 | switch (temp) | ||
| 2376 | { | 2386 | { |
| 2377 | case Scharquote: | 2387 | case Scharquote: |
| 2378 | case Sescape: | 2388 | case Sescape: |
| @@ -2481,7 +2491,10 @@ do { prev_from = from; \ | |||
| 2481 | if (from >= end) goto done; | 2491 | if (from >= end) goto done; |
| 2482 | c = FETCH_CHAR (from_byte); | 2492 | c = FETCH_CHAR (from_byte); |
| 2483 | if (nofence && c == state.instring) break; | 2493 | if (nofence && c == state.instring) break; |
| 2484 | switch (SWITCH_ENUM_CAST (SYNTAX (c))) | 2494 | |
| 2495 | /* Some compilers can't handle this inside the switch. */ | ||
| 2496 | temp = SYNTAX (c); | ||
| 2497 | switch (temp) | ||
| 2485 | { | 2498 | { |
| 2486 | case Sstring_fence: | 2499 | case Sstring_fence: |
| 2487 | if (!nofence) goto string_end; | 2500 | if (!nofence) goto string_end; |