Commits

Anonymous committed 0685563

new versions from Jim A

Comments (0)

Files changed (2)

 
 #include "Python.h"
 
+#ifndef MS_WIN16
+/* Assume all 32-bit platforms come standard with a WINSOCK library */
+#define USE_SOCKET
+#define USE_SELECT
+#endif
+
 extern void initarray();
 extern void initaudioop();
 extern void initbinascii();
 extern void initregex();
 extern void initrgbimg();
 extern void initrotor();
+extern void initselect();
 extern void initsignal();
-extern void initsocket();
+extern void init_socket();
 extern void initsoundex();
 extern void initstrop();
 extern void initstruct();
         {"regex", initregex},
         {"rgbimg", initrgbimg},
         {"rotor", initrotor},
+#ifdef USE_SELECT
+	{"select", initselect},
+#endif
         {"signal", initsignal},
 #ifdef USE_SOCKET
-	{"socket", initsocket},
+	{"_socket", init_socket},
 #endif
         {"soundex", initsoundex},
         {"strop", initstrop},
 #define HAVE_HYPOT
 #define DONT_HAVE_SIG_ALARM
 #define DONT_HAVE_SIG_PAUSE
-#define LONG_BIT	32
 
 /* Microsoft C defines _MSC_VER */
 
 #endif
 #define PYTHONPATH "c:\\python\\lib"
 typedef int pid_t;
-#define WORD_BIT 32
 #pragma warning(disable:4113)
 #define hypot _hypot
 #include <stdio.h>
 #define WITH_THREAD
 #ifndef NETSCAPE_PI
 #define USE_SOCKET
-#define _COMPLEX_DEFINED
 #endif
 #ifdef USE_DL_IMPORT
 #define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
 #define PYTHONPATH "c:\\python\\lib;c:\\python\\lib\\dos_8x3"
 #define IMPORT_8x3_NAMES
 typedef int pid_t;
-#define WORD_BIT 16
-#define _COMPLEX_DEFINED
 #pragma warning(disable:4113)
 #define memcpy memmove	/* memcpy dangerous pointer wrap in Win 3.1 */
 #define hypot _hypot
 typedef int mode_t;
 typedef int uid_t;
 typedef int gid_t;
-#ifdef M_I386
-#define WORD_BIT 32
-#else
-#define WORD_BIT 16
-#endif
 #define VA_LIST_IS_ARRAY
 #define HAVE_CLOCK
 #define HAVE_STRFTIME