]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - typedef.c
ast_binary takes 2 expressions, not 2 values, ast_store takes a value and and express...
[xonotic/gmqcc.git] / typedef.c
index d51693ebd7d0560a2d108578d75a50953d532a42..9d869f184949c40d075d910970bbe1665d50681c 100644 (file)
--- a/typedef.c
+++ b/typedef.c
@@ -49,7 +49,7 @@ void typedef_clear() {
     }
 }
 
-int typedef_add(struct lex_file *file, const char *from, const char *to) {
+int typedef_add(lex_file *file, const char *from, const char *to) {
     unsigned int  hash = typedef_hash(to);
     typedef_node *find = typedef_table[hash];
     
@@ -73,7 +73,7 @@ int typedef_add(struct lex_file *file, const char *from, const char *to) {
         /* search the typedefs for it (typedef-a-typedef?) */
         typedef_node *find = typedef_table[typedef_hash(from)];
         if (find) {
-            typedef_table[hash]       = mem_a(sizeof(typedef_node));
+            typedef_table[hash] = mem_a(sizeof(typedef_node));
             if (typedef_table[hash])
                 typedef_table[hash]->name = util_strdup(find->name);
             else