Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2e98b4

Browse files
committed
new versions from Jim A
1 parent 80b0fa0 commit f2e98b4

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

PC/config.c

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2929

3030
#include "Python.h"
3131

32+
#ifndef MS_WIN16
33+
/* Assume all 32-bit platforms come standard with a WINSOCK library */
34+
#define USE_SOCKET
35+
#define USE_SELECT
36+
#endif
37+
3238
extern void initarray();
3339
extern void initaudioop();
3440
extern void initbinascii();
@@ -41,8 +47,9 @@ extern void initnt();
4147
extern void initregex();
4248
extern void initrgbimg();
4349
extern void initrotor();
50+
extern void initselect();
4451
extern void initsignal();
45-
extern void initsocket();
52+
extern void init_socket();
4653
extern void initsoundex();
4754
extern void initstrop();
4855
extern void initstruct();
@@ -72,9 +79,12 @@ struct {
7279
{"regex", initregex},
7380
{"rgbimg", initrgbimg},
7481
{"rotor", initrotor},
82+
#ifdef USE_SELECT
83+
{"select", initselect},
84+
#endif
7585
{"signal", initsignal},
7686
#ifdef USE_SOCKET
77-
{"socket", initsocket},
87+
{"_socket", init_socket},
7888
#endif
7989
{"soundex", initsoundex},
8090
{"strop", initstrop},

PC/config.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ standard part of the Python distribution.
2424
#define HAVE_HYPOT
2525
#define DONT_HAVE_SIG_ALARM
2626
#define DONT_HAVE_SIG_PAUSE
27-
#define LONG_BIT 32
2827

2928
/* Microsoft C defines _MSC_VER */
3029

@@ -38,7 +37,6 @@ standard part of the Python distribution.
3837
#endif
3938
#define PYTHONPATH "c:\\python\\lib"
4039
typedef int pid_t;
41-
#define WORD_BIT 32
4240
#pragma warning(disable:4113)
4341
#define hypot _hypot
4442
#include <stdio.h>
@@ -48,7 +46,6 @@ typedef int pid_t;
4846
#define WITH_THREAD
4947
#ifndef NETSCAPE_PI
5048
#define USE_SOCKET
51-
#define _COMPLEX_DEFINED
5249
#endif
5350
#ifdef USE_DL_IMPORT
5451
#define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
@@ -65,8 +62,6 @@ typedef int pid_t;
6562
#define PYTHONPATH "c:\\python\\lib;c:\\python\\lib\\dos_8x3"
6663
#define IMPORT_8x3_NAMES
6764
typedef int pid_t;
68-
#define WORD_BIT 16
69-
#define _COMPLEX_DEFINED
7065
#pragma warning(disable:4113)
7166
#define memcpy memmove /* memcpy dangerous pointer wrap in Win 3.1 */
7267
#define hypot _hypot
@@ -111,11 +106,6 @@ int sscanf(const char *, const char *, ...);
111106
typedef int mode_t;
112107
typedef int uid_t;
113108
typedef int gid_t;
114-
#ifdef M_I386
115-
#define WORD_BIT 32
116-
#else
117-
#define WORD_BIT 16
118-
#endif
119109
#define VA_LIST_IS_ARRAY
120110
#define HAVE_CLOCK
121111
#define HAVE_STRFTIME

0 commit comments

Comments
 (0)