Fix trailing commas in array literals changing the result of sizeof().
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user