Skip to content

Commit 1de1e79

Browse files
author
guido
committed
Add Macros defining new names for all external symbols.
git-svn-id: http://svn.python.org/projects/python/trunk@7669 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent d2e080c commit 1de1e79

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Include/pythread.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ typedef void *type_sema;
1919
extern "C" {
2020
#endif
2121

22+
/* Macros defining new names for all these symbols */
23+
#define init_thread PyThread_init_thread
24+
#define start_new_thread PyThread_start_new_thread
25+
#define exit_thread PyThread_exit_thread
26+
#define _exit_thread PyThread__exit_thread
27+
#define get_thread_ident PyThread_get_thread_ident
28+
#define allocate_lock PyThread_allocate_lock
29+
#define free_lock PyThread_free_lock
30+
#define acquire_lock PyThread_acquire_lock
31+
#define release_lock PyThread_release_lock
32+
#define allocate_sema PyThread_allocate_sema
33+
#define free_sema PyThread_free_sema
34+
#define down_sema PyThread_down_sema
35+
#define up_sema PyThread_up_sema
36+
#define exit_prog PyThread_exit_prog
37+
#define _exit_prog PyThread__exit_prog
38+
39+
2240
void init_thread Py_PROTO((void));
2341
int start_new_thread Py_PROTO((void (*)(void *), void *));
2442
void exit_thread Py_PROTO((void));

Include/thread.h

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ typedef void *type_sema;
1919
extern "C" {
2020
#endif
2121

22+
/* Macros defining new names for all these symbols */
23+
#define init_thread PyThread_init_thread
24+
#define start_new_thread PyThread_start_new_thread
25+
#define exit_thread PyThread_exit_thread
26+
#define _exit_thread PyThread__exit_thread
27+
#define get_thread_ident PyThread_get_thread_ident
28+
#define allocate_lock PyThread_allocate_lock
29+
#define free_lock PyThread_free_lock
30+
#define acquire_lock PyThread_acquire_lock
31+
#define release_lock PyThread_release_lock
32+
#define allocate_sema PyThread_allocate_sema
33+
#define free_sema PyThread_free_sema
34+
#define down_sema PyThread_down_sema
35+
#define up_sema PyThread_up_sema
36+
#define exit_prog PyThread_exit_prog
37+
#define _exit_prog PyThread__exit_prog
38+
39+
2240
void init_thread Py_PROTO((void));
2341
int start_new_thread Py_PROTO((void (*)(void *), void *));
2442
void exit_thread Py_PROTO((void));

0 commit comments

Comments
 (0)