diff options
author | 2005-11-05 04:51:39 +0000 | |
---|---|---|
committer | 2005-11-05 04:51:39 +0000 | |
commit | 8e0d4b02587202cae11f0bd621b40cac16587890 (patch) | |
tree | d0a27273126cff2b44d865f7bdf6fe6814f9978f /games-util/fteqcc/files | |
parent | Version bump #111500 by Daniel Webert. (diff) | |
download | gentoo-2-8e0d4b02587202cae11f0bd621b40cac16587890.tar.gz gentoo-2-8e0d4b02587202cae11f0bd621b40cac16587890.tar.bz2 gentoo-2-8e0d4b02587202cae11f0bd621b40cac16587890.zip |
initial import #111281 by fabien Zouaoui
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'games-util/fteqcc/files')
-rw-r--r-- | games-util/fteqcc/files/digest-fteqcc-2501 | 1 | ||||
-rw-r--r-- | games-util/fteqcc/files/fteqcc-2501-cleanup-source.patch | 93 |
2 files changed, 94 insertions, 0 deletions
diff --git a/games-util/fteqcc/files/digest-fteqcc-2501 b/games-util/fteqcc/files/digest-fteqcc-2501 new file mode 100644 index 000000000000..0e442cda0929 --- /dev/null +++ b/games-util/fteqcc/files/digest-fteqcc-2501 @@ -0,0 +1 @@ +MD5 3b4117dcc159680928d6a66560946644 qclibsrc2501.zip 204047 diff --git a/games-util/fteqcc/files/fteqcc-2501-cleanup-source.patch b/games-util/fteqcc/files/fteqcc-2501-cleanup-source.patch new file mode 100644 index 000000000000..35f3dcf100ae --- /dev/null +++ b/games-util/fteqcc/files/fteqcc-2501-cleanup-source.patch @@ -0,0 +1,93 @@ +--- qcc_pr_comp.c ++++ qcc_pr_comp.c +@@ -7322,7 +7322,7 @@ + QCC_def_t *def, *d;
+ QCC_function_t *f;
+ QCC_dfunction_t *df;
+- int i;
++ int i = 0;
+ pbool shared=false;
+ pbool externfnc=false;
+ pbool isconstant = false;
+@@ -8541,8 +8545,6 @@ + struct qcc_includechunk_s *oldcurrentchunk;
+ extern struct qcc_includechunk_s *currentchunk;
+
+- extern char qccmsourcedir[];
+-
+ ocompilingfile = compilingfile;
+ os_file = s_file;
+ os_file2 = s_file2;
+--- hash.h ++++ hash.h +@@ -19,12 +19,12 @@ + int Hash_Key(char *name, int modulus);
+ void *Hash_Get(hashtable_t *table, char *name);
+ void *Hash_GetInsensative(hashtable_t *table, char *name);
+-void *Hash_GetKey(hashtable_t *table, int key);
++void *Hash_GetKey(hashtable_t *table, long key);
+ void *Hash_GetNext(hashtable_t *table, char *name, void *old);
+ void *Hash_GetNextInsensative(hashtable_t *table, char *name, void *old);
+ void *Hash_Add(hashtable_t *table, char *name, void *data, bucket_t *buck);
+ void *Hash_AddInsensative(hashtable_t *table, char *name, void *data, bucket_t *buck);
+ void Hash_Remove(hashtable_t *table, char *name);
+ void Hash_RemoveData(hashtable_t *table, char *name, void *data);
+-void Hash_RemoveKey(hashtable_t *table, int key);
+-void *Hash_AddKey(hashtable_t *table, int key, void *data, bucket_t *buck);
++void Hash_RemoveKey(hashtable_t *table, long key);
++void *Hash_AddKey(hashtable_t *table, long key, void *data, bucket_t *buck);
+--- hash.c ++++ hash.c +@@ -68,7 +68,7 @@ + }
+ return NULL;
+ }
+-void *Hash_GetKey(hashtable_t *table, int key)
++void *Hash_GetKey(hashtable_t *table, long key)
+ {
+ int bucknum = key%table->numbuckets;
+ bucket_t *buck;
+@@ -77,7 +77,7 @@ +
+ while(buck)
+ {
+- if ((int)buck->keystring == key)
++ if ((long)buck->keystring == key)
+ return buck->data;
+
+ buck = buck->next;
+@@ -168,7 +168,7 @@ +
+ return buck;
+ }
+-void *Hash_AddKey(hashtable_t *table, int key, void *data, bucket_t *buck)
++void *Hash_AddKey(hashtable_t *table, long key, void *data, bucket_t *buck)
+ {
+ int bucknum = key%table->numbuckets;
+
+@@ -237,14 +237,14 @@ + }
+
+
+-void Hash_RemoveKey(hashtable_t *table, int key)
++void Hash_RemoveKey(hashtable_t *table, long key)
+ {
+ int bucknum = key%table->numbuckets;
+ bucket_t *buck;
+
+ buck = table->bucket[bucknum];
+
+- if ((int)buck->keystring == key)
++ if ((long)buck->keystring == key)
+ {
+ table->bucket[bucknum] = buck->next;
+ return;
+@@ -253,7 +253,7 @@ +
+ while(buck->next)
+ {
+- if ((int)buck->next->keystring == key)
++ if ((long)buck->next->keystring == key)
+ {
+ buck->next = buck->next->next;
+ return;
|