Added some more basic datatype strings to the initial string cache.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 20 Oct 2010 02:20:10 -0400
changeset 925 2a7cae5f1d68
parent 924 c99418745e1b
child 926 8ac335735b37
Added some more basic datatype strings to the initial string cache.
mojoshader_compiler.c
--- a/mojoshader_compiler.c	Wed Oct 20 02:19:34 2010 -0400
+++ b/mojoshader_compiler.c	Wed Oct 20 02:20:10 2010 -0400
@@ -577,6 +577,10 @@
     const char *str_b;  // "b"
     const char *str_f;  // "f"
     const char *str_i;  // "i"
+    const char *str_u;  // "u"
+    const char *str_h;  // "h"
+    const char *str_d;  // "d"
+    const char *str_s;  // "s"
 } Context;
 
 
@@ -2499,6 +2503,10 @@
     ctx->str_b = stringcache(ctx->strcache, "b");
     ctx->str_f = stringcache(ctx->strcache, "f");
     ctx->str_i = stringcache(ctx->strcache, "i");
+    ctx->str_u = stringcache(ctx->strcache, "u");
+    ctx->str_h = stringcache(ctx->strcache, "h");
+    ctx->str_d = stringcache(ctx->strcache, "d");
+    ctx->str_s = stringcache(ctx->strcache, "s");
 
     return ctx;
 } // build_context