summaryrefslogtreecommitdiffstats
path: root/Include/compile.h
diff options
context:
space:
mode:
authorMark Hammond <mhammond@skippinet.com.au>2002-08-12 07:21:58 (GMT)
committerMark Hammond <mhammond@skippinet.com.au>2002-08-12 07:21:58 (GMT)
commit91a681debf9ffec155d0aff8a0bb5f965f592e16 (patch)
tree09f28782e3b0a24e64deddeafc9df24ac93855ca /Include/compile.h
parent44121a6bc9828c993932b87e442440dc4f260f3c (diff)
downloadcpython-91a681debf9ffec155d0aff8a0bb5f965f592e16.zip
cpython-91a681debf9ffec155d0aff8a0bb5f965f592e16.tar.gz
cpython-91a681debf9ffec155d0aff8a0bb5f965f592e16.tar.bz2
Excise DL_EXPORT from Include.
Thanks to Skip Montanaro and Kalle Svensson for the patches.
Diffstat (limited to 'Include/compile.h')
-rw-r--r--Include/compile.h12
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"