diff options
author | Guido van Rossum <guido@python.org> | 1998-12-04 18:48:25 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-12-04 18:48:25 (GMT) |
commit | 43466ec7b07de6bcad016bec60839cd6079c5a9c (patch) | |
tree | ec3bf3e1dfbf9535fa56e153e200f6491f34a6b0 /Include/pythread.h | |
parent | b241b67b8954b0679377af00d668e3dc92f4c858 (diff) | |
download | cpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.zip cpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.tar.gz cpython-43466ec7b07de6bcad016bec60839cd6079c5a9c.tar.bz2 |
Add DL_IMPORT(returntype) for all officially exported functions.
Diffstat (limited to 'Include/pythread.h')
-rw-r--r-- | Include/pythread.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/Include/pythread.h b/Include/pythread.h index d38c174..9a2842c 100644 --- a/Include/pythread.h +++ b/Include/pythread.h @@ -48,40 +48,40 @@ extern "C" { #define set_key_value PyThread_set_key_value -void init_thread Py_PROTO((void)); -int start_new_thread Py_PROTO((void (*)(void *), void *)); +DL_IMPORT(void) init_thread Py_PROTO((void)); +DL_IMPORT(int) start_new_thread Py_PROTO((void (*)(void *), void *)); #ifndef __BEOS__ -void exit_thread Py_PROTO((void)); -void _exit_thread Py_PROTO((void)); +DL_IMPORT(void) exit_thread Py_PROTO((void)); +DL_IMPORT(void) _exit_thread Py_PROTO((void)); #else -void PyThread_exit_thread Py_PROTO((void)); -void PyThread__exit_thread Py_PROTO((void)); +DL_IMPORT(void) PyThread_exit_thread Py_PROTO((void)); +DL_IMPORT(void) PyThread__exit_thread Py_PROTO((void)); #endif -long get_thread_ident Py_PROTO((void)); +DL_IMPORT(long) get_thread_ident Py_PROTO((void)); -type_lock allocate_lock Py_PROTO((void)); -void free_lock Py_PROTO((type_lock)); -int acquire_lock Py_PROTO((type_lock, int)); +DL_IMPORT(type_lock) allocate_lock Py_PROTO((void)); +DL_IMPORT(void) free_lock Py_PROTO((type_lock)); +DL_IMPORT(int) acquire_lock Py_PROTO((type_lock, int)); #define WAIT_LOCK 1 #define NOWAIT_LOCK 0 -void release_lock Py_PROTO((type_lock)); +DL_IMPORT(void) release_lock Py_PROTO((type_lock)); -type_sema allocate_sema Py_PROTO((int)); -void free_sema Py_PROTO((type_sema)); -int down_sema Py_PROTO((type_sema, int)); +DL_IMPORT(type_sema) allocate_sema Py_PROTO((int)); +DL_IMPORT(void) free_sema Py_PROTO((type_sema)); +DL_IMPORT(int) down_sema Py_PROTO((type_sema, int)); #define WAIT_SEMA 1 #define NOWAIT_SEMA 0 -void up_sema Py_PROTO((type_sema)); +DL_IMPORT(void) up_sema Py_PROTO((type_sema)); #ifndef NO_EXIT_PROG -void exit_prog Py_PROTO((int)); -void _exit_prog Py_PROTO((int)); +DL_IMPORT(void) exit_prog Py_PROTO((int)); +DL_IMPORT(void) _exit_prog Py_PROTO((int)); #endif -int create_key Py_PROTO((void)); -void delete_key Py_PROTO((int)); -int set_key_value Py_PROTO((int, void *)); -void * get_key_value Py_PROTO((int)); +DL_IMPORT(int) create_key Py_PROTO((void)); +DL_IMPORT(void) delete_key Py_PROTO((int)); +DL_IMPORT(int) set_key_value Py_PROTO((int, void *)); +DL_IMPORT(void *) get_key_value Py_PROTO((int)); #ifdef __cplusplus } |