Kaydet (Commit) eaf9b6cd authored tarafından Guido van Rossum's avatar Guido van Rossum

More changes for NT, Guido style

üst 497aedd2
EXPORTS
init_tkinter
...@@ -33,7 +33,6 @@ extern void initarray(); ...@@ -33,7 +33,6 @@ extern void initarray();
extern void initaudioop(); extern void initaudioop();
extern void initbinascii(); extern void initbinascii();
extern void initcmath(); extern void initcmath();
extern void initenvironment();
extern void initerrno(); extern void initerrno();
extern void initimageop(); extern void initimageop();
extern void initmath(); extern void initmath();
...@@ -65,7 +64,6 @@ struct _inittab inittab[] = { ...@@ -65,7 +64,6 @@ struct _inittab inittab[] = {
#endif #endif
{"binascii", initbinascii}, {"binascii", initbinascii},
{"cmath", initcmath}, {"cmath", initcmath},
{"environment", initenvironment},
{"errno", initerrno}, {"errno", initerrno},
{"imageop", initimageop}, {"imageop", initimageop},
{"math", initmath}, {"math", initmath},
......
...@@ -44,6 +44,10 @@ compiler specific". Therefore, these should be very rare. ...@@ -44,6 +44,10 @@ compiler specific". Therefore, these should be very rare.
#define PREFIX "" #define PREFIX ""
#define EXEC_PREFIX "" #define EXEC_PREFIX ""
#ifndef WIN32_PATCH_LEVEL
#define WIN32_PATCH_LEVEL "14"
#endif
/* Microsoft C defines _MSC_VER */ /* Microsoft C defines _MSC_VER */
#if defined(_MSC_VER) && _MSC_VER > 850 #if defined(_MSC_VER) && _MSC_VER > 850
...@@ -52,12 +56,16 @@ compiler specific". Therefore, these should be very rare. ...@@ -52,12 +56,16 @@ compiler specific". Therefore, these should be very rare.
#define MS_WIN32 #define MS_WIN32
#define MS_WINDOWS #define MS_WINDOWS
#ifdef MS_COREDLL /* Python core is in a DLL */ /* For NT the Python core is in a DLL by default. Test the
standard macro MS_COREDLL to find out. If you have an exception
you must define MS_NO_COREDLL (do not test this macro) */
#ifndef MS_NO_COREDLL
#define MS_COREDLL /* Python core is in a DLL */
#define main Py_Main #define main Py_Main
#ifndef USE_DL_EXPORT #ifndef USE_DL_EXPORT
#define USE_DL_IMPORT #define USE_DL_IMPORT
#endif /* !USE_DL_EXPORT */ #endif /* !USE_DL_EXPORT */
#endif /* MS_COREDLL */ #endif /* !MS_NO_COREDLL */
#ifdef _M_IX86 #ifdef _M_IX86
#define COMPILER "[MSC 32 bit (Intel)]" #define COMPILER "[MSC 32 bit (Intel)]"
...@@ -283,6 +291,12 @@ typedef int pid_t; ...@@ -283,6 +291,12 @@ typedef int pid_t;
/* Define this if your time.h defines altzone */ /* Define this if your time.h defines altzone */
/* #define HAVE_ALTZONE */ /* #define HAVE_ALTZONE */
/* Define if you have the putenv function. */
#ifdef MS_WIN32
/* Does this exist on Win16? */
#define HAVE_PUTENV
#endif
/* Define if your compiler supports function prototypes */ /* Define if your compiler supports function prototypes */
#define HAVE_PROTOTYPES #define HAVE_PROTOTYPES
......
...@@ -2,10 +2,6 @@ ...@@ -2,10 +2,6 @@
#include "osdefs.h" #include "osdefs.h"
#include <windows.h> #include <windows.h>
#ifndef WIN32_PATCH_LEVEL
#define WIN32_PATCH_LEVEL "000"
#endif
/* PREFIX and EXEC_PREFIX are meaningless on Windows */ /* PREFIX and EXEC_PREFIX are meaningless on Windows */
#ifndef PREFIX #ifndef PREFIX
......
/******************************************************************** /********************************************************************
importnt.c import_nt.c
Win32 specific import code. Win32 specific import code.
...@@ -12,10 +12,6 @@ ...@@ -12,10 +12,6 @@
#include "import.h" #include "import.h"
#include "importdl.h" #include "importdl.h"
#ifndef WIN32_PATCH_LEVEL
#define WIN32_PATCH_LEVEL "000"
#endif
extern BOOL PyWin_IsWin32s(); extern BOOL PyWin_IsWin32s();
FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppFileDesc, char *pathBuf, int pathLen) FILE *PyWin_FindRegisteredModule( const char *moduleName, struct filedescr **ppFileDesc, char *pathBuf, int pathLen)
......
...@@ -24,9 +24,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -24,9 +24,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Python interpreter main program */ /* Python interpreter main program */
#define HAVE_CONFIG_H extern int Py_Main(int, char **);
#include "Python.h"
#undef main
int int
main(argc, argv) main(argc, argv)
......
...@@ -231,3 +231,8 @@ EXPORTS ...@@ -231,3 +231,8 @@ EXPORTS
PyTuple_GetItem PyTuple_GetItem
PyTuple_SetItem PyTuple_SetItem
PyTuple_GetSlice PyTuple_GetSlice
Py_Main
PySlice_Type DATA
PySlice_New
PySlice_GetIndices
Py_GetProgramName
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment