diff options
author | Guido van Rossum <guido@python.org> | 1996-06-28 19:12:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-06-28 19:12:06 (GMT) |
commit | 1bc716f2fc2aeb4ef4481089727450eb7357f696 (patch) | |
tree | a725dce1097dd3344a0c2cf9c17cc899bd21e658 /PC/config.c | |
parent | c012547142cfa91192f562ea0204fcf6f5275708 (diff) | |
download | cpython-1bc716f2fc2aeb4ef4481089727450eb7357f696.zip cpython-1bc716f2fc2aeb4ef4481089727450eb7357f696.tar.gz cpython-1bc716f2fc2aeb4ef4481089727450eb7357f696.tar.bz2 |
Added PC files from Jim Ahlstrom.
Diffstat (limited to 'PC/config.c')
-rw-r--r-- | PC/config.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/PC/config.c b/PC/config.c index ffe6c7a..f8f0cb5 100644 --- a/PC/config.c +++ b/PC/config.c @@ -29,15 +29,10 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #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 initcmath(); extern void initenvironment(); extern void initimageop(); extern void initmath(); @@ -47,8 +42,8 @@ extern void initnt(); extern void initregex(); extern void initrgbimg(); extern void initrotor(); -extern void initselect(); extern void initsignal(); +extern void initselect(); extern void init_socket(); extern void initsoundex(); extern void initstrop(); @@ -60,16 +55,14 @@ extern void inittime(); extern void PyMarshal_Init(); extern void initimp(); -struct { - char *name; - void (*initfunc)(); -} inittab[] = { +struct _inittab inittab[] = { {"array", initarray}, #ifdef M_I386 {"audioop", initaudioop}, #endif {"binascii", initbinascii}, + {"cmath", initcmath}, {"environment", initenvironment}, {"imageop", initimageop}, {"math", initmath}, @@ -79,12 +72,10 @@ struct { {"regex", initregex}, {"rgbimg", initrgbimg}, {"rotor", initrotor}, -#ifdef USE_SELECT - {"select", initselect}, -#endif {"signal", initsignal}, #ifdef USE_SOCKET {"_socket", init_socket}, + {"select", initselect}, #endif {"soundex", initsoundex}, {"strop", initstrop}, |