Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added some more basic datatype strings to the initial string cache.
  • Loading branch information
icculus committed Oct 20, 2010
1 parent db69e64 commit 0b8b806
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mojoshader_compiler.c
Expand Up @@ -577,6 +577,10 @@ typedef struct Context
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;


Expand Down Expand Up @@ -2499,6 +2503,10 @@ static Context *build_context(MOJOSHADER_malloc m, MOJOSHADER_free f, void *d)
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
Expand Down

0 comments on commit 0b8b806

Please sign in to comment.