This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Remove trailing comma after last enum constant


The IBM C compiler doesn't like a comma after the last enum constant.
Patch below against 6.1.

-- 
albert chin (china@thewrittenword.com)

-- snip snip
2004-06-02  Albert Chin-A-Young  <china@thewrittenword.com>

	* gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
	after last enum constant to avoid error from IBM C
	compiler.

--- gdb/dictionary.c.orig	2004-05-27 00:32:12.512651000 -0500
+++ gdb/dictionary.c	2004-05-27 00:32:17.258512000 -0500
@@ -99,7 +99,7 @@
     /* Symbols are stored in a fixed-size array.  */
     DICT_LINEAR,
     /* Symbols are stored in an expandable array.  */
-    DICT_LINEAR_EXPANDABLE,
+    DICT_LINEAR_EXPANDABLE
   };
 
 /* The virtual function table.  */
--- gdb/gdbtypes.h.orig	2004-05-27 01:52:39.396450000 -0500
+++ gdb/gdbtypes.h	2004-05-27 01:52:54.021469000 -0500
@@ -136,7 +136,7 @@
     TYPE_CODE_TEMPLATE,		/* C++ template */
     TYPE_CODE_TEMPLATE_ARG,	/* C++ template arg */
 
-    TYPE_CODE_NAMESPACE,	/* C++ namespace.  */
+    TYPE_CODE_NAMESPACE		/* C++ namespace.  */
   };
 
 /* For now allow source to use TYPE_CODE_CLASS for C++ classes, as an


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]