mojoshader_compiler.c
changeset 975 95b03c82cf51
parent 974 e4c4963e8889
child 976 72f121a58548
--- a/mojoshader_compiler.c	Wed Jan 12 03:44:28 2011 -0500
+++ b/mojoshader_compiler.c	Wed Jan 12 03:39:21 2011 -0500
@@ -2795,6 +2795,8 @@
             dt->structure.member_count = count;
             ast->structdecl.datatype = dt;
 
+            // !!! FIXME: this shouldn't push for anonymous structs: "struct { int x; } myvar;"
+            // !!! FIXME:  but right now, the grammar is wrong and requires a name for the struct.
             push_usertype(ctx, ast->structdecl.name, ast->structdecl.datatype);
             return ast->structdecl.datatype;
         } // case
@@ -4021,7 +4023,7 @@
 
             case TOKEN_HLSL_USERTYPE:
                 data.string = stringcache_len(ctx->strcache, token, tokenlen);
-                data.datatype = get_usertype(ctx, data.string);
+                data.datatype = get_usertype(ctx, data.string);  // !!! FIXME: do we need this? It's kind of useless during parsing.
                 assert(data.datatype != NULL);
                 break;