Mercurial > cpython-lru_cache-weakref
diff Include/allobjects.h @ 3576:4ec1cac342dd legacy-trunk
Non-trivial DL_IMPORT must now be defined in config.h.
Include <stdlib.h>.
Include several more Python header files, including new pydebug.h.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 22 May 1996 16:37:29 +0000 |
| parents | e4f57dd3d246 |
| children | ab92480fa4ec |
line wrap: on
line diff
--- a/Include/allobjects.h Wed May 22 16:35:33 1996 +0000 +++ b/Include/allobjects.h Wed May 22 16:37:29 1996 +0000 @@ -28,27 +28,15 @@ /* Include nearly all Python header files */ -/* Some systems (well, NT anyway!) require special declarations for - data items imported from dynamic modules. Note that this defn is - only turned on for the modules built as DL modules, not for python - itself. -*/ -#define DL_IMPORT( RTYPE ) RTYPE /* Save lots of #else/#if's */ -#ifdef USE_DL_IMPORT -#ifdef NT -#undef DL_IMPORT -#define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE -#endif /* NT */ -#ifdef __BORLANDC__ -#undef DL_IMPORT -#define DL_IMPORT(RTYPE) RTYPE __import -#endif /* BORLANDC */ -#endif /* USE_DL_IMPORT */ - #ifdef HAVE_CONFIG_H #include "config.h" #endif +/* config.h may or may not define DL_IMPORT */ +#ifndef DL_IMPORT /* declarations for DLL import/export */ +#define DL_IMPORT(RTYPE) RTYPE +#endif + #ifdef SYMANTEC__CFM68K__ #define UsingSharedLibs #endif @@ -56,6 +44,9 @@ #include <stdio.h> #include <string.h> #include <errno.h> +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif #include "myproto.h" @@ -66,6 +57,8 @@ #include "object.h" #include "objimpl.h" +#include "pydebug.h" + #include "accessobject.h" #include "intobject.h" #include "longobject.h" @@ -84,12 +77,18 @@ #include "classobject.h" #include "fileobject.h" #include "cobject.h" +#include "traceback.h" #include "errors.h" #include "mymalloc.h" #include "modsupport.h" #include "ceval.h" +#include "pythonrun.h" +#include "sysmodule.h" +#include "intrcheck.h" +#include "import.h" +#include "bltinmodule.h" #include "abstract.h"
