summaryrefslogtreecommitdiff
path: root/src/glsl/pp/sl_pp_token.h
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-09-24 08:43:05 +0200
committerMichal Krol <michal@vmware.com>2009-09-24 08:43:05 +0200
commit9a1447d449209635e481c7f9bd02084864e17419 (patch)
tree8b7d0383cb0cd96f4c0cf15e53a12cd1577b103b /src/glsl/pp/sl_pp_token.h
parent8212e4d9fabb0c441575975c12d656364baba6fe (diff)
glsl/pp: Store both line number and file index in a single token.
Diffstat (limited to 'src/glsl/pp/sl_pp_token.h')
-rw-r--r--src/glsl/pp/sl_pp_token.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/glsl/pp/sl_pp_token.h b/src/glsl/pp/sl_pp_token.h
index 2a7b79ea3f..b1f3389b32 100644
--- a/src/glsl/pp/sl_pp_token.h
+++ b/src/glsl/pp/sl_pp_token.h
@@ -96,7 +96,6 @@ enum sl_pp_token {
SL_PP_EXTENSION_DISABLE,
SL_PP_LINE,
- SL_PP_FILE,
SL_PP_EOF
};
@@ -108,8 +107,10 @@ union sl_pp_token_data {
char other;
int pragma;
int extension;
- unsigned int line;
- unsigned int file;
+ union {
+ unsigned int lineno: 24;
+ unsigned int fileno: 8;
+ } line;
};
struct sl_pp_token_info {