diff options
author | Michal Krol <[email protected]> | 2009-09-24 08:43:05 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-24 08:43:05 +0200 |
commit | 9a1447d449209635e481c7f9bd02084864e17419 (patch) | |
tree | 8b7d0383cb0cd96f4c0cf15e53a12cd1577b103b /src/glsl/pp/sl_pp_process.c | |
parent | 8212e4d9fabb0c441575975c12d656364baba6fe (diff) |
glsl/pp: Store both line number and file index in a single token.
Diffstat (limited to 'src/glsl/pp/sl_pp_process.c')
-rw-r--r-- | src/glsl/pp/sl_pp_process.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/glsl/pp/sl_pp_process.c b/src/glsl/pp/sl_pp_process.c index ab2f2d8eb45..67ed5888187 100644 --- a/src/glsl/pp/sl_pp_process.c +++ b/src/glsl/pp/sl_pp_process.c @@ -79,7 +79,8 @@ sl_pp_process(struct sl_pp_context *context, struct sl_pp_token_info ti; ti.token = SL_PP_LINE; - ti.data.line = context->line - 1; + ti.data.line.lineno = context->line - 1; + ti.data.line.fileno = context->file; if (sl_pp_process_out(&state, &ti)) { strcpy(context->error_msg, "out of memory"); return -1; |