[Python-checkins] CVS: python/dist/src/PC config.h,1.46,1.47
Guido van Rossum
python-dev@python.org
Mon, 13 Nov 2000 09:29:34 -0800
Update of /cvsroot/python/python/dist/src/PC
In directory slayer.i.sourceforge.net:/tmp/cvs-serv20261
Modified Files:
config.h
Log Message:
Rip out DOS and Win16 support.
Index: config.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/PC/config.h,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -r1.46 -r1.47
*** config.h 2000/08/31 19:23:01 1.46
--- config.h 2000/11/13 17:29:30 1.47
***************
*** 129,223 ****
#endif /* _MSC_VER && > 850 */
- #if defined(_MSC_VER) && _MSC_VER <= 850 /* presume this implies Win16 */
- /* Start of defines for 16-bit Windows using VC++ 1.5 */
- #define COMPILER "[MSC 16-bit]"
- #define PYTHONPATH ".;.\\lib;.\\lib\\plat-win;.\\lib\\dos-8x3"
- #define IMPORT_8x3_NAMES
- typedef int pid_t;
- #define WORD_BIT 16
- #define SIZEOF_INT 2
- #define SIZEOF_LONG 4
- #define SIZEOF_VOID_P 4
- #pragma warning(disable:4113)
- #define memcpy memmove /* memcpy dangerous pointer wrap in Win 3.1 */
- #define hypot _hypot
- #define SIGINT 2
- #include <stdio.h>
- /* Windows 3.1 will not tolerate any console io in a dll */
- #ifdef _USRDLL
- #include <time.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define stdin ((FILE *)0)
- #define stdout ((FILE *)1)
- #define stderr ((FILE *)2)
- #define fflush Py_fflush
- int Py_fflush(FILE *);
- #define fgets Py_fgets
- char *Py_fgets(char *, int, FILE *);
- #define fileno Py_fileno
- int Py_fileno(FILE *);
- #define fprintf Py_fprintf
- int Py_fprintf(FILE *, const char *, ...);
- #define printf Py_printf
- int Py_printf(const char *, ...);
- #define sscanf Py_sscanf
- int Py_sscanf(const char *, const char *, ...);
- clock_t clock();
- void _exit(int);
- void exit(int);
- int sscanf(const char *, const char *, ...);
- #ifdef __cplusplus
- }
- #endif
- #endif /* _USRDLL */
- #ifndef NETSCAPE_PI
- /* use sockets, but not in a Netscape dll */
- #define USE_SOCKET
- #endif
- #endif /* MS_WIN16 */
-
- /* The Watcom compiler defines __WATCOMC__ */
- #ifdef __WATCOMC__
- #define COMPILER "[Watcom]"
- #define PYTHONPATH ".;.\\lib;.\\lib\\plat-win;.\\lib\\dos-8x3"
- #define IMPORT_8x3_NAMES
- #include <ctype.h>
- #include <direct.h>
- typedef int mode_t;
- typedef int uid_t;
- typedef int gid_t;
- typedef int pid_t;
- #if defined(__NT__)
- #define NT /* NT is obsolete - please use MS_WIN32 instead */
- #define MS_WIN32
- #define MS_WINDOWS
- #define NT_THREADS
- #define USE_SOCKET
- #define WITH_THREAD
- #elif defined(__WINDOWS__)
- #define MS_WIN16
- #define MS_WINDOWS
- #endif
- #ifdef M_I386
- #define WORD_BIT 32
- #define SIZEOF_INT 4
- #define SIZEOF_LONG 4
- #define SIZEOF_VOID_P 4
- #else
- #define WORD_BIT 16
- #define SIZEOF_INT 2
- #define SIZEOF_LONG 4
- #define SIZEOF_VOID_P 4
- #endif
- #define VA_LIST_IS_ARRAY
- #define HAVE_CLOCK
- #define HAVE_STRFTIME
- #ifdef USE_DL_EXPORT
- #define DL_IMPORT(RTYPE) RTYPE __export
- #endif
- #endif /* __WATCOMC__ */
-
/* The Borland compiler defines __BORLANDC__ */
/* XXX These defines are likely incomplete, but should be easy to fix. */
--- 129,132 ----
***************
*** 269,280 ****
#else /* !_WIN32 */
! /* XXX These defines are likely incomplete, but should be easy to fix. */
!
! #define PYTHONPATH ".;.\\lib;.\\lib\\plat-win;.\\lib\\dos-8x3"
! #define IMPORT_8x3_NAMES
! #ifdef USE_DL_IMPORT
! #define DL_IMPORT(RTYPE) RTYPE __import
! #endif
!
#endif /* !_WIN32 */
--- 178,182 ----
#else /* !_WIN32 */
! #error "Only Win32 and later are supported"
#endif /* !_WIN32 */
***************
*** 416,423 ****
# define SIZEOF_HKEY 4
# endif
- #elif defined(MS_WIN16)
- # define PLATFORM "win16"
- #else
- # define PLATFORM "dos"
#endif
--- 318,321 ----