summaryrefslogtreecommitdiff
path: root/thunk.h
diff options
context:
space:
mode:
Diffstat (limited to 'thunk.h')
-rw-r--r--thunk.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/thunk.h b/thunk.h
index a8138b0..2957f22 100644
--- a/thunk.h
+++ b/thunk.h
@@ -306,14 +306,14 @@ struct thunk_t {
* accepting a (thunk_t *) by simply wrapping the call with THUNK().
*/
#define THUNK_DEFINE(_name, ...) \
- int _THUNK_GEN_PROTO(_name, __VA_ARGS__); \
+ static int _THUNK_GEN_PROTO(_name, __VA_ARGS__); \
typedef struct __thunk_environment_##_name { \
/* struct for encapsulating the calling environment */ \
thunk_t __thunk; \
_THUNK_GEN_STRUCT (__VA_ARGS__); \
} __thunk_environment_##_name; \
\
- int __thunk_dispatch_##_name(thunk_t *thunk) { \
+ static int __thunk_dispatch_##_name(thunk_t *thunk) { \
/* dispatch thunk from associated environment */ \
__thunk_environment_##_name *env; \
int r; \
@@ -329,7 +329,7 @@ struct thunk_t {
return r; \
} \
\
- thunk_t * _THUNK_GEN_PROTO(__thunk_instantiate_##_name, __VA_ARGS__) { \
+ static thunk_t * _THUNK_GEN_PROTO(__thunk_instantiate_##_name, __VA_ARGS__) {\
/* allocate and populate environment, return it */ \
__thunk_environment_##_name *env; \
\
@@ -342,7 +342,7 @@ struct thunk_t {
return &env->__thunk; \
} \
\
- int _THUNK_GEN_PROTO(_name, __VA_ARGS__)
+ static int _THUNK_GEN_PROTO(_name, __VA_ARGS__)
/* Call the appropriate instantiate function which returns an embedded thunk_t,
* this is how you prepare the thunks established via THUNK_DEFINE(). */
© All Rights Reserved