X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=typedef.c;h=e84300a88a0c2c8ac801d266342431348c14ebaf;hb=639fc8a32b35174fc4c2347fd38f76147093d6f4;hp=4ee7348f7430eaa5b84f9c59ff1bab556562a06d;hpb=bd5ba9e0fe0e9bdaea3f869f55d8f40651a2d0fb;p=xonotic%2Fgmqcc.git diff --git a/typedef.c b/typedef.c index 4ee7348..e84300a 100644 --- a/typedef.c +++ b/typedef.c @@ -25,7 +25,6 @@ #include #include "gmqcc.h" static typedef_node *typedef_table[1024]; - void typedef_init() { int i; for(i = 0; i < sizeof(typedef_table)/sizeof(*typedef_table); i++) @@ -66,7 +65,7 @@ int typedef_add(const char *from, const char *to) { unsigned int hash = typedef_hash(to); typedef_node *find = typedef_table[hash]; if (find) - return error(ERROR_PARSE, "typedef for %s already exists\n", to); + return error(ERROR_PARSE, "typedef for %s already exists or conflicts\n", to); /* check if the type exists first */ if (strncmp(from, "float", sizeof("float")) == 0 ||