diff options
author | Michal Krol <[email protected]> | 2009-09-17 12:12:34 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-17 12:12:34 +0200 |
commit | ce8f486156f5c4b28b51954ea862675275c38f6d (patch) | |
tree | 246d6a675c01d4350de0f8cd8d8622ea60311713 /src/glsl/pp/sl_pp_dict.c | |
parent | 0ddf41d34d511b339e0bb5a59673765f1bf0b3a5 (diff) |
slang/pp: Use a dictionary for the remaining string literals.
Diffstat (limited to 'src/glsl/pp/sl_pp_dict.c')
-rw-r--r-- | src/glsl/pp/sl_pp_dict.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_dict.c b/src/glsl/pp/sl_pp_dict.c index 65b91d9e989..f2885c763d7 100644 --- a/src/glsl/pp/sl_pp_dict.c +++ b/src/glsl/pp/sl_pp_dict.c @@ -52,5 +52,32 @@ sl_pp_dict_init(struct sl_pp_context *context) ADD_NAME(context, warn); ADD_NAME(context, disable); + ADD_NAME(context, defined); + + ADD_NAME_STR(context, ___LINE__, "__LINE__"); + ADD_NAME_STR(context, ___FILE__, "__FILE__"); + ADD_NAME(context, __VERSION__); + + ADD_NAME(context, optimize); + ADD_NAME(context, debug); + + ADD_NAME(context, off); + ADD_NAME(context, on); + + ADD_NAME(context, define); + ADD_NAME(context, elif); + ADD_NAME_STR(context, _else, "else"); + ADD_NAME(context, endif); + ADD_NAME(context, error); + ADD_NAME(context, extension); + ADD_NAME_STR(context, _if, "if"); + ADD_NAME(context, ifdef); + ADD_NAME(context, ifndef); + ADD_NAME(context, line); + ADD_NAME(context, pragma); + ADD_NAME(context, undef); + + ADD_NAME(context, version); + return 0; } |