mirror of https://github.com/python/cpython.git
More changes for NT, Guido style
This commit is contained in:
parent
497aedd2ff
commit
eaf9b6cd7b
|
@ -0,0 +1,2 @@
|
|||
EXPORTS
|
||||
init_tkinter
|
|
@ -33,7 +33,6 @@ extern void initarray();
|
|||
extern void initaudioop();
|
||||
extern void initbinascii();
|
||||
extern void initcmath();
|
||||
extern void initenvironment();
|
||||
extern void initerrno();
|
||||
extern void initimageop();
|
||||
extern void initmath();
|
||||
|
@ -65,7 +64,6 @@ struct _inittab inittab[] = {
|
|||
#endif
|
||||
{"binascii", initbinascii},
|
||||
{"cmath", initcmath},
|
||||
{"environment", initenvironment},
|
||||
{"errno", initerrno},
|
||||
{"imageop", initimageop},
|
||||
{"math", initmath},
|
||||
|
|
18
PC/config.h
18
PC/config.h
|
@ -44,6 +44,10 @@ compiler specific". Therefore, these should be very rare.
|
|||
#define PREFIX ""
|
||||
#define EXEC_PREFIX ""
|
||||
|
||||
#ifndef WIN32_PATCH_LEVEL
|
||||
#define WIN32_PATCH_LEVEL "14"
|
||||
#endif
|
||||
|
||||
/* Microsoft C defines _MSC_VER */
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER > 850
|
||||
|
@ -52,12 +56,16 @@ compiler specific". Therefore, these should be very rare.
|
|||
#define MS_WIN32
|
||||
#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
|
||||
#ifndef USE_DL_EXPORT
|
||||
#define USE_DL_IMPORT
|
||||
#endif /* !USE_DL_EXPORT */
|
||||
#endif /* MS_COREDLL */
|
||||
#endif /* !MS_NO_COREDLL */
|
||||
|
||||
#ifdef _M_IX86
|
||||
#define COMPILER "[MSC 32 bit (Intel)]"
|
||||
|
@ -283,6 +291,12 @@ typedef int pid_t;
|
|||
/* Define this if your time.h defines 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 HAVE_PROTOTYPES
|
||||
|
||||
|
|
|
@ -2,10 +2,6 @@
|
|||
#include "osdefs.h"
|
||||
#include <windows.h>
|
||||
|
||||
#ifndef WIN32_PATCH_LEVEL
|
||||
#define WIN32_PATCH_LEVEL "000"
|
||||
#endif
|
||||
|
||||
/* PREFIX and EXEC_PREFIX are meaningless on Windows */
|
||||
|
||||
#ifndef PREFIX
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/********************************************************************
|
||||
|
||||
importnt.c
|
||||
import_nt.c
|
||||
|
||||
Win32 specific import code.
|
||||
|
||||
|
@ -12,10 +12,6 @@
|
|||
#include "import.h"
|
||||
#include "importdl.h"
|
||||
|
||||
#ifndef WIN32_PATCH_LEVEL
|
||||
#define WIN32_PATCH_LEVEL "000"
|
||||
#endif
|
||||
|
||||
extern BOOL PyWin_IsWin32s();
|
||||
|
||||
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.
|
|||
|
||||
/* Python interpreter main program */
|
||||
|
||||
#define HAVE_CONFIG_H
|
||||
#include "Python.h"
|
||||
#undef main
|
||||
extern int Py_Main(int, char **);
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
|
|
|
@ -231,3 +231,8 @@ EXPORTS
|
|||
PyTuple_GetItem
|
||||
PyTuple_SetItem
|
||||
PyTuple_GetSlice
|
||||
Py_Main
|
||||
PySlice_Type DATA
|
||||
PySlice_New
|
||||
PySlice_GetIndices
|
||||
Py_GetProgramName
|
||||
|
|
5772
PC/vc40.mak
5772
PC/vc40.mak
File diff suppressed because it is too large
Load Diff
BIN
PC/vc40.mdp
BIN
PC/vc40.mdp
Binary file not shown.
BIN
PC/vc40.ncb
BIN
PC/vc40.ncb
Binary file not shown.
Loading…
Reference in New Issue