summaryrefslogtreecommitdiff
path: root/games-strategy/lgeneral/files/lgeneral-1.4.4-remove-defs-from-header.patch
blob: ebd32a480c8389aab5ce223ff8a104fdf0989f54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Those functions are defined in hashtable_itr.c
I think this was made for "speed", but it break compilation with GCC-15
and is plainly unnecessary
--- a/util/hashtable_itr.h
+++ b/util/hashtable_itr.h
@@ -29,19 +29,13 @@
  * - return the value of the (key,value) pair at the current position */
 
-extern inline void *
-hashtable_iterator_key(struct hashtable_itr *i)
-{
-    return i->e->k;
-}
+extern void *
+hashtable_iterator_key(struct hashtable_itr *i);
 
 /*****************************************************************************/
 /* value - return the value of the (key,value) pair at the current position */
 
-extern inline void *
+extern void *
-hashtable_iterator_value(struct hashtable_itr *i)
-{
-    return i->e->v;
-}
+hashtable_iterator_value(struct hashtable_itr *i);
 
 /*****************************************************************************/
 /* advance - advance the iterator to the next element