diff options
author | Michal Krol <[email protected]> | 2009-09-16 19:24:50 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-16 19:24:50 +0200 |
commit | eeb5202e5ddf1cc95c35d46fd425afd0695b85bb (patch) | |
tree | bdf22a4858cf54bb46c9766dcc3443deca016a1a /src/mesa/shader/grammar/grammar.h | |
parent | 0f302b60fd6d43a47e208979d0677e09f4a802fc (diff) |
slang: Invoke the preprocessor from withing the slang compiler.
This allows us to validate the shader version number.
Diffstat (limited to 'src/mesa/shader/grammar/grammar.h')
-rw-r--r-- | src/mesa/shader/grammar/grammar.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mesa/shader/grammar/grammar.h b/src/mesa/shader/grammar/grammar.h index 151b5f082b9..c3c21659d6c 100644 --- a/src/mesa/shader/grammar/grammar.h +++ b/src/mesa/shader/grammar/grammar.h @@ -69,8 +69,13 @@ int grammar_set_reg8 (grammar id, const byte *name, byte value); <estimate_prod_size> is a hint - the initial production buffer size will be of this size, but if more room is needed it will be safely resized; set it to 0x1000 or so */ -int grammar_fast_check (grammar id, const byte *text, byte **prod, unsigned int *size, - unsigned int estimate_prod_size); +int +grammar_fast_check (grammar id, + struct sl_pp_context *context, + struct sl_pp_token_info *tokens, + byte **prod, + unsigned int *size, + unsigned int estimate_prod_size); /* destroys grammar object identified by <id> |