Detect and report multiple #version directives
TRAC #12072
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@206 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/preprocessor/compile.h b/src/compiler/preprocessor/compile.h
index 9e87afc..a40b99e 100644
--- a/src/compiler/preprocessor/compile.h
+++ b/src/compiler/preprocessor/compile.h
@@ -78,7 +78,7 @@
int mostRecentToken; // Most recent token seen by the scanner
InputSrc *currentInput;
int previous_token;
- int notAVersionToken; // used to make sure that #version is the first token seen in the file, if present
+ int pastFirstStatement; // used to make sure that #version is the first statement seen in the file, if present
void *pC; // storing the parseContext of the compile object in cpp.