diff options
author | Michal Krol <[email protected]> | 2009-06-21 17:03:15 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-07 10:11:46 +0200 |
commit | 5e8e3cddae9b2797cfa525c643c701debe2f4c04 (patch) | |
tree | 8eeb6a4d1a2e72251d483620c73c5f2cc6b5d5b6 /src/glsl/pp/sl_pp_token.c | |
parent | fd991d845a5f639b9b675a4840ad234c151d56b4 (diff) |
glsl: Rename sl_pp_context_add_str to sl_pp_context_add_unique_str.
Return the same offset for same strings. Allows to compare strings
by comparing their's offsets.
Diffstat (limited to 'src/glsl/pp/sl_pp_token.c')
-rw-r--r-- | src/glsl/pp/sl_pp_token.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/pp/sl_pp_token.c b/src/glsl/pp/sl_pp_token.c index e200b961aaf..68c8fbe2ec4 100644 --- a/src/glsl/pp/sl_pp_token.c +++ b/src/glsl/pp/sl_pp_token.c @@ -53,7 +53,7 @@ _tokenise_identifier(struct sl_pp_context *context, } identifier[i++] = '\0'; - info->data.identifier = sl_pp_context_add_str(context, identifier); + info->data.identifier = sl_pp_context_add_unique_str(context, identifier); if (info->data.identifier == -1) { return -1; } @@ -91,7 +91,7 @@ _tokenise_number(struct sl_pp_context *context, } number[i++] = '\0'; - info->data.number = sl_pp_context_add_str(context, number); + info->data.number = sl_pp_context_add_unique_str(context, number); if (info->data.number == -1) { return -1; } |