mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
use PyAPI_FUNC instead of DL_IMPORT. are we going to deprecate the old non-Py PREFIXED macros, etc?
This commit is contained in:
parent
a34584be3b
commit
38eb50b227
1 changed files with 2 additions and 2 deletions
|
|
@ -24,9 +24,9 @@ typedef struct {
|
|||
#define FUTURE_DIVISION "division"
|
||||
|
||||
struct _mod; /* Declare the existence of this type */
|
||||
DL_IMPORT(PyCodeObject *) PyAST_Compile(struct _mod *, const char *,
|
||||
PyAPI_FUNC(PyCodeObject *) PyAST_Compile(struct _mod *, const char *,
|
||||
PyCompilerFlags *);
|
||||
DL_IMPORT(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);
|
||||
PyAPI_FUNC(PyFutureFeatures *) PyFuture_FromAST(struct _mod *, const char *);
|
||||
|
||||
#define ERR_LATE_FUTURE \
|
||||
"from __future__ imports must occur at the beginning of the file"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue