mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Excise DL_EXPORT from Include.
Thanks to Skip Montanaro and Kalle Svensson for the patches.
This commit is contained in:
parent
44121a6bc9
commit
91a681debf
51 changed files with 661 additions and 665 deletions
|
|
@ -15,10 +15,10 @@ typedef struct _node {
|
|||
struct _node *n_child;
|
||||
} node;
|
||||
|
||||
extern DL_IMPORT(node *) PyNode_New(int type);
|
||||
extern DL_IMPORT(int) PyNode_AddChild(node *n, int type,
|
||||
PyAPI_FUNC(node *) PyNode_New(int type);
|
||||
PyAPI_FUNC(int) PyNode_AddChild(node *n, int type,
|
||||
char *str, int lineno);
|
||||
extern DL_IMPORT(void) PyNode_Free(node *n);
|
||||
PyAPI_FUNC(void) PyNode_Free(node *n);
|
||||
|
||||
/* Node access functions */
|
||||
#define NCH(n) ((n)->n_nchildren)
|
||||
|
|
@ -29,7 +29,7 @@ extern DL_IMPORT(void) PyNode_Free(node *n);
|
|||
/* Assert that the type of a node is what we expect */
|
||||
#define REQ(n, type) assert(TYPE(n) == (type))
|
||||
|
||||
extern DL_IMPORT(void) PyNode_ListTree(node *);
|
||||
PyAPI_FUNC(void) PyNode_ListTree(node *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue