Fix trailing commas in array literals changing the result of sizeof().

This commit is contained in:
David Anderson
2014-11-08 23:15:23 -08:00
parent 4c377f21f9
commit 099f299113
3 changed files with 44 additions and 2 deletions
+11
View File
@@ -464,6 +464,7 @@ enum TokenKind {
tSYMBOL,
tLABEL,
tSTRING,
tPENDING_STRING, /* string, but not yet dequeued */
tEXPR, /* for assigment to "lastst" only (see SC1.C) */
tENDLESS, /* endless loop, for assigment to "lastst" only */
tEMPTYBLOCK, /* empty blocks for AM bug 4825 */
@@ -960,4 +961,14 @@ enum FatalError {
FATAL_ERRORS_TOTAL
};
struct AutoDisableLiteralQueue
{
public:
AutoDisableLiteralQueue();
~AutoDisableLiteralQueue();
private:
bool prev_value_;
};
#endif /* SC_H_INCLUDED */