@@ -0,0 +1,299 @@
1+Index: ChangeLog
2+===================================================================
3+--- ChangeLog (revision 163)
4++++ ChangeLog (revision 164)
5+@@ -1,3 +1,5 @@
6++- removed all inline keywords to work with GCC 5 (2015/05/16 MS)
7++
8+ 1.0.19:
9+ - removed link to lib math as not needed (2013/10/29 MS)
10+ - reset key states when unpausing to prevent unwanted movement (2013/10/29 MS)
11+Index: src/bowl.c
12+===================================================================
13+--- src/bowl.c (revision 163)
14++++ src/bowl.c (revision 164)
15+@@ -333,7 +333,7 @@
16+ Set a tile contents and pixel contents.
17+ ====================================================================
18+ */
19+-inline void bowl_set_tile( Bowl *bowl, int x, int y, int tile_id )
20++void bowl_set_tile( Bowl *bowl, int x, int y, int tile_id )
21+ {
22+ int i, j = y * bowl->block_size;
23+ bowl->contents[x][y] = tile_id;
24+Index: src/sdl.c
25+===================================================================
26+--- src/sdl.c (revision 163)
27++++ src/sdl.c (revision 164)
28+@@ -244,7 +244,7 @@
29+ #endif
30+
31+ /* return full path of bitmap */
32+-inline void get_full_bmp_path( char *full_path, char *file_name )
33++void get_full_bmp_path( char *full_path, char *file_name )
34+ {
35+ sprintf(full_path, "%s/gfx/%s", SRC_DIR, file_name );
36+ }
37+@@ -330,7 +330,7 @@
38+ /*
39+ lock surface
40+ */
41+-inline void lock_surf(SDL_Surface *sur)
42++void lock_surf(SDL_Surface *sur)
43+ {
44+ if (SDL_MUSTLOCK(sur))
45+ SDL_LockSurface(sur);
46+@@ -339,7 +339,7 @@
47+ /*
48+ unlock surface
49+ */
50+-inline void unlock_surf(SDL_Surface *sur)
51++void unlock_surf(SDL_Surface *sur)
52+ {
53+ if (SDL_MUSTLOCK(sur))
54+ SDL_UnlockSurface(sur);
55+@@ -666,7 +666,7 @@
56+ /*
57+ lock font surface
58+ */
59+-inline void lock_font(Font *fnt)
60++void lock_font(Font *fnt)
61+ {
62+ if (SDL_MUSTLOCK(fnt->pic))
63+ SDL_LockSurface(fnt->pic);
64+@@ -675,7 +675,7 @@
65+ /*
66+ unlock font surface
67+ */
68+-inline void unlock_font(Font *fnt)
69++void unlock_font(Font *fnt)
70+ {
71+ if (SDL_MUSTLOCK(fnt->pic))
72+ SDL_UnlockSurface(fnt->pic);
73+@@ -905,7 +905,7 @@
74+ /*
75+ update rectangle (0,0,0,0)->fullscreen
76+ */
77+-inline void refresh_screen(int x, int y, int w, int h)
78++void refresh_screen(int x, int y, int w, int h)
79+ {
80+ SDL_UpdateRect(sdl.screen, x, y, w, h);
81+ }
82+@@ -1055,7 +1055,7 @@
83+ /*
84+ lock surface
85+ */
86+-inline void lock_screen()
87++void lock_screen()
88+ {
89+ if (SDL_MUSTLOCK(sdl.screen))
90+ SDL_LockSurface(sdl.screen);
91+@@ -1064,7 +1064,7 @@
92+ /*
93+ unlock surface
94+ */
95+-inline void unlock_screen()
96++void unlock_screen()
97+ {
98+ if (SDL_MUSTLOCK(sdl.screen))
99+ SDL_UnlockSurface(sdl.screen);
100+@@ -1073,7 +1073,7 @@
101+ /*
102+ flip hardware screens (double buffer)
103+ */
104+-inline void flip_screen()
105++void flip_screen()
106+ {
107+ SDL_Flip(sdl.screen);
108+ }
109+@@ -1132,7 +1132,7 @@
110+ /*
111+ get milliseconds since last call
112+ */
113+-inline int get_time()
114++int get_time()
115+ {
116+ int ms;
117+ cur_time = SDL_GetTicks();
118+@@ -1148,7 +1148,7 @@
119+ /*
120+ reset timer
121+ */
122+-inline void reset_timer()
123++void reset_timer()
124+ {
125+ last_time = SDL_GetTicks();
126+ }
127+Index: src/sdl.h
128+===================================================================
129+--- src/sdl.h (revision 163)
130++++ src/sdl.h (revision 164)
131+@@ -41,8 +41,8 @@
132+ SDL_Surface* load_surf(char *fname, int f);
133+ SDL_Surface* create_surf(int w, int h, int f);
134+ void free_surf( SDL_Surface **surf );
135+-inline void lock_surf(SDL_Surface *sur);
136+-inline void unlock_surf(SDL_Surface *sur);
137++void lock_surf(SDL_Surface *sur);
138++void unlock_surf(SDL_Surface *sur);
139+ void blit_surf(void);
140+ void alpha_blit_surf(int alpha);
141+ void fill_surf(int c);
142+@@ -86,8 +86,8 @@
143+ Font* load_fixed_font(char *fname, int off, int len, int w);
144+ void free_font(Font **sfnt);
145+ int write_text(Font *sfnt, SDL_Surface *dest, int x, int y, char *str, int alpha);
146+-inline void lock_font(Font *sfnt);
147+-inline void unlock_font(Font *sfnt);
148++void lock_font(Font *sfnt);
149++void unlock_font(Font *sfnt);
150+ SDL_Rect last_write_rect(Font *fnt);
151+ int text_width(Font *fnt, char *str);
152+
153+@@ -132,14 +132,14 @@
154+ char** get_mode_names( int *count );
155+ int set_video_mode( Video_Mode mode );
156+ void hardware_cap();
157+-inline void refresh_screen( int x, int y, int w, int h );
158++void refresh_screen( int x, int y, int w, int h );
159+ void refresh_rects();
160+ void add_refresh_rect(int x, int y, int w, int h);
161+ int wait_for_key();
162+ void wait_for_click();
163+-inline void lock_screen();
164+-inline void unlock_screen();
165+-inline void flip_screen();
166++void lock_screen();
167++void unlock_screen();
168++void flip_screen();
169+ void fade_screen( int type, int ms );
170+ void take_screenshot( int i );
171+
172+@@ -148,8 +148,8 @@
173+ SDL_Cursor* create_cursor( int width, int height, int hot_x, int hot_y, char *source );
174+
175+ /* timer */
176+-inline int get_time();
177+-inline void reset_timer();
178++int get_time();
179++void reset_timer();
180+
181+ #ifdef __cplusplus
182+ };
183+Index: src/tools.c
184+===================================================================
185+--- src/tools.c (revision 163)
186++++ src/tools.c (revision 164)
187+@@ -23,7 +23,7 @@
188+ #include "ltris.h"
189+
190+ /* compares to strings and returns true if their first strlen(str1) chars are equal */
191+-inline int strequal( char *str1, char *str2 )
192++int strequal( char *str1, char *str2 )
193+ {
194+ if ( strlen( str1 ) != strlen( str2 ) ) return 0;
195+ return ( !strncmp( str1, str2, strlen( str1 ) ) );
196+@@ -30,7 +30,7 @@
197+ }
198+
199+ /* set delay to ms milliseconds */
200+-inline void delay_set( Delay *delay, int ms )
201++void delay_set( Delay *delay, int ms )
202+ {
203+ delay->limit = ms;
204+ delay->cur = 0;
205+@@ -37,13 +37,13 @@
206+ }
207+
208+ /* reset delay ( cur = 0 )*/
209+-inline void delay_reset( Delay *delay )
210++void delay_reset( Delay *delay )
211+ {
212+ delay->cur = 0;
213+ }
214+
215+ /* check if times out and reset */
216+-inline int delay_timed_out( Delay *delay, int ms )
217++int delay_timed_out( Delay *delay, int ms )
218+ {
219+ delay->cur += ms;
220+ if ( delay->cur >= delay->limit ) {
221+@@ -56,12 +56,12 @@
222+ }
223+
224+ /* set timer so that we have a time out next call of delay_timed_out() */
225+-inline void delay_force_time_out( Delay *delay )
226++void delay_force_time_out( Delay *delay )
227+ {
228+ delay->cur = delay->limit;
229+ }
230+
231+-inline void goto_tile( int *x, int *y, int d )
232++void goto_tile( int *x, int *y, int d )
233+ {
234+ /* 0 -up, clockwise, 5 - left up */
235+ switch ( d ) {
236+@@ -326,24 +326,24 @@
237+ the target value until reached when counter_update() is called.
238+ ====================================================================
239+ */
240+-inline void counter_set( Counter *counter, double value )
241++void counter_set( Counter *counter, double value )
242+ {
243+ counter->value = value;
244+ counter->approach = value;
245+ }
246+-inline void counter_add( Counter *counter, double add )
247++void counter_add( Counter *counter, double add )
248+ {
249+ counter->value += add;
250+ }
251+-inline double counter_get_approach( Counter counter )
252++double counter_get_approach( Counter counter )
253+ {
254+ return counter.approach;
255+ }
256+-inline double counter_get( Counter counter )
257++double counter_get( Counter counter )
258+ {
259+ return counter.value;
260+ }
261+-inline void counter_update( Counter *counter, int ms )
262++void counter_update( Counter *counter, int ms )
263+ {
264+ double change;
265+ if ( counter->approach == counter->value ) return;
266+Index: src/tools.h
267+===================================================================
268+--- src/tools.h (revision 163)
269++++ src/tools.h (revision 164)
270+@@ -33,7 +33,7 @@
271+ #define VEC_DIST( vec1, vec2 ) ( sqrt( ( vec1.x - vec2.x ) * ( vec1.x - vec2.x ) + ( vec1.y - vec2.y ) * ( vec1.y - vec2.y ) ) )
272+
273+ /* compares to strings and returns true if their first strlen(str1) chars are equal */
274+-inline int strequal( char *str1, char *str2 );
275++int strequal( char *str1, char *str2 );
276+
277+ /* delete lines */
278+ void delete_lines( char **lines, int line_number );
279+@@ -45,16 +45,16 @@
280+ } Delay;
281+
282+ /* set delay to ms milliseconds */
283+-inline void delay_set( Delay *delay, int ms );
284++void delay_set( Delay *delay, int ms );
285+
286+ /* reset delay ( cur = 0 )*/
287+-inline void delay_reset( Delay *delay );
288++void delay_reset( Delay *delay );
289+
290+ /* check if time's out ( add ms milliseconds )and reset */
291+-inline int delay_timed_out( Delay *delay, int ms );
292++int delay_timed_out( Delay *delay, int ms );
293+
294+ /* set timer so that we have a time out next call of delay_timed_out() */
295+-inline void delay_force_time_out( Delay *delay );
296++void delay_force_time_out( Delay *delay );
297+
298+ /* return distance betwteen to map positions */
299+ int get_dist( int x1, int y1, int x2, int y2 );