diff options
| author | Karl Heuer | 1995-01-18 20:52:48 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-01-18 20:52:48 +0000 |
| commit | 0220c51857539b3bf812c3c0948efaa3429c3852 (patch) | |
| tree | 98f18803cb65ab459c3e4e87b367b4a42da74489 /src/syntax.c | |
| parent | c1d4ff308d5e9d24b4c3cc95b5fa9b3ad4af42a8 (diff) | |
| download | emacs-0220c51857539b3bf812c3c0948efaa3429c3852.tar.gz emacs-0220c51857539b3bf812c3c0948efaa3429c3852.zip | |
Change all occurences of SWITCH_ENUM_BUG to use SWITCH_ENUM_CAST instead.
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 50 |
1 files changed, 9 insertions, 41 deletions
diff --git a/src/syntax.c b/src/syntax.c index 8aeb5bdd519..46f9ddd77e2 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* GNU Emacs routines to deal with syntax tables; also word and list parsing. | 1 | /* GNU Emacs routines to deal with syntax tables; also word and list parsing. |
| 2 | Copyright (C) 1985, 1987, 1993, 1994 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 1987, 1993, 1994, 1995 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -401,11 +401,7 @@ describe_syntax (value) | |||
| 401 | 401 | ||
| 402 | insert_string ("\twhich means: "); | 402 | insert_string ("\twhich means: "); |
| 403 | 403 | ||
| 404 | #ifdef SWITCH_ENUM_BUG | 404 | switch (SWITCH_ENUM_CAST (code)) |
| 405 | switch ((int) code) | ||
| 406 | #else | ||
| 407 | switch (code) | ||
| 408 | #endif | ||
| 409 | { | 405 | { |
| 410 | case Swhitespace: | 406 | case Swhitespace: |
| 411 | insert_string ("whitespace"); break; | 407 | insert_string ("whitespace"); break; |
| @@ -905,11 +901,7 @@ scan_lists (from, count, depth, sexpflag) | |||
| 905 | if (SYNTAX_PREFIX (c)) | 901 | if (SYNTAX_PREFIX (c)) |
| 906 | continue; | 902 | continue; |
| 907 | 903 | ||
| 908 | #ifdef SWITCH_ENUM_BUG | 904 | switch (SWITCH_ENUM_CAST (code)) |
| 909 | switch ((int) code) | ||
| 910 | #else | ||
| 911 | switch (code) | ||
| 912 | #endif | ||
| 913 | { | 905 | { |
| 914 | case Sescape: | 906 | case Sescape: |
| 915 | case Scharquote: | 907 | case Scharquote: |
| @@ -922,11 +914,7 @@ scan_lists (from, count, depth, sexpflag) | |||
| 922 | /* This word counts as a sexp; return at end of it. */ | 914 | /* This word counts as a sexp; return at end of it. */ |
| 923 | while (from < stop) | 915 | while (from < stop) |
| 924 | { | 916 | { |
| 925 | #ifdef SWITCH_ENUM_BUG | 917 | switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from)))) |
| 926 | switch ((int) SYNTAX (FETCH_CHAR (from))) | ||
| 927 | #else | ||
| 928 | switch (SYNTAX (FETCH_CHAR (from))) | ||
| 929 | #endif | ||
| 930 | { | 918 | { |
| 931 | case Scharquote: | 919 | case Scharquote: |
| 932 | case Sescape: | 920 | case Sescape: |
| @@ -1001,11 +989,7 @@ scan_lists (from, count, depth, sexpflag) | |||
| 1001 | { | 989 | { |
| 1002 | if (from >= stop) goto lose; | 990 | if (from >= stop) goto lose; |
| 1003 | if (FETCH_CHAR (from) == stringterm) break; | 991 | if (FETCH_CHAR (from) == stringterm) break; |
| 1004 | #ifdef SWITCH_ENUM_BUG | 992 | switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from)))) |
| 1005 | switch ((int) SYNTAX (FETCH_CHAR (from))) | ||
| 1006 | #else | ||
| 1007 | switch (SYNTAX (FETCH_CHAR (from))) | ||
| 1008 | #endif | ||
| 1009 | { | 993 | { |
| 1010 | case Scharquote: | 994 | case Scharquote: |
| 1011 | case Sescape: | 995 | case Sescape: |
| @@ -1059,11 +1043,7 @@ scan_lists (from, count, depth, sexpflag) | |||
| 1059 | if (SYNTAX_PREFIX (c)) | 1043 | if (SYNTAX_PREFIX (c)) |
| 1060 | continue; | 1044 | continue; |
| 1061 | 1045 | ||
| 1062 | #ifdef SWITCH_ENUM_BUG | 1046 | switch (SWITCH_ENUM_CAST (quoted ? Sword : code)) |
| 1063 | switch ((int) (quoted ? Sword : code)) | ||
| 1064 | #else | ||
| 1065 | switch (quoted ? Sword : code) | ||
| 1066 | #endif | ||
| 1067 | { | 1047 | { |
| 1068 | case Sword: | 1048 | case Sword: |
| 1069 | case Ssymbol: | 1049 | case Ssymbol: |
| @@ -1466,11 +1446,7 @@ scan_sexps_forward (stateptr, from, end, targetdepth, | |||
| 1466 | 1446 | ||
| 1467 | if (SYNTAX_PREFIX (FETCH_CHAR (from - 1))) | 1447 | if (SYNTAX_PREFIX (FETCH_CHAR (from - 1))) |
| 1468 | continue; | 1448 | continue; |
| 1469 | #ifdef SWITCH_ENUM_BUG | 1449 | switch (SWITCH_ENUM_CAST (code)) |
| 1470 | switch ((int) code) | ||
| 1471 | #else | ||
| 1472 | switch (code) | ||
| 1473 | #endif | ||
| 1474 | { | 1450 | { |
| 1475 | case Sescape: | 1451 | case Sescape: |
| 1476 | case Scharquote: | 1452 | case Scharquote: |
| @@ -1488,11 +1464,7 @@ scan_sexps_forward (stateptr, from, end, targetdepth, | |||
| 1488 | symstarted: | 1464 | symstarted: |
| 1489 | while (from < end) | 1465 | while (from < end) |
| 1490 | { | 1466 | { |
| 1491 | #ifdef SWITCH_ENUM_BUG | 1467 | switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from)))) |
| 1492 | switch ((int) SYNTAX (FETCH_CHAR (from))) | ||
| 1493 | #else | ||
| 1494 | switch (SYNTAX (FETCH_CHAR (from))) | ||
| 1495 | #endif | ||
| 1496 | { | 1468 | { |
| 1497 | case Scharquote: | 1469 | case Scharquote: |
| 1498 | case Sescape: | 1470 | case Sescape: |
| @@ -1583,11 +1555,7 @@ scan_sexps_forward (stateptr, from, end, targetdepth, | |||
| 1583 | { | 1555 | { |
| 1584 | if (from >= end) goto done; | 1556 | if (from >= end) goto done; |
| 1585 | if (FETCH_CHAR (from) == state.instring) break; | 1557 | if (FETCH_CHAR (from) == state.instring) break; |
| 1586 | #ifdef SWITCH_ENUM_BUG | 1558 | switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from)))) |
| 1587 | switch ((int) SYNTAX (FETCH_CHAR (from))) | ||
| 1588 | #else | ||
| 1589 | switch (SYNTAX (FETCH_CHAR (from))) | ||
| 1590 | #endif | ||
| 1591 | { | 1559 | { |
| 1592 | case Scharquote: | 1560 | case Scharquote: |
| 1593 | case Sescape: | 1561 | case Sescape: |