diff src/syntax.c @ 10457:2ab3bd0288a9

Change all occurences of SWITCH_ENUM_BUG to use SWITCH_ENUM_CAST instead.
author Karl Heuer <kwzh@gnu.org>
date Wed, 18 Jan 1995 20:52:48 +0000
parents f918fd077a9f
children e805ef6b931c
line wrap: on
line diff
--- a/src/syntax.c	Wed Jan 18 20:47:36 1995 +0000
+++ b/src/syntax.c	Wed Jan 18 20:52:48 1995 +0000
@@ -1,5 +1,5 @@
 /* GNU Emacs routines to deal with syntax tables; also word and list parsing.
-   Copyright (C) 1985, 1987, 1993, 1994 Free Software Foundation, Inc.
+   Copyright (C) 1985, 1987, 1993, 1994, 1995 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -401,11 +401,7 @@
 
   insert_string ("\twhich means: ");
 
-#ifdef SWITCH_ENUM_BUG
-  switch ((int) code)
-#else
-  switch (code)
-#endif
+  switch (SWITCH_ENUM_CAST (code))
     {
     case Swhitespace:
       insert_string ("whitespace"); break;
@@ -905,11 +901,7 @@
 	  if (SYNTAX_PREFIX (c))
 	    continue;
 
-#ifdef SWITCH_ENUM_BUG
-	  switch ((int) code)
-#else
-	  switch (code)
-#endif
+	  switch (SWITCH_ENUM_CAST (code))
 	    {
 	    case Sescape:
 	    case Scharquote:
@@ -922,11 +914,7 @@
 	      /* This word counts as a sexp; return at end of it. */
 	      while (from < stop)
 		{
-#ifdef SWITCH_ENUM_BUG
-		  switch ((int) SYNTAX (FETCH_CHAR (from)))
-#else
-		  switch (SYNTAX (FETCH_CHAR (from)))
-#endif
+		  switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from))))
 		    {
 		    case Scharquote:
 		    case Sescape:
@@ -1001,11 +989,7 @@
 		{
 		  if (from >= stop) goto lose;
 		  if (FETCH_CHAR (from) == stringterm) break;
-#ifdef SWITCH_ENUM_BUG
-		  switch ((int) SYNTAX (FETCH_CHAR (from)))
-#else
-		  switch (SYNTAX (FETCH_CHAR (from)))
-#endif
+		  switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from))))
 		    {
 		    case Scharquote:
 		    case Sescape:
@@ -1059,11 +1043,7 @@
 	  if (SYNTAX_PREFIX (c))
 	    continue;
 
-#ifdef SWITCH_ENUM_BUG
-	  switch ((int) (quoted ? Sword : code))
-#else
-	  switch (quoted ? Sword : code)
-#endif
+	  switch (SWITCH_ENUM_CAST (quoted ? Sword : code))
 	    {
 	    case Sword:
 	    case Ssymbol:
@@ -1466,11 +1446,7 @@
 
       if (SYNTAX_PREFIX (FETCH_CHAR (from - 1)))
 	continue;
-#ifdef SWITCH_ENUM_BUG
-      switch ((int) code)
-#else
-      switch (code)
-#endif
+      switch (SWITCH_ENUM_CAST (code))
 	{
 	case Sescape:
 	case Scharquote:
@@ -1488,11 +1464,7 @@
 	symstarted:
 	  while (from < end)
 	    {
-#ifdef SWITCH_ENUM_BUG
-	      switch ((int) SYNTAX (FETCH_CHAR (from)))
-#else
-	      switch (SYNTAX (FETCH_CHAR (from)))
-#endif
+	      switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from))))
 		{
 		case Scharquote:
 		case Sescape:
@@ -1583,11 +1555,7 @@
 	    {
 	      if (from >= end) goto done;
 	      if (FETCH_CHAR (from) == state.instring) break;
-#ifdef SWITCH_ENUM_BUG
-	      switch ((int) SYNTAX (FETCH_CHAR (from)))
-#else
-	      switch (SYNTAX (FETCH_CHAR (from)))
-#endif
+	      switch (SWITCH_ENUM_CAST (SYNTAX (FETCH_CHAR (from))))
 		{
 		case Scharquote:
 		case Sescape: