Updated PEP-0007 to refer to PyAPI_FUNC instead of DL_IMPORT, which
was deprecated in Python 2.3.
This commit is contained in:
parent
209b145e5a
commit
592702b5ea
|
@ -121,9 +121,9 @@ Code lay-out
|
|||
|
||||
- For external functions and variables, we always have a
|
||||
declaration in an appropriate header file in the "Include"
|
||||
directory, which uses the DL_IMPORT() macro, like this:
|
||||
directory, which uses the PyAPI_FUNC() macro, like this:
|
||||
|
||||
extern DL_IMPORT(PyObject *) PyObject_Repr(PyObject *);
|
||||
PyAPI_FUNC(PyObject *) PyObject_Repr(PyObject *);
|
||||
|
||||
|
||||
Naming conventions
|
||||
|
|
Loading…
Reference in New Issue