comparison lwlib/lw_stack.h @ 374:8e25147c2aa8

Clean up various "externs" Apparently some compilers seriously choke on the "extern" keyword in some circumstances where GCC does not. Remove most instances of "extern" to guard against that. Thanks to Erik G <erik@6809.org> for the patch.
author William Astle <lost@l-w.ca>
date Mon, 13 Jul 2015 20:31:56 -0600
parents 00ddfdc1e1e3
children
comparison
equal deleted inserted replaced
373:00fced888c5d 374:8e25147c2aa8
40 40
41 41
42 #else /* def ___lw_stack_c_seen___ */ 42 #else /* def ___lw_stack_c_seen___ */
43 43
44 typedef void * lw_stack_t; 44 typedef void * lw_stack_t;
45 extern lw_stack_t lw_stack_create(void (*freefn)(void *d)); 45 lw_stack_t lw_stack_create(void (*freefn)(void *d));
46 extern void lw_stack_destroy(lw_stack_t S); 46 void lw_stack_destroy(lw_stack_t S);
47 extern void *lw_stack_top(lw_stack_t S); 47 void *lw_stack_top(lw_stack_t S);
48 extern void *lw_stack_pop(lw_stack_t S); 48 void *lw_stack_pop(lw_stack_t S);
49 extern void lw_stack_push(lw_stack_t S, void *item); 49 void lw_stack_push(lw_stack_t S, void *item);
50 50
51 #endif /* def ___lw_stack_c_seen___ */ 51 #endif /* def ___lw_stack_c_seen___ */
52 52
53 #endif /* ___lw_stack_h_seen___ */ 53 #endif /* ___lw_stack_h_seen___ */