diff options
Diffstat (limited to 'Include/compile.h')
-rw-r--r-- | Include/compile.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Include/compile.h b/Include/compile.h index 39c00f2..a4b2f55 100644 --- a/Include/compile.h +++ b/Include/compile.h @@ -43,7 +43,7 @@ typedef struct { #define CO_GENERATOR_ALLOWED 0x1000 /* no longer used in an essential way */ #define CO_FUTURE_DIVISION 0x2000 -extern DL_IMPORT(PyTypeObject) PyCode_Type; +PyAPI_DATA(PyTypeObject) PyCode_Type; #define PyCode_Check(op) ((op)->ob_type == &PyCode_Type) #define PyCode_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars)) @@ -52,12 +52,12 @@ extern DL_IMPORT(PyTypeObject) PyCode_Type; /* Public interface */ struct _node; /* Declare the existence of this type */ -DL_IMPORT(PyCodeObject *) PyNode_Compile(struct _node *, char *); -DL_IMPORT(PyCodeObject *) PyCode_New( +PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, char *); +PyAPI_FUNC(PyCodeObject *) PyCode_New( int, int, int, int, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, PyObject *, int, PyObject *); /* same as struct above */ -DL_IMPORT(int) PyCode_Addr2Line(PyCodeObject *, int); +PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int); /* Future feature support */ @@ -67,8 +67,8 @@ typedef struct { int ff_features; } PyFutureFeatures; -DL_IMPORT(PyFutureFeatures *) PyNode_Future(struct _node *, char *); -DL_IMPORT(PyCodeObject *) PyNode_CompileFlags(struct _node *, char *, +PyAPI_FUNC(PyFutureFeatures *) PyNode_Future(struct _node *, char *); +PyAPI_FUNC(PyCodeObject *) PyNode_CompileFlags(struct _node *, char *, PyCompilerFlags *); #define FUTURE_NESTED_SCOPES "nested_scopes" |