summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-05-22 16:37:29 (GMT)
committerGuido van Rossum <guido@python.org>1996-05-22 16:37:29 (GMT)
commit1799eb59daa2dbb08a2c251145f19b63da77625a (patch)
tree646e0df6b913f41ee4a319f1a3877cb2bafd7d0a /Include
parentaae0d32f6639894f33f336bad115660ad82de5d2 (diff)
downloadcpython-1799eb59daa2dbb08a2c251145f19b63da77625a.zip
cpython-1799eb59daa2dbb08a2c251145f19b63da77625a.tar.gz
cpython-1799eb59daa2dbb08a2c251145f19b63da77625a.tar.bz2
Non-trivial DL_IMPORT must now be defined in config.h.
Include <stdlib.h>. Include several more Python header files, including new pydebug.h.
Diffstat (limited to 'Include')
-rw-r--r--Include/allobjects.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/Include/allobjects.h b/Include/allobjects.h
index 7573699..03b6363 100644
--- a/Include/allobjects.h
+++ b/Include/allobjects.h
@@ -28,27 +28,15 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* 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 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <stdio.h>
#include <string.h>
#include <errno.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#include "myproto.h"
@@ -66,6 +57,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "object.h"
#include "objimpl.h"
+#include "pydebug.h"
+
#include "accessobject.h"
#include "intobject.h"
#include "longobject.h"
@@ -84,12 +77,18 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#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"