summaryrefslogtreecommitdiff
path: root/games/zoom/patches/static-inline.patch
blob: 4e5190ef4cd197a691d8cb6ca32486f38412fdd0 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
commit 6b0ad57dd2c125c9126e9b7913560ad25709a36f
Author: Andrew Hunter <andrew@logicalshift.co.uk>
Date:   Sat Mar 3 16:31:35 2012 +0000

    Inline functions need to be marked as static in order to compile with LLVM

diff --git a/src/interp.c b/src/interp.c
index a5fa8fe..3d446fa 100644
--- a/src/interp.c
+++ b/src/interp.c
@@ -232,7 +232,7 @@ ZFrame* call_routine(ZDWord* pc, ZStack* stack, ZDWord start)
   return newframe;
 }
 
-inline void store(ZStack* stack, int var, ZWord value)
+static inline void store(ZStack* stack, int var, ZWord value)
 {
 #ifdef DEBUG
   printf_debug("Storing %i in Variable #%x\n", value, var);
@@ -253,7 +253,7 @@ inline void store(ZStack* stack, int var, ZWord value)
     }
 }
 
-inline void store_nopush(ZStack* stack, int var, ZWord value)
+static inline void store_nopush(ZStack* stack, int var, ZWord value)
 {
 #ifdef DEBUG
     printf_debug("Storing %i in Variable #%x\n", value, var);
diff --git a/src/tokenise.c b/src/tokenise.c
index 5925169..fb442d0 100644
--- a/src/tokenise.c
+++ b/src/tokenise.c
@@ -154,9 +154,9 @@ ZDictionary* dictionary_cache(const ZUWord dict_pos)
 
 int cache = 1;
 
-inline ZUWord lookup_word(unsigned int*  word,
-			  int            wordlen,
-			  ZUWord         dct)
+static inline ZUWord lookup_word(unsigned int*  word,
+                                 int            wordlen,
+                                 ZUWord         dct)
 {
   ZByte packed[12];
   int zscii_len;