Removed some debug code.
--- a/mojoshader_compiler.c Mon Feb 22 01:58:37 2010 -0500
+++ b/mojoshader_compiler.c Mon Feb 22 02:22:06 2010 -0500
@@ -579,8 +579,6 @@
printf("%s:%u: %s\n", ctx->sourcefile, ctx->sourceline, str);
} // fail
-#define dbg printf
-
static void usertypemap_nuke(const void *k, const void *v) { /* no-op. */ }
@@ -606,8 +604,6 @@
UserTypeMap *map = &ctx->usertypes;
UserTypeScopeStack *item;
- dbg("push_usertype: %s -> %s\n", sym, datatype);
-
item = (UserTypeScopeStack *) Malloc(ctx, sizeof (UserTypeScopeStack));
if (item == NULL)
return;
@@ -633,7 +629,6 @@
UserTypeScopeStack *item = map->scope;
if (!item)
return;
- dbg("pop_usertype: %s -> %s\n", item->symbol, item->datatype);
if (item->symbol)
hash_remove(map->types, item->symbol);
map->scope = item->next;
@@ -642,13 +637,11 @@
static void push_scope(Context *ctx)
{
- dbg("push_scope\n");
push_usertype(ctx, NULL, NULL);
} // push_scope
static void pop_scope(Context *ctx)
{
- dbg("pop_scope\n");
UserTypeMap *map = &ctx->usertypes;
assert(map->scope != NULL);
while ((map->scope) && (map->scope->symbol))