Consolidate all token length limits (1024), including one bad one (80) hardcoded on the stack (issue #40, issue #41).
This commit is contained in:
parent
1070e629a9
commit
f330f08129
9 changed files with 74 additions and 23 deletions
|
|
@ -102,15 +102,13 @@ public:
|
|||
}
|
||||
bool operator!=(const TPpToken& right) { return ! operator==(right); }
|
||||
|
||||
static const int maxTokenLength = 1024;
|
||||
|
||||
TSourceLoc loc;
|
||||
int token;
|
||||
bool space; // true if a space (for white space or a removed comment) should also be recognized, in front of the token returned
|
||||
int ival;
|
||||
double dval;
|
||||
int atom;
|
||||
char name[maxTokenLength+1];
|
||||
char name[MaxTokenLength + 1];
|
||||
};
|
||||
|
||||
class TInputScanner;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue