summaryrefslogtreecommitdiffstats
path: root/games/zoom/no_inline.diff
blob: d7ff771e8180c70567b12d4a0adc04cd602f4075 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
diff -Naur zoom-1.1.5/src/interp.c zoom-1.1.5.patched/src/interp.c
--- zoom-1.1.5/src/interp.c	2011-11-05 07:40:53.000000000 -0400
+++ zoom-1.1.5.patched/src/interp.c	2017-06-21 03:26:42.543594700 -0400
@@ -101,7 +101,7 @@
 	} \
      }
 
-static inline void push(ZStack* stack, const ZWord word)
+static void push(ZStack* stack, const ZWord word)
 {
   *(stack->stack_top++) = word;
   stack->stack_size--;
@@ -131,7 +131,7 @@
 #endif
 }
 
-inline ZWord pop(ZStack* stack)
+ZWord pop(ZStack* stack)
 {
   stack->stack_size++;
 
@@ -159,7 +159,7 @@
   return *(--stack->stack_top);
 }
 
-inline ZWord top(ZStack* stack)
+ZWord top(ZStack* stack)
 {
     if (stack->current_frame)
     {
@@ -232,7 +232,7 @@
   return newframe;
 }
 
-inline void store(ZStack* stack, int var, ZWord value)
+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_nopush(ZStack* stack, int var, ZWord value)
+void store_nopush(ZStack* stack, int var, ZWord value)
 {
 #ifdef DEBUG
     printf_debug("Storing %i in Variable #%x\n", value, var);
@@ -313,7 +313,7 @@
   int    isdefault;
 };
 
-static inline struct prop* get_object_prop_3(ZUWord object, ZWord property)
+static struct prop* get_object_prop_3(ZUWord object, ZWord property)
 {
   ZByte* obj;
   ZByte* prop;
@@ -364,7 +364,7 @@
   int header;
 };
 
-static inline struct propinfo* get_object_propinfo_4(ZByte* prop)
+static struct propinfo* get_object_propinfo_4(ZByte* prop)
 {
   static struct propinfo pinfo;
   
@@ -387,7 +387,7 @@
   return &pinfo;
 }
 
-static inline struct prop* get_object_prop_4(ZUWord object, ZWord property)
+static struct prop* get_object_prop_4(ZUWord object, ZWord property)
 {
   ZByte* obj;
   ZByte* prop;
@@ -539,7 +539,7 @@
 }
 #endif
 
-inline static int true_colour(int col)
+static int true_colour(int col)
 {
   switch (col)
     {
@@ -575,7 +575,7 @@
     }
 }
 
-inline static int convert_colour(int col)
+static int convert_colour(int col)
 {
   switch (col)
     {
@@ -1473,7 +1473,7 @@
   return -1;
 }
 
-static inline void zcode_setup_window(int window)
+static void zcode_setup_window(int window)
 {
   v6_set_window(window);
   v6_define_window(window,
@@ -1497,7 +1497,7 @@
 #endif
 }
 
-static inline int zcode_v6_push_stack(ZStack* stack,
+static int zcode_v6_push_stack(ZStack* stack,
 				      ZUWord  stk,
 				      ZUWord  value)
 {
@@ -1528,7 +1528,7 @@
   return 1;
 }
 
-static inline int v6_window(int win)
+static int v6_window(int win)
 {
   if (win > 7)
     zmachine_fatal("No such window: %i", win);