[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] treecc ChangeLog,1.91,1.92 gen_c.c,1.8,1.9
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] treecc ChangeLog,1.91,1.92 gen_c.c,1.8,1.9 |
Date: |
Tue, 02 Dec 2003 23:16:49 +0000 |
Update of /cvsroot/dotgnu-pnet/treecc
In directory subversions:/tmp/cvs-serv6912
Modified Files:
ChangeLog gen_c.c
Log Message:
Don't put a trailing comma on "enum" definitions, because strict ANSI
C compilers don't like them (thanks to Miroslaw Dobrzanski-Neumann).
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/treecc/ChangeLog,v
retrieving revision 1.91
retrieving revision 1.92
diff -C2 -d -r1.91 -r1.92
*** ChangeLog 20 Nov 2003 00:16:09 -0000 1.91
--- ChangeLog 2 Dec 2003 23:16:47 -0000 1.92
***************
*** 1,3 ****
--- 1,9 ----
+ 2003-12-03 Rhys Weatherley <address@hidden>
+
+ * gen_c.c, tests/output15.out, tests/output7.out, tests/output8.out:
+ don't put a trailing comma on "enum" definitions, because strict ANSI
+ C compilers don't like them (thanks to Miroslaw Dobrzanski-Neumann).
+
2003-11-20 Gopal.V <address@hidden>
Index: gen_c.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/treecc/gen_c.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** gen_c.c 5 Jul 2003 11:05:57 -0000 1.8
--- gen_c.c 2 Dec 2003 23:16:47 -0000 1.9
***************
*** 165,170 ****
{
/* Define an enumerated type */
TreeCCNode *child;
! TreeCCStreamPrint(stream, "typedef enum {\n");
child = node->firstChild;
while(child != 0)
--- 165,171 ----
{
/* Define an enumerated type */
+ char const *sep = "\n";
TreeCCNode *child;
! TreeCCStreamPrint(stream, "typedef enum {");
child = node->firstChild;
while(child != 0)
***************
*** 172,180 ****
if((child->flags & TREECC_NODE_ENUM_VALUE) != 0)
{
! TreeCCStreamPrint(stream, "\t%s,\n",
child->name);
}
child = child->nextSibling;
}
! TreeCCStreamPrint(stream, "} %s;\n\n", node->name);
}
else if((node->flags & TREECC_NODE_ENUM_VALUE) == 0)
--- 173,182 ----
if((child->flags & TREECC_NODE_ENUM_VALUE) != 0)
{
! TreeCCStreamPrint(stream, "%s\t%s", sep,
child->name);
! sep = ",\n";
}
child = child->nextSibling;
}
! TreeCCStreamPrint(stream, "\n} %s;\n\n", node->name);
}
else if((node->flags & TREECC_NODE_ENUM_VALUE) == 0)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] treecc ChangeLog,1.91,1.92 gen_c.c,1.8,1.9,
Rhys Weatherley <address@hidden> <=
- Prev by Date:
[Dotgnu-pnet-commits] treecc/tests output15.out, 1.2, 1.3 output7.out, 1.4, 1.5 output8.out, 1.4, 1.5
- Next by Date:
[Dotgnu-pnet-commits] pnet/support regex.c,1.2,1.3
- Previous by thread:
[Dotgnu-pnet-commits] treecc/tests output15.out, 1.2, 1.3 output7.out, 1.4, 1.5 output8.out, 1.4, 1.5
- Next by thread:
[Dotgnu-pnet-commits] pnet/support regex.c,1.2,1.3
- Index(es):