home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / python14.zip / Python14-emx.diff < prev    next >
Text File  |  1996-11-16  |  82KB  |  2,673 lines

  1. diff --new-file -ru Python-1.4.orig/Include/osdefs.h Python-1.4/Include/osdefs.h
  2. --- Python-1.4.orig/Include/osdefs.h    Fri Oct 25 16:38:52 1996
  3. +++ Python-1.4/Include/osdefs.h    Sat Nov 16 16:26:14 1996
  4. @@ -44,7 +44,7 @@
  5.  #define DELIM '\n'
  6.  #endif
  7.  
  8. -#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__)
  9. +#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__EMX__)
  10.  #define SEP '\\'
  11.  #define ALTSEP '/'
  12.  #define MAXPATHLEN 256
  13. diff --new-file -ru Python-1.4.orig/Lib/os2/IN.py Python-1.4/Lib/os2/IN.py
  14. --- Python-1.4.orig/Lib/os2/IN.py    Thu Jan  1 01:00:00 1970
  15. +++ Python-1.4/Lib/os2/IN.py    Sat Nov 16 16:26:14 1996
  16. @@ -0,0 +1,62 @@
  17. +# Generated by h2py from /emx/include/netinet/in.h
  18. +IPPROTO_IP = 0
  19. +IPPROTO_ICMP = 1
  20. +IPPROTO_IGMP = 2
  21. +IPPROTO_GGP = 3
  22. +IPPROTO_TCP = 6
  23. +IPPROTO_EGP = 8
  24. +IPPROTO_PUP = 12
  25. +IPPROTO_UDP = 17
  26. +IPPROTO_IDP = 22
  27. +IPPROTO_TP = 29
  28. +IPPROTO_EON = 80
  29. +IPPROTO_RAW = 255
  30. +IPPROTO_MAX = 256
  31. +IPPORT_RESERVED = 1024
  32. +IPPORT_USERRESERVED = 5000
  33. +def IN_CLASSA(i): return (((long)(i) & 0x80000000) == 0)
  34. +
  35. +IN_CLASSA_NET = 0xff000000
  36. +IN_CLASSA_NSHIFT = 24
  37. +IN_CLASSA_HOST = 0x00ffffff
  38. +IN_CLASSA_MAX = 128
  39. +def IN_CLASSB(i): return (((long)(i) & 0xc0000000) == 0x80000000)
  40. +
  41. +IN_CLASSB_NET = 0xffff0000
  42. +IN_CLASSB_NSHIFT = 16
  43. +IN_CLASSB_HOST = 0x0000ffff
  44. +IN_CLASSB_MAX = 65536
  45. +def IN_CLASSC(i): return (((long)(i) & 0xe0000000) == 0xc0000000)
  46. +
  47. +IN_CLASSC_NET = 0xffffff00
  48. +IN_CLASSC_NSHIFT = 8
  49. +IN_CLASSC_HOST = 0x000000ff
  50. +def IN_CLASSD(i): return (((long)(i) & 0xf0000000) == 0xe0000000)
  51. +
  52. +IN_CLASSD_NET = 0xf0000000
  53. +IN_CLASSD_NSHIFT = 28
  54. +IN_CLASSD_HOST = 0x0fffffff
  55. +def IN_MULTICAST(i): return IN_CLASSD(i)
  56. +
  57. +def IN_EXPERIMENTAL(i): return (((long)(i) & 0xe0000000) == 0xe0000000)
  58. +
  59. +def IN_BADCLASS(i): return (((long)(i) & 0xf0000000) == 0xf0000000)
  60. +
  61. +INADDR_NONE = 0xffffffff
  62. +IN_LOOPBACKNET = 127
  63. +IP_OPTIONS = 1
  64. +IP_MULTICAST_IF = 2
  65. +IP_MULTICAST_TTL = 3
  66. +IP_MULTICAST_LOOP = 4
  67. +IP_ADD_MEMBERSHIP = 5
  68. +IP_DROP_MEMBERSHIP = 6
  69. +IP_HDRINCL = 2
  70. +IP_TOS = 3
  71. +IP_TTL = 4
  72. +IP_RECVOPTS = 5
  73. +IP_RECVRETOPTS = 6
  74. +IP_RECVDSTADDR = 7
  75. +IP_RETOPTS = 8
  76. +IP_DEFAULT_MULTICAST_TTL = 1
  77. +IP_DEFAULT_MULTICAST_LOOP = 1
  78. +IP_MAX_MEMBERSHIPS = 20
  79. diff --new-file -ru Python-1.4.orig/Lib/os2/SOCKET.py Python-1.4/Lib/os2/SOCKET.py
  80. --- Python-1.4.orig/Lib/os2/SOCKET.py    Thu Jan  1 01:00:00 1970
  81. +++ Python-1.4/Lib/os2/SOCKET.py    Sat Nov 16 16:26:14 1996
  82. @@ -0,0 +1,98 @@
  83. +# Generated by h2py from /emx/include/sys/socket.h
  84. +SOCK_STREAM = 1
  85. +SOCK_DGRAM = 2
  86. +SOCK_RAW = 3
  87. +SOCK_RDM = 4
  88. +SOCK_SEQPACKET = 5
  89. +SO_DEBUG = 0x0001
  90. +SO_ACCEPTCONN = 0x0002
  91. +SO_REUSEADDR = 0x0004
  92. +SO_KEEPALIVE = 0x0008
  93. +SO_DONTROUTE = 0x0010
  94. +SO_BROADCAST = 0x0020
  95. +SO_USELOOPBACK = 0x0040
  96. +SO_LINGER = 0x0080
  97. +SO_OOBINLINE = 0x0100
  98. +SO_L_BROADCAST = 0x0200
  99. +SO_RCV_SHUTDOWN = 0x0400
  100. +SO_SND_SHUTDOWN = 0x0800
  101. +SO_SNDBUF = 0x1001
  102. +SO_RCVBUF = 0x1002
  103. +SO_SNDLOWAT = 0x1003
  104. +SO_RCVLOWAT = 0x1004
  105. +SO_SNDTIMEO = 0x1005
  106. +SO_RCVTIMEO = 0x1006
  107. +SO_ERROR = 0x1007
  108. +SO_TYPE = 0x1008
  109. +SO_OPTIONS = 0x1010
  110. +SOL_SOCKET = 0xffff
  111. +AF_UNSPEC = 0
  112. +AF_UNIX = 1
  113. +AF_INET = 2
  114. +AF_IMPLINK = 3
  115. +AF_PUP = 4
  116. +AF_CHAOS = 5
  117. +AF_NS = 6
  118. +AF_NBS = 7
  119. +AF_ISO = 7
  120. +AF_OSI = AF_ISO
  121. +AF_ECMA = 8
  122. +AF_DATAKIT = 9
  123. +AF_CCITT = 10
  124. +AF_SNA = 11
  125. +AF_DECnet = 12
  126. +AF_DLI = 13
  127. +AF_LAT = 14
  128. +AF_HYLINK = 15
  129. +AF_APPLETALK = 16
  130. +AF_NB = 17
  131. +AF_NETBIOS = AF_NB
  132. +AF_OS2 = AF_UNIX
  133. +AF_MAX = 18
  134. +PF_UNSPEC = AF_UNSPEC
  135. +PF_UNIX = AF_UNIX
  136. +PF_INET = AF_INET
  137. +PF_IMPLINK = AF_IMPLINK
  138. +PF_PUP = AF_PUP
  139. +PF_CHAOS = AF_CHAOS
  140. +PF_NS = AF_NS
  141. +PF_NBS = AF_NBS
  142. +PF_ISO = AF_ISO
  143. +PF_OSI = AF_ISO
  144. +PF_ECMA = AF_ECMA
  145. +PF_DATAKIT = AF_DATAKIT
  146. +PF_CCITT = AF_CCITT
  147. +PF_SNA = AF_SNA
  148. +PF_DECnet = AF_DECnet
  149. +PF_DLI = AF_DLI
  150. +PF_LAT = AF_LAT
  151. +PF_HYLINK = AF_HYLINK
  152. +PF_APPLETALK = AF_APPLETALK
  153. +PF_NB = AF_NB
  154. +PF_NETBIOS = AF_NB
  155. +PF_OS2 = AF_UNIX
  156. +PF_MAX = AF_MAX
  157. +SOMAXCONN = 5
  158. +MSG_OOB = 0x1
  159. +MSG_PEEK = 0x2
  160. +MSG_DONTROUTE = 0x4
  161. +MSG_EOR = 0x8
  162. +MSG_TRUNC = 0x10
  163. +MSG_CTRUNC = 0x20
  164. +MSG_WAITALL = 0x40
  165. +MSG_MAXIOVLEN = 16
  166. +SCM_RIGHTS = 0x01
  167. +MT_FREE = 0
  168. +MT_DATA = 1
  169. +MT_HEADER = 2
  170. +MT_SOCKET = 3
  171. +MT_PCB = 4
  172. +MT_RTABLE = 5
  173. +MT_HTABLE = 6
  174. +MT_ATABLE = 7
  175. +MT_SONAME = 8
  176. +MT_ZOMBIE = 9
  177. +MT_SOOPTS = 10
  178. +MT_FTABLE = 11
  179. +MT_RIGHTS = 12
  180. +MT_IFADDR = 13
  181. diff --new-file -ru Python-1.4.orig/Lib/os2/TERMIOS.py Python-1.4/Lib/os2/TERMIOS.py
  182. --- Python-1.4.orig/Lib/os2/TERMIOS.py    Thu Jan  1 01:00:00 1970
  183. +++ Python-1.4/Lib/os2/TERMIOS.py    Sat Nov 16 16:26:14 1996
  184. @@ -0,0 +1,76 @@
  185. +# Generated by h2py from /emx/include/termios.h
  186. +TCSANOW = 0
  187. +TCSADRAIN = 1
  188. +TCSAFLUSH = 2
  189. +TCIFLUSH = 0
  190. +TCOFLUSH = 1
  191. +TCIOFLUSH = 2
  192. +TCOOFF = 0
  193. +TCOON = 1
  194. +TCIOFF = 2
  195. +TCION = 3
  196. +VINTR = 0
  197. +VQUIT = 1
  198. +VERASE = 2
  199. +VKILL = 3
  200. +VEOF = 4
  201. +VEOL = 5
  202. +VMIN = 6
  203. +VTIME = 7
  204. +VSUSP = 8
  205. +VSTOP = 9
  206. +VSTART = 10
  207. +NCCS = 11
  208. +IGNBRK = 0x0001
  209. +BRKINT = 0x0002
  210. +IGNPAR = 0x0004
  211. +PARMRK = 0x0008
  212. +INPCK = 0x0010
  213. +ISTRIP = 0x0020
  214. +INLCR = 0x0040
  215. +IGNCR = 0x0080
  216. +ICRNL = 0x0100
  217. +IXON = 0x0400
  218. +IXOFF = 0x1000
  219. +IUCLC = 0x0200
  220. +IXANY = 0x0800
  221. +IDELETE = 0x8000
  222. +OPOST = 0x0001
  223. +B0 = 0x0000
  224. +B50 = 0x0001
  225. +B75 = 0x0002
  226. +B110 = 0x0003
  227. +B134 = 0x0004
  228. +B150 = 0x0005
  229. +B200 = 0x0006
  230. +B300 = 0x0007
  231. +B600 = 0x0008
  232. +B1200 = 0x0009
  233. +B1800 = 0x000a
  234. +B2400 = 0x000b
  235. +B4800 = 0x000c
  236. +B9600 = 0x000d
  237. +B19200 = 0x000e
  238. +B38400 = 0x000f
  239. +CSIZE = 0x0030
  240. +CS5 = 0x0000
  241. +CS6 = 0x0010
  242. +CS7 = 0x0020
  243. +CS8 = 0x0030
  244. +CSTOPB = 0x0040
  245. +CREAD = 0x0080
  246. +PARENB = 0x0100
  247. +PARODD = 0x0200
  248. +HUPCL = 0x0400
  249. +CLOCAL = 0x0800
  250. +LOBLK = 0x1000
  251. +ISIG = 0x0001
  252. +ICANON = 0x0002
  253. +ECHO = 0x0008
  254. +ECHOE = 0x0010
  255. +ECHOK = 0x0020
  256. +ECHONL = 0x0040
  257. +NOFLSH = 0x0080
  258. +XCASE = 0x0004
  259. +IEXTEN = 0x0100
  260. +TOSTOP = 0x0200
  261. diff --new-file -ru Python-1.4.orig/Lib/os2/regen.cmd Python-1.4/Lib/os2/regen.cmd
  262. --- Python-1.4.orig/Lib/os2/regen.cmd    Thu Jan  1 01:00:00 1970
  263. +++ Python-1.4/Lib/os2/regen.cmd    Sat Nov 16 16:26:16 1996
  264. @@ -0,0 +1,4 @@
  265. +python ../../Tools/scripts/h2py.py /emx/include/fcntl.h
  266. +python ../../Tools/scripts/h2py.py /emx/include/sys/socket.h
  267. +python ../../Tools/scripts/h2py.py -i '(u_long)' /emx/include/netinet/in.h
  268. +python ../../Tools/scripts/h2py.py /emx/include/termios.h
  269. diff --new-file -ru Python-1.4.orig/Modules/Makefile Python-1.4/Modules/Makefile
  270. --- Python-1.4.orig/Modules/Makefile    Thu Jan  1 01:00:00 1970
  271. +++ Python-1.4/Modules/Makefile    Sat Nov 16 15:41:32 1996
  272. @@ -0,0 +1,305 @@
  273. +# Generated automatically from Makefile.pre by makesetup.
  274. +# Generated automatically from Makefile.pre.in by configure.
  275. +# META-NOTE: this note is different from the note in the other Makefiles!
  276. +# NOTE: Makefile.pre.in is converted into Makefile.pre by the configure
  277. +# script in the toplevel directory or by ../config.status.
  278. +# Makefile.pre is converted into Makefile by running the makesetup
  279. +# script in the source directory.  Once Makefile exists, it can be
  280. +# brought up to date by running "make Makefile".  (The makesetup also
  281. +# creates config.c from config.c.in in the source directory.)
  282. +
  283. +# Interpreter version number, for library destination pathnames
  284. +VERSION=    1.4
  285. +
  286. +# === Variables set by makesetup ===
  287. +
  288. +MODOBJS=      posixmodule.o  signalmodule.o  arraymodule.o  cmathmodule.o  mathmodule.o  regexmodule.o regexpr.o  stropmodule.o  structmodule.o  timemodule.o  operator.o  fcntlmodule.o  pwdmodule.o  selectmodule.o  socketmodule.o  errnomodule.o  audioop.o  imageop.o  rgbimgmodule.o  md5module.o md5c.o  rotormodule.o  binascii.o  parsermodule.o
  289. +# cryptmodule.o  
  290. +MODLIBS=    $(LOCALMODLIBS) $(BASEMODLIBS)
  291. +
  292. +# === Variables set by configure ===
  293. +
  294. +srcdir=        .
  295. +
  296. +CC=        gcc
  297. +RANLIB=        echo
  298. +AR=        ar
  299. +
  300. +OPT=        -O
  301. +LDFLAGS=    
  302. +
  303. +DEFS=        -DHAVE_CONFIG_H
  304. +LIBS=        -lsocket
  305. +LIBM=        -lm
  306. +LIBC=        
  307. +
  308. +# Machine-dependent subdirectories
  309. +MACHDEP=    os2
  310. +
  311. +# Install prefix for architecture-independent files
  312. +prefix=        
  313. +
  314. +# Install prefix for architecture-dependent files
  315. +exec_prefix=    ${prefix}
  316. +
  317. +# Expanded directories
  318. +BINDIR=        $(exec_prefix)/bin
  319. +LIBDIR=        $(exec_prefix)/lib
  320. +MANDIR=        $(prefix)/man
  321. +INCLUDEDIR=    $(prefix)/include
  322. +SCRIPTDIR=    $(prefix)/lib
  323. +
  324. +# Detailed destination directories
  325. +BINLIBDEST=    $(LIBDIR)/python$(VERSION)
  326. +LIBDEST=    $(SCRIPTDIR)/python$(VERSION)
  327. +INCLUDEPY=    $(INCLUDEDIR)/python$(VERSION)
  328. +LIBP=        $(LIBDIR)/python$(VERSION)
  329. +
  330. +# Symbols used for using shared libraries
  331. +SO=        .dll
  332. +LDSHARED=    gcc
  333. +CCSHARED=    gcc
  334. +LINKFORSHARED=
  335. +DESTSHARED=    $(BINLIBDEST)/sharedmodules
  336. +
  337. +# Portable install script (configure doesn't always guess right)
  338. +INSTALL=    ./../install-sh -c
  339. +INSTALL_PROGRAM=${INSTALL} -m 755
  340. +INSTALL_DATA=    ${INSTALL} -m 644
  341. +# Shared libraries must be installed with executable mode on some systems;
  342. +# rather than figuring out exactly which, we always give them executable mode.
  343. +# Also, making them read-only seems to be a good idea...
  344. +INSTALL_SHARED=    ${INSTALL} -m 555
  345. +
  346. +# === Variables that are customizable by hand or by inclusion in Setup ===
  347. +
  348. +LINKCC=        $(CC)
  349. +INCLDIR=    $(srcdir)/../Include
  350. +CONFIGINCLDIR=    ..
  351. +CFLAGS=        $(OPT) -I$(INCLDIR) -I$(CONFIGINCLDIR) $(DEFS)
  352. +
  353. +MKDEP=        mkdep
  354. +# SHELL=        /bin/sh
  355. +
  356. +MAKESETUP=    $(srcdir)/makesetup
  357. +
  358. +# (The makesetup script inserts all variable definitions found
  359. +# found in the Setup file just below the following line.
  360. +# This means that the Setup file can override any of the definitions
  361. +# given before this point, but not any given below.
  362. +# The script insert the definitions in reverse order,
  363. +# for the benefits of independent extensions.)
  364. +# === Definitions added by makesetup ===
  365. +
  366. +LOCALMODLIBS=                        
  367. +BASEMODLIBS=
  368. +# PYTHONPATH=".;\\Python-1.4"
  369. +# COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
  370. +MACHDEPPATH=:$(DESTLIB)/$(MACHDEP):$(MACHDESTLIB)/sharedmodules
  371. +TESTPATH=:$(DESTLIB)/test
  372. +SITEPATH=
  373. +DESTPATH=$(DESTLIB)
  374. +MACHDESTLIB=$(BINLIBDEST)
  375. +DESTLIB=$(LIBDEST)
  376. +
  377. +
  378. +# === Fixed definitions ===
  379. +
  380. +OBJS=        $(MODOBJS)
  381. +
  382. +ADDOBJS=    main.o config.o getpath.o
  383. +
  384. +LIB=        libModules.a
  385. +
  386. +MYLIBS=        $(LIB) \
  387. +        ../Python/libPython.a \
  388. +        ../Objects/libObjects.a \
  389. +        ../Parser/libParser.a
  390. +
  391. +SYSLIBS=    $(LIBM) $(LIBC)
  392. +
  393. +
  394. +# === Rules ===
  395. +
  396. +all:        $(LIB) ../python.exe sharedmods
  397. +
  398. +asharedmodule:    $(ASHAREDMODULE)$(SO)
  399. +
  400. +$(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS)
  401. +    $(LDSHARED) $(LDFLAGS) -o $(ASHAREDMODULE)$(SO) $(ASHAREDMODULESOBS) \
  402. +    $(ASHAREDMODULESEXTRA)
  403. +
  404. +$(LIB):        $& $(OBJS) Makefile
  405. +        -rm -f $(LIB)
  406. +        $(AR) crs $(LIB) $(OBJS)
  407. +        $(RANLIB) $(LIB)
  408. +
  409. +../python.exe:    $(MYLIBS) $(ADDOBJS) Makefile
  410. +        $(LINKCC) $(LDFLAGS) $(OPT) $(LINKFORSHARED) $(ADDOBJS) \
  411. +                $(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -Zcrtdll -Zdll -o Python14.dll Python14.def
  412. +        emximp -o Python14.lib Python14.def
  413. +        $(CC) -Zcrtdll -s -o python.exe main_os2.c Python14.lib python.def
  414. +        mv python.exe ..
  415. +        mv python14.dll ..
  416. +
  417. +clean:
  418. +        -rm -f *.o python core *~ [@,#]* *.old *.orig *.rej
  419. +
  420. +clobber:    clean
  421. +        -rm -f *.a tags TAGS config.c glmodule.c Makefile.pre
  422. +        -rm -f *.so *.sl so_locations
  423. +
  424. +getpath.o:    getpath.c Makefile
  425. +        $(CC) -c $(CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
  426. +              -DPREFIX='"$(prefix)"' \
  427. +              -DEXEC_PREFIX='"$(exec_prefix)"' \
  428. +              $(srcdir)/getpath.c -o getpath.o
  429. +
  430. +# config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup Setup.local
  431. +#        $(SHELL) $(MAKESETUP) Setup Setup.local
  432. +
  433. +Setup:
  434. +        cp $(srcdir)/Setup.in Setup
  435. +
  436. +Setup.local:
  437. +        echo "# Edit this file for local setup changes" >Setup.local
  438. +
  439. +# Makefile.pre:    Makefile.pre.in ../config.status
  440. +#         (cd ..; CONFIG_FILES=Modules/Makefile.pre CONFIG_HEADERS= \
  441. +#         $(SHELL) config.status)
  442. +# 
  443. +depend:
  444. +        $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
  445. +                    sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
  446. +
  447. +.PRECIOUS:    ../python.exe
  448. +
  449. +glmodule.c:    $(srcdir)/cgen.py $(srcdir)/cstubs
  450. +        python $(srcdir)/cgen.py <$(srcdir)/cstubs >glmodule.c
  451. +
  452. +almodule.o: almodule.c
  453. +arraymodule.o: arraymodule.c
  454. +audioop.o: audioop.c
  455. +cdmodule.o: cdmodule.c
  456. +clmodule.o: clmodule.c
  457. +dbmmodule.o: dbmmodule.c
  458. +errnomodule.o: errnomodule.c
  459. +fcntlmodule.o: fcntlmodule.c
  460. +flmodule.o: flmodule.c
  461. +fmmodule.o: fmmodule.c
  462. +glmodule.o: glmodule.c
  463. +imageop.o: imageop.c
  464. +imgfile.o: imgfile.c
  465. +main.o: main.c
  466. +mathmodule.o: mathmodule.c
  467. +md5c.o: md5c.c
  468. +md5module.o: md5module.c
  469. +mpzmodule.o: mpzmodule.c
  470. +nismodule.o: nismodule.c
  471. +operator.o: operator.c
  472. +parsermodule.o: parsermodule.c
  473. +posixmodule.o: posixmodule.c
  474. +pwdmodule.o: pwdmodule.c
  475. +regexmodule.o: regexmodule.c
  476. +regexpr.o: regexpr.c
  477. +rgbimgmodule.o: rgbimgmodule.c
  478. +rotormodule.o: rotormodule.c
  479. +selectmodule.o: selectmodule.c
  480. +sgimodule.o: sgimodule.c
  481. +socketmodule.o: socketmodule.c
  482. +stdwinmodule.o: stdwinmodule.c
  483. +stropmodule.o: stropmodule.c
  484. +structmodule.o: structmodule.c
  485. +sunaudiodev.o: sunaudiodev.c
  486. +svmodule.o: svmodule.c
  487. +threadmodule.o: threadmodule.c
  488. +timemodule.o: timemodule.c
  489. +timingmodule.o: timingmodule.c
  490. +xxmodule.o: xxmodule.c
  491. +yuvconvert.o: yuvconvert.c
  492. +
  493. +# Rules to build and install all shared modules
  494. +sharedmods:    $(SHAREDMODS)
  495. +sharedinstall:    $(DESTSHARED) $(SHAREDMODS)
  496. +        -for i in X $(SHAREDMODS); do \
  497. +            if test $$i != X; \
  498. +            then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
  499. +            fi; \
  500. +        done
  501. +
  502. +# Install a shared module from outside of setup
  503. +asharedinstall:    $(DESTSHARED) $(ASHAREDMODULE)$(SO)
  504. +        -for i in dummy $(ASHAREDMODULE)$(SO); do \
  505. +            if test -f $$i; then mv $$i $(DESTSHARED)/$$i; fi; done
  506. +
  507. +# This is handy when modules need to know where the destination directory is:
  508. +echodestshared: $(DESTSHARED)
  509. +    echo     $(DESTSHARED)
  510. +
  511. +DESTDIRS=    $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED)
  512. +
  513. +$(DESTSHARED): 
  514. +        @for i in $(DESTDIRS); \
  515. +        do \
  516. +            if test ! -d $$i; then \
  517. +                echo "Creating directory $$i"; \
  518. +                mkdir $$i; \
  519. +                chmod 755 $$i; \
  520. +            else    true; \
  521. +            fi; \
  522. +        done
  523. +
  524. +# Stuff is appended here by makesetup and make depend
  525. +
  526. +# Rules appended by makedepend
  527. +
  528. +posixmodule.o: $(srcdir)/posixmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/posixmodule.c -o posixmodule.o
  529. +posixmodule$(SO):  posixmodule.o; $(LDSHARED)  posixmodule.o  -o posixmodule$(SO)
  530. +signalmodule.o: $(srcdir)/signalmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/signalmodule.c -o signalmodule.o
  531. +signalmodule$(SO):  signalmodule.o; $(LDSHARED)  signalmodule.o  -o signalmodule$(SO)
  532. +arraymodule.o: $(srcdir)/arraymodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/arraymodule.c -o arraymodule.o
  533. +arraymodule$(SO):  arraymodule.o; $(LDSHARED)  arraymodule.o  -o arraymodule$(SO)
  534. +cmathmodule.o: $(srcdir)/cmathmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/cmathmodule.c -o cmathmodule.o
  535. +cmathmodule$(SO):  cmathmodule.o; $(LDSHARED)  cmathmodule.o  -o cmathmodule$(SO)
  536. +mathmodule.o: $(srcdir)/mathmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/mathmodule.c -o mathmodule.o
  537. +mathmodule$(SO):  mathmodule.o; $(LDSHARED)  mathmodule.o  -o mathmodule$(SO)
  538. +regexmodule.o: $(srcdir)/regexmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/regexmodule.c -o regexmodule.o
  539. +regexpr.o: $(srcdir)/regexpr.c; $(CC) $(CFLAGS)  -c $(srcdir)/regexpr.c -o regexpr.o
  540. +regexmodule$(SO):  regexmodule.o regexpr.o; $(LDSHARED)  regexmodule.o regexpr.o  -o regexmodule$(SO)
  541. +stropmodule.o: $(srcdir)/stropmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/stropmodule.c -o stropmodule.o
  542. +stropmodule$(SO):  stropmodule.o; $(LDSHARED)  stropmodule.o  -o stropmodule$(SO)
  543. +structmodule.o: $(srcdir)/structmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/structmodule.c -o structmodule.o
  544. +structmodule$(SO):  structmodule.o; $(LDSHARED)  structmodule.o  -o structmodule$(SO)
  545. +timemodule.o: $(srcdir)/timemodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/timemodule.c -o timemodule.o
  546. +timemodule$(SO):  timemodule.o; $(LDSHARED)  timemodule.o  -o timemodule$(SO)
  547. +operator.o: $(srcdir)/operator.c; $(CC) $(CFLAGS)  -c $(srcdir)/operator.c -o operator.o
  548. +operator$(SO):  operator.o; $(LDSHARED)  operator.o  -o operator$(SO)
  549. +fcntlmodule.o: $(srcdir)/fcntlmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/fcntlmodule.c -o fcntlmodule.o
  550. +fcntlmodule$(SO):  fcntlmodule.o; $(LDSHARED)  fcntlmodule.o  -o fcntlmodule$(SO)
  551. +pwdmodule.o: $(srcdir)/pwdmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/pwdmodule.c -o pwdmodule.o
  552. +pwdmodule$(SO):  pwdmodule.o; $(LDSHARED)  pwdmodule.o  -o pwdmodule$(SO)
  553. +grpmodule.o: $(srcdir)/grpmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/grpmodule.c -o grpmodule.o
  554. +grpmodule$(SO):  grpmodule.o; $(LDSHARED)  grpmodule.o  -o grpmodule$(SO)
  555. +cryptmodule.o: $(srcdir)/cryptmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/cryptmodule.c -o cryptmodule.o
  556. +cryptmodule$(SO):  cryptmodule.o; $(LDSHARED)  cryptmodule.o  -o cryptmodule$(SO)
  557. +selectmodule.o: $(srcdir)/selectmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/selectmodule.c -o selectmodule.o
  558. +selectmodule$(SO):  selectmodule.o; $(LDSHARED)  selectmodule.o  -o selectmodule$(SO)
  559. +socketmodule.o: $(srcdir)/socketmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/socketmodule.c -o socketmodule.o
  560. +socketmodule$(SO):  socketmodule.o; $(LDSHARED)  socketmodule.o  -o socketmodule$(SO)
  561. +errnomodule.o: $(srcdir)/errnomodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/errnomodule.c -o errnomodule.o
  562. +errnomodule$(SO):  errnomodule.o; $(LDSHARED)  errnomodule.o  -o errnomodule$(SO)
  563. +audioop.o: $(srcdir)/audioop.c; $(CC) $(CFLAGS)  -c $(srcdir)/audioop.c -o audioop.o
  564. +audioop$(SO):  audioop.o; $(LDSHARED)  audioop.o  -o audioop$(SO)
  565. +imageop.o: $(srcdir)/imageop.c; $(CC) $(CFLAGS)  -c $(srcdir)/imageop.c -o imageop.o
  566. +imageop$(SO):  imageop.o; $(LDSHARED)  imageop.o  -o imageop$(SO)
  567. +rgbimgmodule.o: $(srcdir)/rgbimgmodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/rgbimgmodule.c -o rgbimgmodule.o
  568. +rgbimgmodule$(SO):  rgbimgmodule.o; $(LDSHARED)  rgbimgmodule.o  -o rgbimgmodule$(SO)
  569. +md5module.o: $(srcdir)/md5module.c; $(CC) $(CFLAGS)  -c $(srcdir)/md5module.c -o md5module.o
  570. +md5c.o: $(srcdir)/md5c.c; $(CC) $(CFLAGS)  -c $(srcdir)/md5c.c -o md5c.o
  571. +md5module$(SO):  md5module.o md5c.o; $(LDSHARED)  md5module.o md5c.o  -o md5module$(SO)
  572. +rotormodule.o: $(srcdir)/rotormodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/rotormodule.c -o rotormodule.o
  573. +rotormodule$(SO):  rotormodule.o; $(LDSHARED)  rotormodule.o  -o rotormodule$(SO)
  574. +binascii.o: $(srcdir)/binascii.c; $(CC) $(CFLAGS)  -c $(srcdir)/binascii.c -o binascii.o
  575. +binascii$(SO):  binascii.o; $(LDSHARED)  binascii.o  -o binascii$(SO)
  576. +parsermodule.o: $(srcdir)/parsermodule.c; $(CC) $(CFLAGS)  -c $(srcdir)/parsermodule.c -o parsermodule.o
  577. +parsermodule$(SO):  parsermodule.o; $(LDSHARED)  parsermodule.o  -o parsermodule$(SO)
  578. diff --new-file -ru Python-1.4.orig/Modules/Makefile.pre Python-1.4/Modules/Makefile.pre
  579. --- Python-1.4.orig/Modules/Makefile.pre    Thu Jan  1 01:00:00 1970
  580. +++ Python-1.4/Modules/Makefile.pre    Sat Nov 16 16:26:18 1996
  581. @@ -0,0 +1,235 @@
  582. +# Generated automatically from Makefile.pre.in by configure.
  583. +# META-NOTE: this note is different from the note in the other Makefiles!
  584. +# NOTE: Makefile.pre.in is converted into Makefile.pre by the configure
  585. +# script in the toplevel directory or by ../config.status.
  586. +# Makefile.pre is converted into Makefile by running the makesetup
  587. +# script in the source directory.  Once Makefile exists, it can be
  588. +# brought up to date by running "make Makefile".  (The makesetup also
  589. +# creates config.c from config.c.in in the source directory.)
  590. +
  591. +# Interpreter version number, for library destination pathnames
  592. +VERSION=    1.4
  593. +
  594. +# === Variables set by makesetup ===
  595. +
  596. +MODOBJS=    _MODOBJS_
  597. +MODLIBS=    _MODLIBS_
  598. +
  599. +# === Variables set by configure ===
  600. +
  601. +srcdir=        .
  602. +
  603. +CC=        gcc
  604. +RANLIB=        ranlib
  605. +AR=        ar
  606. +
  607. +OPT=        -O
  608. +LDFLAGS=    
  609. +
  610. +DEFS=        -DHAVE_CONFIG_H
  611. +LIBS=        -lieee -ldl 
  612. +LIBM=        -lm
  613. +LIBC=        
  614. +
  615. +# Machine-dependent subdirectories
  616. +MACHDEP=    linux2
  617. +
  618. +# Install prefix for architecture-independent files
  619. +prefix=        /usr
  620. +
  621. +# Install prefix for architecture-dependent files
  622. +exec_prefix=    ${prefix}
  623. +
  624. +# Expanded directories
  625. +BINDIR=        $(exec_prefix)/bin
  626. +LIBDIR=        $(exec_prefix)/lib
  627. +MANDIR=        $(prefix)/man
  628. +INCLUDEDIR=    $(prefix)/include
  629. +SCRIPTDIR=    $(prefix)/lib
  630. +
  631. +# Detailed destination directories
  632. +BINLIBDEST=    $(LIBDIR)/python$(VERSION)
  633. +LIBDEST=    $(SCRIPTDIR)/python$(VERSION)
  634. +INCLUDEPY=    $(INCLUDEDIR)/python$(VERSION)
  635. +LIBP=        $(LIBDIR)/python$(VERSION)
  636. +
  637. +# Symbols used for using shared libraries
  638. +SO=        .so
  639. +LDSHARED=    gcc -shared
  640. +CCSHARED=    -fpic
  641. +LINKFORSHARED=    -rdynamic
  642. +DESTSHARED=    $(BINLIBDEST)/sharedmodules
  643. +
  644. +# Portable install script (configure doesn't always guess right)
  645. +INSTALL=    ./../install-sh -c
  646. +INSTALL_PROGRAM=${INSTALL} -m 755
  647. +INSTALL_DATA=    ${INSTALL} -m 644
  648. +# Shared libraries must be installed with executable mode on some systems;
  649. +# rather than figuring out exactly which, we always give them executable mode.
  650. +# Also, making them read-only seems to be a good idea...
  651. +INSTALL_SHARED=    ${INSTALL} -m 555
  652. +
  653. +# === Variables that are customizable by hand or by inclusion in Setup ===
  654. +
  655. +LINKCC=        $(CC)
  656. +INCLDIR=    $(srcdir)/../Include
  657. +CONFIGINCLDIR=    ..
  658. +CFLAGS=        $(OPT) -I$(INCLDIR) -I$(CONFIGINCLDIR) $(DEFS)
  659. +
  660. +MKDEP=        mkdep
  661. +SHELL=        /bin/sh
  662. +
  663. +MAKESETUP=    $(srcdir)/makesetup
  664. +
  665. +# (The makesetup script inserts all variable definitions found
  666. +# found in the Setup file just below the following line.
  667. +# This means that the Setup file can override any of the definitions
  668. +# given before this point, but not any given below.
  669. +# The script insert the definitions in reverse order,
  670. +# for the benefits of independent extensions.)
  671. +# === Definitions added by makesetup ===
  672. +
  673. +# === Fixed definitions ===
  674. +
  675. +OBJS=        $(MODOBJS)
  676. +
  677. +ADDOBJS=    main.o config.o getpath.o
  678. +
  679. +LIB=        libModules.a
  680. +
  681. +MYLIBS=        $(LIB) \
  682. +        ../Python/libPython.a \
  683. +        ../Objects/libObjects.a \
  684. +        ../Parser/libParser.a
  685. +
  686. +SYSLIBS=    $(LIBM) $(LIBC)
  687. +
  688. +
  689. +# === Rules ===
  690. +
  691. +all:        $(LIB) ../python sharedmods
  692. +
  693. +asharedmodule:    $(ASHAREDMODULE)$(SO)
  694. +
  695. +$(ASHAREDMODULE)$(SO): $(ASHAREDMODULESOBS)
  696. +    $(LDSHARED) $(LDFLAGS) -o $(ASHAREDMODULE)$(SO) $(ASHAREDMODULESOBS) \
  697. +    $(ASHAREDMODULESEXTRA)
  698. +
  699. +$(LIB):        $& $(OBJS) Makefile
  700. +        -rm -f $(LIB)
  701. +        $(AR) cr $(LIB) $(OBJS)
  702. +        $(RANLIB) $(LIB)
  703. +
  704. +../python:    $(MYLIBS) $(ADDOBJS) Makefile
  705. +        $(LINKCC) $(LDFLAGS) $(OPT) $(LINKFORSHARED) $(ADDOBJS) \
  706. +              $(MYLIBS) $(MODLIBS) $(LIBS) $(SYSLIBS) -o python
  707. +        mv python ../python
  708. +
  709. +clean:
  710. +        -rm -f *.o python core *~ [@,#]* *.old *.orig *.rej
  711. +
  712. +clobber:    clean
  713. +        -rm -f *.a tags TAGS config.c glmodule.c Makefile.pre
  714. +        -rm -f *.so *.sl so_locations
  715. +
  716. +getpath.o:    getpath.c Makefile
  717. +        $(CC) -c $(CFLAGS) -DPYTHONPATH='"$(PYTHONPATH)"' \
  718. +              -DPREFIX='"$(prefix)"' \
  719. +              -DEXEC_PREFIX='"$(exec_prefix)"' \
  720. +              $(srcdir)/getpath.c
  721. +
  722. +config.c Makefile: Makefile.pre config.c.in $(MAKESETUP) Setup Setup.local
  723. +        $(SHELL) $(MAKESETUP) Setup Setup.local
  724. +
  725. +Setup:
  726. +        cp $(srcdir)/Setup.in Setup
  727. +
  728. +Setup.local:
  729. +        echo "# Edit this file for local setup changes" >Setup.local
  730. +
  731. +Makefile.pre:    Makefile.pre.in ../config.status
  732. +        (cd ..; CONFIG_FILES=Modules/Makefile.pre CONFIG_HEADERS= \
  733. +        $(SHELL) config.status)
  734. +
  735. +depend:
  736. +        $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
  737. +                    sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
  738. +
  739. +.PRECIOUS:    ../python
  740. +
  741. +glmodule.c:    $(srcdir)/cgen.py $(srcdir)/cstubs
  742. +        python $(srcdir)/cgen.py <$(srcdir)/cstubs >glmodule.c
  743. +
  744. +almodule.o: almodule.c
  745. +arraymodule.o: arraymodule.c
  746. +audioop.o: audioop.c
  747. +cdmodule.o: cdmodule.c
  748. +clmodule.o: clmodule.c
  749. +dbmmodule.o: dbmmodule.c
  750. +errnomodule.o: errnomodule.c
  751. +fcntlmodule.o: fcntlmodule.c
  752. +flmodule.o: flmodule.c
  753. +fmmodule.o: fmmodule.c
  754. +glmodule.o: glmodule.c
  755. +imageop.o: imageop.c
  756. +imgfile.o: imgfile.c
  757. +main.o: main.c
  758. +mathmodule.o: mathmodule.c
  759. +md5c.o: md5c.c
  760. +md5module.o: md5module.c
  761. +mpzmodule.o: mpzmodule.c
  762. +nismodule.o: nismodule.c
  763. +operator.o: operator.c
  764. +parsermodule.o: parsermodule.c
  765. +posixmodule.o: posixmodule.c
  766. +pwdmodule.o: pwdmodule.c
  767. +regexmodule.o: regexmodule.c
  768. +regexpr.o: regexpr.c
  769. +rgbimgmodule.o: rgbimgmodule.c
  770. +rotormodule.o: rotormodule.c
  771. +selectmodule.o: selectmodule.c
  772. +sgimodule.o: sgimodule.c
  773. +socketmodule.o: socketmodule.c
  774. +stdwinmodule.o: stdwinmodule.c
  775. +stropmodule.o: stropmodule.c
  776. +structmodule.o: structmodule.c
  777. +sunaudiodev.o: sunaudiodev.c
  778. +svmodule.o: svmodule.c
  779. +threadmodule.o: threadmodule.c
  780. +timemodule.o: timemodule.c
  781. +timingmodule.o: timingmodule.c
  782. +xxmodule.o: xxmodule.c
  783. +yuvconvert.o: yuvconvert.c
  784. +
  785. +# Rules to build and install all shared modules
  786. +sharedmods:    $(SHAREDMODS)
  787. +sharedinstall:    $(DESTSHARED) $(SHAREDMODS)
  788. +        -for i in X $(SHAREDMODS); do \
  789. +            if test $$i != X; \
  790. +            then $(INSTALL_SHARED) $$i $(DESTSHARED)/$$i; \
  791. +            fi; \
  792. +        done
  793. +
  794. +# Install a shared module from outside of setup
  795. +asharedinstall:    $(DESTSHARED) $(ASHAREDMODULE)$(SO)
  796. +        -for i in dummy $(ASHAREDMODULE)$(SO); do \
  797. +            if test -f $$i; then mv $$i $(DESTSHARED)/$$i; fi; done
  798. +
  799. +# This is handy when modules need to know where the destination directory is:
  800. +echodestshared: $(DESTSHARED)
  801. +    echo     $(DESTSHARED)
  802. +
  803. +DESTDIRS=    $(exec_prefix) $(LIBDIR) $(BINLIBDEST) $(DESTSHARED)
  804. +
  805. +$(DESTSHARED): 
  806. +        @for i in $(DESTDIRS); \
  807. +        do \
  808. +            if test ! -d $$i; then \
  809. +                echo "Creating directory $$i"; \
  810. +                mkdir $$i; \
  811. +                chmod 755 $$i; \
  812. +            else    true; \
  813. +            fi; \
  814. +        done
  815. +
  816. +# Stuff is appended here by makesetup and make depend
  817. diff --new-file -ru Python-1.4.orig/Modules/Python.def Python-1.4/Modules/Python.def
  818. --- Python-1.4.orig/Modules/Python.def    Thu Jan  1 01:00:00 1970
  819. +++ Python-1.4/Modules/Python.def    Sat Nov 16 17:16:24 1996
  820. @@ -0,0 +1,5 @@
  821. +NAME         PYTHON     WINDOWCOMPAT
  822. +CODE        PRELOAD MOVABLE DISCARDABLE
  823. +DATA               PRELOAD MOVABLE
  824. +DESCRIPTION    'Python 1.4 for OS/2 - EMX0.9c FIX 02'
  825. +STACKSIZE    128000
  826. diff --new-file -ru Python-1.4.orig/Modules/Setup Python-1.4/Modules/Setup
  827. --- Python-1.4.orig/Modules/Setup    Thu Jan  1 01:00:00 1970
  828. +++ Python-1.4/Modules/Setup    Sat Nov 16 16:26:18 1996
  829. @@ -0,0 +1,316 @@
  830. +# The file Setup is used by the makesetup script to construct the files
  831. +# Makefile and config.c, from Makefile.pre and config.c.in,
  832. +# respectively.  The file Setup itself is initially copied from
  833. +# Setup.in; once it exists it will not be overwritten, so you can edit
  834. +# Setup to your heart's content.  Note that Makefile.pre is created
  835. +# from Makefile.pre.in by the toplevel configure script.
  836. +
  837. +# (VPATH notes: Setup and Makefile.pre are in the build directory, as
  838. +# are Makefile and config.c; the *.in files are in the source
  839. +# directory.)
  840. +
  841. +# Each line in this file describes one or more optional modules.
  842. +# Comment out lines to suppress modules.
  843. +# Lines have the following structure:
  844. +#
  845. +# <module> ... [<sourcefile> ...] [<cpparg> ...] [<library> ...]
  846. +#
  847. +# <sourcefile> is anything ending in .c (.C, .cc, .c++ are C++ files)
  848. +# <cpparg> is anything starting with -I, -D, -U or -C
  849. +# <library> is anything ending in .a or beginning with -l or -L
  850. +# <module> is anything else but should be a valid Python
  851. +# identifier (letters, digits, underscores, beginning with non-digit)
  852. +#
  853. +# (As the makesetup script changes, it may recognize some other
  854. +# arguments as well, e.g. *.so and *.sl as libraries.  See the big
  855. +# case statement in the makesetup script.)
  856. +#
  857. +# Lines can also have the form
  858. +#
  859. +# <name> = <value>
  860. +#
  861. +# which defines a Make variable definition inserted into Makefile.in
  862. +#
  863. +# Finally, if a line has the literal form
  864. +#
  865. +# *shared*
  866. +#
  867. +# (that is including the '*' and '*' !) then the following modules will
  868. +# not be included in the config.c file, nor in the list of objects to be
  869. +# added to the library archive, and their linker options won't be added 
  870. +# to the linker options, but rules to create their .o files and their
  871. +# shared libraries will still be added to the Makefile, and their
  872. +# names will be collected in the Make variable SHAREDMODS.  This is
  873. +# used to build modules as shared libraries.  (They must be installed
  874. +# using "make sharedinstall".)  (For compatibility, *noconfig* has the
  875. +# same effect as *shared*.)
  876. +
  877. +# NOTE: As a standard policy, as many modules as can be supported by a
  878. +# platform should be present.  The distribution comes with all modules
  879. +# enabled that are supported by most platforms and don't require you
  880. +# to ftp sources from elsewhere.
  881. +
  882. +
  883. +# -------> Uncomment this line if you are running AIX    <----------
  884. +# -------> and if you are building with shared libraries <----------
  885. +#LINKCC= makexp_aix python.exp "" $(MYLIBS) $(ADDOBJS) ; $(CC)
  886. +
  887. +
  888. +# Some special rules to define PYTHONPATH.
  889. +# Edit the definitions below to indicate which options you are using.
  890. +# Don't add any whitespace or comments!
  891. +
  892. +# Directories where library files get installed.
  893. +# DESTLIB is for Python modules; MACHDESTLIB for shared libraries.
  894. +DESTLIB=$(LIBDEST)
  895. +MACHDESTLIB=$(BINLIBDEST)
  896. +
  897. +# Standard path -- don't edit.
  898. +# No leading colon since this is the first entry
  899. +DESTPATH=$(DESTLIB)
  900. +
  901. +# Site specific path components -- should begin with : if non-empty
  902. +SITEPATH=
  903. +
  904. +# Standard path components for test modules
  905. +TESTPATH=:$(DESTLIB)/test
  906. +
  907. +# Path components for machine- or system-dependent modules and shared libraries
  908. +MACHDEPPATH=:$(DESTLIB)/$(MACHDEP):$(MACHDESTLIB)/sharedmodules
  909. +
  910. +COREPYTHONPATH=$(DESTPATH)$(SITEPATH)$(TESTPATH)$(MACHDEPPATH)$(STDWINPATH)$(TKPATH)
  911. +PYTHONPATH=$(COREPYTHONPATH)
  912. +
  913. +
  914. +# The modules listed here can't be built as shared libraries for
  915. +# various reasons; therefore they are listed here instead of in the
  916. +# normal order.
  917. +
  918. +# Some modules that are normally always on:
  919. +
  920. +posix posixmodule.c        # posix (UNIX) system calls
  921. +signal signalmodule.c        # signal(2)
  922. +
  923. +# The SGI specific GL module:
  924. +
  925. +#gl glmodule.c -lgl -lX11    # Graphics Library -- SGI only
  926. +
  927. +# Thread module -- use only if Python has thread support for your OS.
  928. +# Note that you must have configured (and built!) Python with the
  929. +# --with-thread option passed to the configure script for this to work:
  930. +
  931. +#thread threadmodule.c
  932. +
  933. +# Uncommenting the following line tells makesetup that all following
  934. +# modules are to be built as shared libraries (see above for more
  935. +# detail):
  936. +
  937. +#*shared*
  938. +
  939. +
  940. +# Modules that should always be present (non UNIX dependent):
  941. +
  942. +array arraymodule.c    # array objects
  943. +cmath cmathmodule.c # -lm # complex math library functions
  944. +math mathmodule.c # -lm # math library functions, e.g. sin()
  945. +regex regexmodule.c regexpr.c    # Regular expressions, GNU Emacs style
  946. +strop stropmodule.c    # fast string operations implemented in C
  947. +struct structmodule.c    # binary structure packing/unpacking
  948. +time timemodule.c # -lm # time operations and variables
  949. +operator operator.c    # operator.add() and similar goodies
  950. +
  951. +
  952. +# Modules with some UNIX dependencies -- on by default:
  953. +# (If you have a really backward UNIX, select and socket may not be
  954. +# supported...)
  955. +
  956. +fcntl fcntlmodule.c    # fcntl(2) and ioctl(2)
  957. +pwd pwdmodule.c        # pwd(3) 
  958. +grp grpmodule.c        # grp(3)
  959. +crypt cryptmodule.c # -lcrypt    # crypt(3); needs -lcrypt on some systems
  960. +select selectmodule.c    # select(2); not on ancient System V
  961. +socket socketmodule.c    # socket(2); not on ancient System V
  962. +errno errnomodule.c    # posix (UNIX) errno values
  963. +
  964. +
  965. +# Some more UNIX dependent modules -- off by default, since these
  966. +# are not supported by all UNIX systems:
  967. +
  968. +#dbm dbmmodule.c     # dbm(3) may require -lndbm or similar
  969. +#nis nismodule.c     # Sun yellow pages -- not everywhere
  970. +#termios termios.c    # Steen Lumholt's termios module
  971. +#_xdr _xdrmodule.c # -lnsl # Helper for xdrlib.py
  972. +
  973. +
  974. +# Multimedia modules -- on by default.
  975. +# These represent audio samples or images as strings:
  976. +
  977. +audioop audioop.c    # Operations on audio samples
  978. +imageop imageop.c    # Operations on images
  979. +rgbimg rgbimgmodule.c   # Read SGI RGB image files (but coded portably)
  980. +
  981. +
  982. +# The stdwin module provides a simple, portable (between X11 and Mac)
  983. +# windowing interface.  You need to ftp the STDWIN library, e.g. from
  984. +# ftp://ftp.cwi.nl/pub/stdwin.  (If you get it elsewhere, be sure to
  985. +# get version 1.0 or higher!)  The STDWIN variable must point to the
  986. +# STDWIN toplevel directory.
  987. +
  988. +# Uncomment and edit as needed:
  989. +#STDWIN=/ufs/guido/src/stdwin
  990. +
  991. +# Uncomment these lines:
  992. +#STDWINPATH=:$(DESTLIB)/stdwin
  993. +#LIBTEXTEDIT=$(STDWIN)/$(MACHDEP)/Packs/textedit/libtextedit.a
  994. +#LIBX11STDWIN=$(STDWIN)/$(MACHDEP)/Ports/x11/libstdwin.a
  995. +#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBX11STDWIN) -lX11
  996. +
  997. +# Use this instead of the last two lines above for alphanumeric stdwin:
  998. +#LIBALFASTDWIN=$(STDWIN)/$(MACHDEP)/Ports/alfa/libstdwin.a
  999. +#stdwin stdwinmodule.c -I$(STDWIN)/H $(LIBTEXTEDIT) $(LIBALFASTDWIN) -ltermcap
  1000. +
  1001. +
  1002. +# The md5 module implements the RSA Data Security, Inc. MD5
  1003. +# Message-Digest Algorithm, described in RFC 1321.  The necessary files
  1004. +# md5c.c and md5.h are included here.
  1005. +
  1006. +md5 md5module.c md5c.c
  1007. +
  1008. +
  1009. +# The mpz module interfaces to the GNU Multiple Precision library.
  1010. +# You need to ftp the GNU MP library.  
  1011. +# The GMP variable must point to the GMP source directory.
  1012. +# This was originally written and tested against GMP 1.2 and 1.3.2.
  1013. +# It has been modified by Rob Hooft to work with 2.0.2 as well, but I
  1014. +# haven't tested it recently.
  1015. +
  1016. +# A compatible MP library unencombered by the GPL also exists.  It was
  1017. +# posted to comp.sources.misc in volume 40 and is widely available from
  1018. +# FTP archive sites. One URL for it is:
  1019. +# ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z
  1020. +
  1021. +#GMP=/ufs/guido/src/gmp
  1022. +#mpz mpzmodule.c -I$(GMP) $(GMP)/libgmp.a
  1023. +
  1024. +
  1025. +# SGI IRIX specific modules -- off by default.
  1026. +
  1027. +# These module work on any SGI machine:
  1028. +
  1029. +# *** gl must be enabled higher up in this file ***
  1030. +#fm fmmodule.c -lfm -lgl        # Font Manager
  1031. +#sgi sgimodule.c            # sgi.nap() and a few more
  1032. +
  1033. +# This module requires the header file
  1034. +# /usr/people/4Dgifts/iristools/include/izoom.h:
  1035. +
  1036. +#imgfile imgfile.c -limage -lgutil    # Image Processing Utilities
  1037. +
  1038. +
  1039. +# These modules require the Multimedia Development Option (I think):
  1040. +
  1041. +#al almodule.c -laudio            # Audio Library
  1042. +#cd cdmodule.c -lcdaudio -lds -lmediad    # CD Audio Library
  1043. +#cl clmodule.c -lcl -lawareaudio    # Compression Library
  1044. +#sv svmodule.c yuvconvert.c -lsvideo -lXext -lX11    # Starter Video
  1045. +
  1046. +
  1047. +# The FORMS library, by Mark Overmars, implements user interface
  1048. +# components such as dialogs and buttons using SGI's GL and FM
  1049. +# libraries.  You must ftp the FORMS library separately from
  1050. +# ftp://ftp.cs.ruu.nl/pub/SGI/FORMS.  It was tested with FORMS 2.2a.
  1051. +# The FORMS variable must point to the FORMS subdirectory of the forms
  1052. +# toplevel directory:
  1053. +
  1054. +#FORMS=/ufs/guido/src/forms/FORMS
  1055. +#fl flmodule.c -I$(FORMS) $(FORMS)/libforms.a -lfm -lgl
  1056. +
  1057. +
  1058. +# SunOS specific modules -- off by default:
  1059. +
  1060. +#sunaudiodev sunaudiodev.c
  1061. +
  1062. +
  1063. +# George Neville-Neil's timing module:
  1064. +
  1065. +#timing timingmodule.c
  1066. +
  1067. +
  1068. +# The _tkinter module.
  1069. +#
  1070. +# See the section "The Tk interface" in ../README for more info.
  1071. +#
  1072. +# Enable the TKPATH line and choose the most applicable _tkinter line.
  1073. +# You may have to change /usr/local to wherever Tcl/Tk are installed.
  1074. +# Change the -l arguments to use Tcl 7.4 and Tk 4.0!
  1075. +
  1076. +# *** ALWAYS enable this line:
  1077. +#TKPATH=:$(DESTLIB)/tkinter
  1078. +
  1079. +# *** Enable *one* of the following lines:
  1080. +# For Solaris:
  1081. +#_tkinter _tkinter.c -I/usr/openwin/include -I/usr/local/include -L/usr/openwin/lib -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
  1082. +# For generic system (may have to add -I/-L options to find X11):
  1083. +#_tkinter _tkinter.c -I/usr/local/include -L/usr/local/lib -ltk4.1 -ltcl7.5 -lX11
  1084. +
  1085. +
  1086. +# Lance Ellinghaus's modules:
  1087. +
  1088. +rotor rotormodule.c        # enigma-inspired encryption
  1089. +#syslog syslogmodule.c        # syslog daemon interface
  1090. +
  1091. +
  1092. +# Lance's curses module.  This requires the System V version of
  1093. +# curses, sometimes known as ncurses (e.g. on Linux, link with
  1094. +# -lncurses instead of -lcurses; on SunOS 4.1.3, insert -I/usr/5include
  1095. +# -L/usr/5lib before -lcurses).
  1096. +
  1097. +#curses cursesmodule.c -lcurses -ltermcap
  1098. +
  1099. +
  1100. +
  1101. +# Tommy Burnette's 'new' module (creates new empty objects of certain kinds):
  1102. +
  1103. +#new newmodule.c
  1104. +
  1105. +
  1106. +# Generic (SunOS / SVR4) dynamic loading module.
  1107. +# This is not needed for dynamic loading of Python modules --
  1108. +# it is a highly experimental and dangerous device for calling
  1109. +# *arbitrary* C functions in *arbitrary* shared libraries:
  1110. +
  1111. +#dl dlmodule.c
  1112. +
  1113. +
  1114. +# Anthony Baxter's gdbm module (derived from Jack's dbm module)
  1115. +# GNU dbm(3) will require -lgdbm:
  1116. +
  1117. +#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
  1118. +
  1119. +
  1120. +# Berkeley DB interface.
  1121. +#
  1122. +# This requires the Berkeley DB code, see
  1123. +# ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz
  1124. +#
  1125. +# Edit the variables DB and DBPORT to point to the db top directory
  1126. +# and the subdirectory of PORT where you built it.
  1127. +
  1128. +#DB=/depot/sundry/src/berkeley-db/db.1.85
  1129. +#DBPORT=$(DB)/PORT/irix.5.3
  1130. +#bsddb bsddbmodule.o -I$(DBPORT)/include $(DBPORT)/libdb.a
  1131. +
  1132. +
  1133. +
  1134. +# David Wayne Williams' soundex module
  1135. +#soundex soundex.c
  1136. +
  1137. +# Helper module for various ascii-encoders
  1138. +binascii binascii.c
  1139. +
  1140. +# Fred Drake's interface to the Python parser
  1141. +parser parsermodule.c
  1142. +
  1143. +
  1144. +# Example -- included for reference only:
  1145. +# xx xxmodule.c
  1146. diff --new-file -ru Python-1.4.orig/Modules/Setup.local Python-1.4/Modules/Setup.local
  1147. --- Python-1.4.orig/Modules/Setup.local    Thu Jan  1 01:00:00 1970
  1148. +++ Python-1.4/Modules/Setup.local    Sat Nov 16 16:26:18 1996
  1149. @@ -0,0 +1 @@
  1150. +# Edit this file for local setup changes
  1151. diff --new-file -ru Python-1.4.orig/Modules/config.c Python-1.4/Modules/config.c
  1152. --- Python-1.4.orig/Modules/config.c    Thu Jan  1 01:00:00 1970
  1153. +++ Python-1.4/Modules/config.c    Sat Nov 16 16:26:18 1996
  1154. @@ -0,0 +1,117 @@
  1155. +/* Generated automatically from ./config.c.in by makesetup. */
  1156. +/* -*- C -*- ***********************************************
  1157. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
  1158. +The Netherlands.
  1159. +
  1160. +                        All Rights Reserved
  1161. +
  1162. +Permission to use, copy, modify, and distribute this software and its
  1163. +documentation for any purpose and without fee is hereby granted,
  1164. +provided that the above copyright notice appear in all copies and that
  1165. +both that copyright notice and this permission notice appear in
  1166. +supporting documentation, and that the names of Stichting Mathematisch
  1167. +Centrum or CWI or Corporation for National Research Initiatives or
  1168. +CNRI not be used in advertising or publicity pertaining to
  1169. +distribution of the software without specific, written prior
  1170. +permission.
  1171. +
  1172. +While CWI is the initial source for this software, a modified version
  1173. +is made available by the Corporation for National Research Initiatives
  1174. +(CNRI) at the Internet address ftp://ftp.python.org.
  1175. +
  1176. +STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
  1177. +REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
  1178. +MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
  1179. +CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
  1180. +DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  1181. +PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  1182. +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1183. +PERFORMANCE OF THIS SOFTWARE.
  1184. +
  1185. +******************************************************************/
  1186. +
  1187. +/* Module configuration */
  1188. +
  1189. +/* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */
  1190. +
  1191. +/* This file contains the table of built-in modules.
  1192. +   See init_builtin() in import.c. */
  1193. +
  1194. +#include "Python.h"
  1195. +
  1196. +
  1197. +extern void initposix();
  1198. +extern void initsignal();
  1199. +extern void initarray();
  1200. +extern void initcmath();
  1201. +extern void initmath();
  1202. +extern void initregex();
  1203. +extern void initstrop();
  1204. +extern void initstruct();
  1205. +extern void inittime();
  1206. +extern void initoperator();
  1207. +extern void initfcntl();
  1208. +extern void initpwd();
  1209. +extern void initgrp();
  1210. +extern void initcrypt();
  1211. +extern void initselect();
  1212. +extern void initsocket();
  1213. +extern void initerrno();
  1214. +extern void initaudioop();
  1215. +extern void initimageop();
  1216. +extern void initrgbimg();
  1217. +extern void initmd5();
  1218. +extern void initrotor();
  1219. +extern void initbinascii();
  1220. +extern void initparser();
  1221. +
  1222. +/* -- ADDMODULE MARKER 1 -- */
  1223. +
  1224. +extern void PyMarshal_Init();
  1225. +extern void initimp();
  1226. +
  1227. +struct _inittab inittab[] = {
  1228. +
  1229. +    {"posix", initposix},
  1230. +    {"signal", initsignal},
  1231. +    {"array", initarray},
  1232. +    {"cmath", initcmath},
  1233. +    {"math", initmath},
  1234. +    {"regex", initregex},
  1235. +    {"strop", initstrop},
  1236. +    {"struct", initstruct},
  1237. +    {"time", inittime},
  1238. +    {"operator", initoperator},
  1239. +    {"fcntl", initfcntl},
  1240. +    {"pwd", initpwd},
  1241. +#ifndef __EMX__
  1242. +    {"grp", initgrp},
  1243. +    {"crypt", initcrypt},
  1244. +#endif
  1245. +    {"select", initselect},
  1246. +    {"socket", initsocket},
  1247. +    {"errno", initerrno},
  1248. +    {"audioop", initaudioop},
  1249. +    {"imageop", initimageop},
  1250. +    {"rgbimg", initrgbimg},
  1251. +    {"md5", initmd5},
  1252. +    {"rotor", initrotor},
  1253. +    {"binascii", initbinascii},
  1254. +    {"parser", initparser},
  1255. +
  1256. +/* -- ADDMODULE MARKER 2 -- */
  1257. +
  1258. +    /* This module "lives in" with marshal.c */
  1259. +    {"marshal", PyMarshal_Init},
  1260. +
  1261. +    /* This lives it with import.c */
  1262. +    {"imp", initimp},
  1263. +
  1264. +    /* These entries are here for sys.builtin_module_names */
  1265. +    {"__main__", NULL},
  1266. +    {"__builtin__", NULL},
  1267. +    {"sys", NULL},
  1268. +
  1269. +    /* Sentinel */
  1270. +    {0, 0}
  1271. +};
  1272. diff --new-file -ru Python-1.4.orig/Modules/fcntlmodule.c Python-1.4/Modules/fcntlmodule.c
  1273. --- Python-1.4.orig/Modules/fcntlmodule.c    Fri Oct 25 16:39:57 1996
  1274. +++ Python-1.4/Modules/fcntlmodule.c    Sat Nov 16 16:26:18 1996
  1275. @@ -136,6 +136,7 @@
  1276.      return newintobject((long)ret);
  1277.  }
  1278.  
  1279. +#ifndef __EMX__
  1280.  
  1281.  /* flock(fd, operation) */
  1282.  
  1283. @@ -146,13 +147,14 @@
  1284.  {
  1285.      int fd;
  1286.      int code;
  1287. -    int ret;
  1288. +    int ret = -1;
  1289.      FILE *f;
  1290.  
  1291.      if (!getargs(args, "(ii)", &fd, &code))
  1292.          return NULL;
  1293.  
  1294.      BGN_SAVE
  1295. +
  1296.  #ifdef HAVE_FLOCK
  1297.      ret = flock(fd, code);
  1298.  #else
  1299. @@ -233,14 +235,17 @@
  1300.      INCREF(None);
  1301.      return None;
  1302.  }
  1303. +#endif
  1304.  
  1305.  /* List of functions */
  1306.  
  1307.  static struct methodlist fcntl_methods[] = {
  1308.      {"fcntl",    fcntl_fcntl},
  1309.      {"ioctl",    fcntl_ioctl},
  1310. +#ifndef __EMX__
  1311.      {"flock",    fcntl_flock},
  1312.      {"lockf",       fcntl_lockf, 1},
  1313. +#endif
  1314.      {NULL,        NULL}        /* sentinel */
  1315.  };
  1316.  
  1317. diff --new-file -ru Python-1.4.orig/Modules/main.c Python-1.4/Modules/main.c
  1318. --- Python-1.4.orig/Modules/main.c    Fri Oct 25 16:40:15 1996
  1319. +++ Python-1.4/Modules/main.c    Sat Nov 16 17:17:08 1996
  1320. @@ -82,7 +82,11 @@
  1321.  /* Main program */
  1322.  
  1323.  int
  1324. +#ifdef __EMX__
  1325. +Py_Main(argc, argv)
  1326. +#else
  1327.  main(argc, argv)
  1328. +#endif
  1329.      int argc;
  1330.      char **argv;
  1331.  {
  1332. diff --new-file -ru Python-1.4.orig/Modules/main_os2.c Python-1.4/Modules/main_os2.c
  1333. --- Python-1.4.orig/Modules/main_os2.c    Thu Jan  1 01:00:00 1970
  1334. +++ Python-1.4/Modules/main_os2.c    Sat Nov 16 16:26:18 1996
  1335. @@ -0,0 +1,43 @@
  1336. +/* -*- C -*- ***********************************************
  1337. +Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
  1338. +The Netherlands.
  1339. +
  1340. +                        All Rights Reserved
  1341. +
  1342. +Permission to use, copy, modify, and distribute this software and its
  1343. +documentation for any purpose and without fee is hereby granted,
  1344. +provided that the above copyright notice appear in all copies and that
  1345. +both that copyright notice and this permission notice appear in
  1346. +supporting documentation, and that the names of Stichting Mathematisch
  1347. +Centrum or CWI or Corporation for National Research Initiatives or
  1348. +CNRI not be used in advertising or publicity pertaining to
  1349. +distribution of the software without specific, written prior
  1350. +permission.
  1351. +
  1352. +While CWI is the initial source for this software, a modified version
  1353. +is made available by the Corporation for National Research Initiatives
  1354. +(CNRI) at the Internet address ftp://ftp.python.org.
  1355. +
  1356. +STICHTING MATHEMATISCH CENTRUM AND CNRI DISCLAIM ALL WARRANTIES WITH
  1357. +REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
  1358. +MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH
  1359. +CENTRUM OR CNRI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL
  1360. +DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  1361. +PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  1362. +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  1363. +PERFORMANCE OF THIS SOFTWARE.
  1364. +
  1365. +******************************************************************/
  1366. +
  1367. +/* Python interpreter main program */
  1368. +
  1369. +extern int Py_Main(int, char **);
  1370. +
  1371. +int
  1372. +main(argc, argv)
  1373. +    int argc;
  1374. +    char **argv;
  1375. +{
  1376. +    _wildcard(&argc, &argv);
  1377. +    return Py_Main(argc, argv);
  1378. +}
  1379. diff --new-file -ru Python-1.4.orig/Modules/posixmodule.c Python-1.4/Modules/posixmodule.c
  1380. --- Python-1.4.orig/Modules/posixmodule.c    Fri Oct 25 16:40:31 1996
  1381. +++ Python-1.4/Modules/posixmodule.c    Sat Nov 16 16:26:18 1996
  1382. @@ -96,7 +96,9 @@
  1383.  #else            /* all other compilers */
  1384.  /* Unix functions that the configure script doesn't check for */
  1385.  #define HAVE_EXECV      1
  1386. +#ifndef __EMX__
  1387.  #define HAVE_FORK       1
  1388. +#endif
  1389.  #define HAVE_GETCWD     1
  1390.  #define HAVE_GETEGID    1
  1391.  #define HAVE_GETEUID    1
  1392. @@ -381,7 +383,11 @@
  1393.      object *self;
  1394.      object *args;
  1395.  {
  1396. +#ifdef __EMX__
  1397. +    return posix_1str(args, _chdir2);
  1398. +#else
  1399.      return posix_1str(args, chdir);
  1400. +#endif
  1401.  }
  1402.  
  1403.  static object *
  1404. diff --new-file -ru Python-1.4.orig/Modules/python14.def Python-1.4/Modules/python14.def
  1405. --- Python-1.4.orig/Modules/python14.def    Thu Jan  1 01:00:00 1970
  1406. +++ Python-1.4/Modules/python14.def    Sat Nov 16 17:22:50 1996
  1407. @@ -0,0 +1,358 @@
  1408. +LIBRARY        PYTHON14
  1409. +EXPORTS
  1410. +    PyAST_Type=PyAST_Type
  1411. +    PyArg_Parse=PyArg_Parse
  1412. +    PyArg_ParseTuple=PyArg_ParseTuple
  1413. +    PyArg_ParseTupleAndKeywords=PyArg_ParseTupleAndKeywords
  1414. +    PyArgs_VaParse=PyArgs_VaParse
  1415. +    PyBuiltin_GetDict=PyBuiltin_GetDict
  1416. +    PyBuiltin_GetModule=PyBuiltin_GetModule
  1417. +    PyBuiltin_Init=PyBuiltin_Init
  1418. +    PyCFunction_GetFlags=PyCFunction_GetFlags
  1419. +    PyCFunction_GetFunction=PyCFunction_GetFunction
  1420. +    PyCFunction_GetSelf=PyCFunction_GetSelf
  1421. +    PyCFunction_New=PyCFunction_New
  1422. +    PyCFunction_Type=PyCFunction_Type
  1423. +    PyCObject_AsVoidPtr=PyCObject_AsVoidPtr
  1424. +    PyCObject_FromVoidPtr=PyCObject_FromVoidPtr
  1425. +    PyCObject_Type=PyCObject_Type
  1426. +    PyCallable_Check=PyCallable_Check
  1427. +    PyClass_IsSubclass=PyClass_IsSubclass
  1428. +    PyClass_New=PyClass_New
  1429. +    PyClass_Type=PyClass_Type
  1430. +    PyCode_New=PyCode_New
  1431. +    PyCode_Type=PyCode_Type
  1432. +    PyComplex_AsCComplex=PyComplex_AsCComplex
  1433. +    PyComplex_FromCComplex=PyComplex_FromCComplex
  1434. +    PyComplex_FromDoubles=PyComplex_FromDoubles
  1435. +    PyComplex_ImagAsDouble=PyComplex_ImagAsDouble
  1436. +    PyComplex_RealAsDouble=PyComplex_RealAsDouble
  1437. +    PyComplex_Type=PyComplex_Type
  1438. +    PyDict_Clear=PyDict_Clear
  1439. +    PyDict_DelItem=PyDict_DelItem
  1440. +    PyDict_DelItemString=PyDict_DelItemString
  1441. +    PyDict_GetItem=PyDict_GetItem
  1442. +    PyDict_GetItemString=PyDict_GetItemString
  1443. +    PyDict_Items=PyDict_Items
  1444. +    PyDict_Keys=PyDict_Keys
  1445. +    PyDict_New=PyDict_New
  1446. +    PyDict_Next=PyDict_Next
  1447. +    PyDict_SetItem=PyDict_SetItem
  1448. +    PyDict_SetItemString=PyDict_SetItemString
  1449. +    PyDict_Size=PyDict_Size
  1450. +    PyDict_Type=PyDict_Type
  1451. +    PyDict_Values=PyDict_Values
  1452. +    PyErr_BadArgument=PyErr_BadArgument
  1453. +    PyErr_BadInternalCall=PyErr_BadInternalCall
  1454. +    PyErr_CheckSignals=PyErr_CheckSignals
  1455. +    PyErr_Clear=PyErr_Clear
  1456. +    PyErr_Fetch=PyErr_Fetch
  1457. +    PyErr_NoMemory=PyErr_NoMemory
  1458. +    PyErr_Occurred=PyErr_Occurred
  1459. +    PyErr_Print=PyErr_Print
  1460. +    PyErr_Restore=PyErr_Restore
  1461. +    PyErr_SetFromErrno=PyErr_SetFromErrno
  1462. +    PyErr_SetInterrupt=PyErr_SetInterrupt
  1463. +    PyErr_SetNone=PyErr_SetNone
  1464. +    PyErr_SetObject=PyErr_SetObject
  1465. +    PyErr_SetString=PyErr_SetString
  1466. +    PyEval_CallFunction=PyEval_CallFunction
  1467. +    PyEval_CallMethod=PyEval_CallMethod
  1468. +    PyEval_CallObject=PyEval_CallObject
  1469. +    PyEval_CallObjectWithKeywords=PyEval_CallObjectWithKeywords
  1470. +    PyEval_EvalCode=PyEval_EvalCode
  1471. +    PyEval_GetBuiltins=PyEval_GetBuiltins
  1472. +    PyEval_GetFrame=PyEval_GetFrame
  1473. +    PyEval_GetGlobals=PyEval_GetGlobals
  1474. +    PyEval_GetLocals=PyEval_GetLocals
  1475. +    PyEval_GetOwner=PyEval_GetOwner
  1476. +    PyEval_GetRestricted=PyEval_GetRestricted
  1477. +    PyEval_RestoreThread=PyEval_RestoreThread
  1478. +    PyEval_SaveThread=PyEval_SaveThread
  1479. +    PyExc_AccessError=PyExc_AccessError
  1480. +    PyExc_AttributeError=PyExc_AttributeError
  1481. +    PyExc_ConflictError=PyExc_ConflictError
  1482. +    PyExc_EOFError=PyExc_EOFError
  1483. +    PyExc_IOError=PyExc_IOError
  1484. +    PyExc_ImportError=PyExc_ImportError
  1485. +    PyExc_IndexError=PyExc_IndexError
  1486. +    PyExc_KeyError=PyExc_KeyError
  1487. +    PyExc_KeyboardInterrupt=PyExc_KeyboardInterrupt
  1488. +    PyExc_MemoryError=PyExc_MemoryError
  1489. +    PyExc_NameError=PyExc_NameError
  1490. +    PyExc_OverflowError=PyExc_OverflowError
  1491. +    PyExc_RuntimeError=PyExc_RuntimeError
  1492. +    PyExc_SyntaxError=PyExc_SyntaxError
  1493. +    PyExc_SystemError=PyExc_SystemError
  1494. +    PyExc_SystemExit=PyExc_SystemExit
  1495. +    PyExc_TypeError=PyExc_TypeError
  1496. +    PyExc_ValueError=PyExc_ValueError
  1497. +    PyExc_ZeroDivisionError=PyExc_ZeroDivisionError
  1498. +    PyFile_AsFile=PyFile_AsFile
  1499. +    PyFile_FromFile=PyFile_FromFile
  1500. +    PyFile_FromString=PyFile_FromString
  1501. +    PyFile_GetLine=PyFile_GetLine
  1502. +    PyFile_Name=PyFile_Name
  1503. +    PyFile_SetBufSize=PyFile_SetBufSize
  1504. +    PyFile_SoftSpace=PyFile_SoftSpace
  1505. +    PyFile_Type=PyFile_Type
  1506. +    PyFile_WriteObject=PyFile_WriteObject
  1507. +    PyFile_WriteString=PyFile_WriteString
  1508. +    PyFloat_AsDouble=PyFloat_AsDouble
  1509. +    PyFloat_AsString=PyFloat_AsString
  1510. +    PyFloat_FromDouble=PyFloat_FromDouble
  1511. +    PyFloat_Type=PyFloat_Type
  1512. +    PyFrame_BlockPop=PyFrame_BlockPop
  1513. +    PyFrame_BlockSetup=PyFrame_BlockSetup
  1514. +    PyFrame_ExtendStack=PyFrame_ExtendStack
  1515. +    PyFrame_FastToLocals=PyFrame_FastToLocals
  1516. +    PyFrame_LocalsToFast=PyFrame_LocalsToFast
  1517. +    PyFrame_New=PyFrame_New
  1518. +    PyFrame_Type=PyFrame_Type
  1519. +    PyFunction_GetCode=PyFunction_GetCode
  1520. +    PyFunction_GetDefaults=PyFunction_GetDefaults
  1521. +    PyFunction_GetGlobals=PyFunction_GetGlobals
  1522. +    PyFunction_New=PyFunction_New
  1523. +    PyFunction_SetDefaults=PyFunction_SetDefaults
  1524. +    PyFunction_Type=PyFunction_Type
  1525. +    PyGrammar_AddAccelerators=PyGrammar_AddAccelerators
  1526. +    PyGrammar_FindDFA=PyGrammar_FindDFA
  1527. +    PyGrammar_LabelRepr=PyGrammar_LabelRepr
  1528. +    PyImport_AddModule=PyImport_AddModule
  1529. +    PyImport_Cleanup=PyImport_Cleanup
  1530. +    PyImport_ExecCodeModule=PyImport_ExecCodeModule
  1531. +    PyImport_FrozenModules=PyImport_FrozenModules
  1532. +    PyImport_GetMagicNumber=PyImport_GetMagicNumber
  1533. +    PyImport_GetModuleDict=PyImport_GetModuleDict
  1534. +    PyImport_ImportFrozenModule=PyImport_ImportFrozenModule
  1535. +    PyImport_ImportModule=PyImport_ImportModule
  1536. +    PyImport_Init=PyImport_Init
  1537. +    PyImport_ReloadModule=PyImport_ReloadModule
  1538. +    PyInstance_DoBinOp=PyInstance_DoBinOp
  1539. +    PyInstance_New=PyInstance_New
  1540. +    PyInstance_Type=PyInstance_Type
  1541. +    PyInt_AsLong=PyInt_AsLong
  1542. +    PyInt_FromLong=PyInt_FromLong
  1543. +    PyInt_GetMax=PyInt_GetMax
  1544. +    PyInt_Type=PyInt_Type
  1545. +    PyList_Append=PyList_Append
  1546. +    PyList_AsTuple=PyList_AsTuple
  1547. +    PyList_GetItem=PyList_GetItem
  1548. +    PyList_GetSlice=PyList_GetSlice
  1549. +    PyList_Insert=PyList_Insert
  1550. +    PyList_New=PyList_New
  1551. +    PyList_Reverse=PyList_Reverse
  1552. +    PyList_SetItem=PyList_SetItem
  1553. +    PyList_SetSlice=PyList_SetSlice
  1554. +    PyList_Size=PyList_Size
  1555. +    PyList_Sort=PyList_Sort
  1556. +    PyList_Type=PyList_Type
  1557. +    PyLong_AsDouble=PyLong_AsDouble
  1558. +    PyLong_AsLong=PyLong_AsLong
  1559. +    PyLong_FromDouble=PyLong_FromDouble
  1560. +    PyLong_FromLong=PyLong_FromLong
  1561. +    PyLong_FromString=PyLong_FromString
  1562. +    PyLong_Type=PyLong_Type
  1563. +    PyMapping_Check=PyMapping_Check
  1564. +    PyMapping_GetItemString=PyMapping_GetItemString
  1565. +    PyMapping_HasKey=PyMapping_HasKey
  1566. +    PyMapping_HasKeyString=PyMapping_HasKeyString
  1567. +    PyMapping_Length=PyMapping_Length
  1568. +    PyMapping_SetItemString=PyMapping_SetItemString
  1569. +    PyMarshal_Init=PyMarshal_Init
  1570. +    PyMarshal_ReadLongFromFile=PyMarshal_ReadLongFromFile
  1571. +    PyMarshal_ReadObjectFromFile=PyMarshal_ReadObjectFromFile
  1572. +    PyMarshal_ReadObjectFromString=PyMarshal_ReadObjectFromString
  1573. +    PyMarshal_WriteLongToFile=PyMarshal_WriteLongToFile
  1574. +    PyMarshal_WriteObjectToFile=PyMarshal_WriteObjectToFile
  1575. +    PyMarshal_WriteObjectToString=PyMarshal_WriteObjectToString
  1576. +    PyMember_Get=PyMember_Get
  1577. +    PyMember_Set=PyMember_Set
  1578. +    PyMethod_Class=PyMethod_Class
  1579. +    PyMethod_Function=PyMethod_Function
  1580. +    PyMethod_New=PyMethod_New
  1581. +    PyMethod_Self=PyMethod_Self
  1582. +    PyMethod_Type=PyMethod_Type
  1583. +    PyModule_GetDict=PyModule_GetDict
  1584. +    PyModule_GetName=PyModule_GetName
  1585. +    PyModule_New=PyModule_New
  1586. +    PyModule_Type=PyModule_Type
  1587. +    PyNode_AddChild=PyNode_AddChild
  1588. +    PyNode_Compile=PyNode_Compile
  1589. +    PyNode_Free=PyNode_Free
  1590. +    PyNode_New=PyNode_New
  1591. +    PyNumber_Absolute=PyNumber_Absolute
  1592. +    PyNumber_Add=PyNumber_Add
  1593. +    PyNumber_And=PyNumber_And
  1594. +    PyNumber_Check=PyNumber_Check
  1595. +    PyNumber_Coerce=PyNumber_Coerce
  1596. +    PyNumber_Divide=PyNumber_Divide
  1597. +    PyNumber_Divmod=PyNumber_Divmod
  1598. +    PyNumber_Float=PyNumber_Float
  1599. +    PyNumber_Int=PyNumber_Int
  1600. +    PyNumber_Invert=PyNumber_Invert
  1601. +    PyNumber_Long=PyNumber_Long
  1602. +    PyNumber_Lshift=PyNumber_Lshift
  1603. +    PyNumber_Multiply=PyNumber_Multiply
  1604. +    PyNumber_Negative=PyNumber_Negative
  1605. +    PyNumber_Or=PyNumber_Or
  1606. +    PyNumber_Positive=PyNumber_Positive
  1607. +    PyNumber_Power=PyNumber_Power
  1608. +    PyNumber_Remainder=PyNumber_Remainder
  1609. +    PyNumber_Rshift=PyNumber_Rshift
  1610. +    PyNumber_Subtract=PyNumber_Subtract
  1611. +    PyNumber_Xor=PyNumber_Xor
  1612. +    PyOS_GetLastModificationTime=PyOS_GetLastModificationTime
  1613. +    PyOS_InitInterrupts=PyOS_InitInterrupts
  1614. +    PyOS_InterruptOccurred=PyOS_InterruptOccurred
  1615. +    PyOS_Readline=PyOS_Readline
  1616. +;    PyOS_ReadlineInit=PyOS_ReadlineInit
  1617. +    PyOS_strtol=PyOS_strtol
  1618. +    PyOS_strtoul=PyOS_strtoul
  1619. +    PyObject_CallFunction=PyObject_CallFunction
  1620. +    PyObject_CallMethod=PyObject_CallMethod
  1621. +    PyObject_CallObject=PyObject_CallObject
  1622. +    PyObject_Cmp=PyObject_Cmp
  1623. +    PyObject_Compare=PyObject_Compare
  1624. +    PyObject_DelItem=PyObject_DelItem
  1625. +    PyObject_GetAttr=PyObject_GetAttr
  1626. +    PyObject_GetAttrString=PyObject_GetAttrString
  1627. +    PyObject_GetItem=PyObject_GetItem
  1628. +    PyObject_HasAttrString=PyObject_HasAttrString
  1629. +    PyObject_Hash=PyObject_Hash
  1630. +    PyObject_IsTrue=PyObject_IsTrue
  1631. +    PyObject_Length=PyObject_Length
  1632. +    PyObject_Print=PyObject_Print
  1633. +    PyObject_Repr=PyObject_Repr
  1634. +    PyObject_SetAttr=PyObject_SetAttr
  1635. +    PyObject_SetAttrString=PyObject_SetAttrString
  1636. +    PyObject_SetItem=PyObject_SetItem
  1637. +    PyObject_Str=PyObject_Str
  1638. +    PyObject_Type=PyObject_Type
  1639. +    PyParser_AddToken=PyParser_AddToken
  1640. +    PyParser_Delete=PyParser_Delete
  1641. +    PyParser_New=PyParser_New
  1642. +    PyParser_ParseFile=PyParser_ParseFile
  1643. +    PyParser_ParseString=PyParser_ParseString
  1644. +    PyParser_SimpleParseFile=PyParser_SimpleParseFile
  1645. +    PyParser_SimpleParseString=PyParser_SimpleParseString
  1646. +    PyRange_New=PyRange_New
  1647. +    PyRange_Type=PyRange_Type
  1648. +    PyRun_AnyFile=PyRun_AnyFile
  1649. +    PyRun_File=PyRun_File
  1650. +    PyRun_InteractiveLoop=PyRun_InteractiveLoop
  1651. +    PyRun_InteractiveOne=PyRun_InteractiveOne
  1652. +    PyRun_SimpleFile=PyRun_SimpleFile
  1653. +    PyRun_SimpleString=PyRun_SimpleString
  1654. +    PyRun_String=PyRun_String
  1655. +    PySequence_Check=PySequence_Check
  1656. +    PySequence_Concat=PySequence_Concat
  1657. +    PySequence_Count=PySequence_Count
  1658. +    PySequence_DelItem=PySequence_DelItem
  1659. +    PySequence_DelSlice=PySequence_DelSlice
  1660. +    PySequence_GetItem=PySequence_GetItem
  1661. +    PySequence_GetSlice=PySequence_GetSlice
  1662. +    PySequence_In=PySequence_In
  1663. +    PySequence_Index=PySequence_Index
  1664. +    PySequence_Length=PySequence_Length
  1665. +    PySequence_Repeat=PySequence_Repeat
  1666. +    PySequence_SetItem=PySequence_SetItem
  1667. +    PySequence_SetSlice=PySequence_SetSlice
  1668. +    PySequence_Tuple=PySequence_Tuple
  1669. +    PySlice_GetIndices=PySlice_GetIndices
  1670. +    PySlice_New=PySlice_New
  1671. +    PySlice_Type=PySlice_Type
  1672. +    PyString_AsString=PyString_AsString
  1673. +    PyString_Concat=PyString_Concat
  1674. +    PyString_ConcatAndDel=PyString_ConcatAndDel
  1675. +    PyString_Format=PyString_Format
  1676. +    PyString_FromString=PyString_FromString
  1677. +    PyString_FromStringAndSize=PyString_FromStringAndSize
  1678. +    PyString_Size=PyString_Size
  1679. +    PyString_Type=PyString_Type
  1680. +    PySys_GetFile=PySys_GetFile
  1681. +    PySys_GetObject=PySys_GetObject
  1682. +    PySys_Init=PySys_Init
  1683. +    PySys_SetArgv=PySys_SetArgv
  1684. +    PySys_SetObject=PySys_SetObject
  1685. +    PySys_SetPath=PySys_SetPath
  1686. +    PyToken_OneChar=PyToken_OneChar
  1687. +    PyToken_TwoChars=PyToken_TwoChars
  1688. +    PyTokenizer_Free=PyTokenizer_Free
  1689. +    PyTokenizer_FromFile=PyTokenizer_FromFile
  1690. +    PyTokenizer_FromString=PyTokenizer_FromString
  1691. +    PyTokenizer_Get=PyTokenizer_Get
  1692. +    PyTraceBack_Fetch=PyTraceBack_Fetch
  1693. +    PyTraceBack_Here=PyTraceBack_Here
  1694. +    PyTraceBack_Print=PyTraceBack_Print
  1695. +    PyTraceBack_Store=PyTraceBack_Store
  1696. +    PyTraceBack_Type=PyTraceBack_Type
  1697. +    PyTuple_GetItem=PyTuple_GetItem
  1698. +    PyTuple_GetSlice=PyTuple_GetSlice
  1699. +    PyTuple_New=PyTuple_New
  1700. +    PyTuple_SetItem=PyTuple_SetItem
  1701. +    PyTuple_Size=PyTuple_Size
  1702. +    PyTuple_Type=PyTuple_Type
  1703. +    PyType_Type=PyType_Type
  1704. +    Py_AddPendingCall=Py_AddPendingCall
  1705. +    Py_AtExit=Py_AtExit
  1706. +    Py_BuildValue=Py_BuildValue
  1707. +    Py_Cleanup=Py_Cleanup
  1708. +    Py_CompileString=Py_CompileString
  1709. +    Py_DebugFlag=Py_DebugFlag
  1710. +    Py_Exit=Py_Exit
  1711. +    Py_FatalError=Py_FatalError
  1712. +    Py_FindMethod=Py_FindMethod
  1713. +    Py_FindMethodInChain=Py_FindMethodInChain
  1714. +    Py_FlushLine=Py_FlushLine
  1715. +    Py_GetArgcArgv=Py_GetArgcArgv
  1716. +    Py_GetCompiler=Py_GetCompiler
  1717. +    Py_GetCopyright=Py_GetCopyright
  1718. +    Py_GetExecPrefix=Py_GetExecPrefix
  1719. +    Py_GetPath=Py_GetPath
  1720. +    Py_GetPlatform=Py_GetPlatform
  1721. +    Py_GetPrefix=Py_GetPrefix
  1722. +    Py_GetProgramName=Py_GetProgramName
  1723. +    Py_GetVersion=Py_GetVersion
  1724. +    Py_InitModule4=Py_InitModule4
  1725. +    Py_Initialize=Py_Initialize
  1726. +    Py_Main=Py_Main
  1727. +    Py_MakePendingCalls=Py_MakePendingCalls
  1728. +    Py_ReturnNullError=Py_ReturnNullError
  1729. +    Py_SuppressPrintingFlag=Py_SuppressPrintingFlag
  1730. +    Py_VaBuildValue=Py_VaBuildValue
  1731. +    Py_VerboseFlag=Py_VerboseFlag
  1732. +    _PyImport_Filetab=_PyImport_Filetab
  1733. +    _PyImport_LoadDynamicModule=_PyImport_LoadDynamicModule
  1734. +    _PyImport_MaxSuffixSize=_PyImport_MaxSuffixSize
  1735. +    _PyLong_New=_PyLong_New
  1736. +    _PyObject_New=_PyObject_New
  1737. +    _PyObject_NewVar=_PyObject_NewVar
  1738. +    _PyParser_Grammar=_PyParser_Grammar
  1739. +    _PyParser_TokenNames=_PyParser_TokenNames
  1740. +    _PyString_Resize=_PyString_Resize
  1741. +    _PySys_CheckInterval=_PySys_CheckInterval
  1742. +    _PySys_ProfileFunc=_PySys_ProfileFunc
  1743. +    _PySys_TraceFunc=_PySys_TraceFunc
  1744. +    _PyTuple_Resize=_PyTuple_Resize
  1745. +    _Py_EllipsisObject=_Py_EllipsisObject
  1746. +    _Py_MD5Final=_Py_MD5Final
  1747. +    _Py_MD5Init=_Py_MD5Init
  1748. +    _Py_MD5Update=_Py_MD5Update
  1749. +    _Py_NoneStruct=_Py_NoneStruct
  1750. +    _Py_TrueStruct=_Py_TrueStruct
  1751. +    _Py_ZeroStruct=_Py_ZeroStruct
  1752. +    _Py_c_diff=_Py_c_diff
  1753. +    _Py_c_neg=_Py_c_neg
  1754. +    _Py_c_pow=_Py_c_pow
  1755. +    _Py_c_prod=_Py_c_prod
  1756. +    _Py_c_quot=_Py_c_quot
  1757. +    _Py_c_sum=_Py_c_sum
  1758. +    _Py_re_compile_fastmap=_Py_re_compile_fastmap
  1759. +    _Py_re_compile_pattern=_Py_re_compile_pattern
  1760. +    _Py_re_match=_Py_re_match
  1761. +    _Py_re_match_2=_Py_re_match_2
  1762. +    _Py_re_search=_Py_re_search
  1763. +    _Py_re_search_2=_Py_re_search_2
  1764. +    _Py_re_set_syntax=_Py_re_set_syntax
  1765. +    _Py_re_syntax=_Py_re_syntax
  1766. diff --new-file -ru Python-1.4.orig/Modules/socketmodule.c Python-1.4/Modules/socketmodule.c
  1767. --- Python-1.4.orig/Modules/socketmodule.c    Fri Oct 25 16:40:44 1996
  1768. +++ Python-1.4/Modules/socketmodule.c    Sat Nov 16 16:26:20 1996
  1769. @@ -99,6 +99,9 @@
  1770.  #include <fcntl.h>
  1771.  #endif
  1772.  #ifdef HAVE_SYS_UN_H
  1773. +#ifdef __EMX__
  1774. +#define TCPIPV4
  1775. +#endif
  1776.  #include <sys/un.h>
  1777.  #else
  1778.  #undef AF_UNIX
  1779. diff --new-file -ru Python-1.4.orig/Modules/xxmodule.def Python-1.4/Modules/xxmodule.def
  1780. --- Python-1.4.orig/Modules/xxmodule.def    Thu Jan  1 01:00:00 1970
  1781. +++ Python-1.4/Modules/xxmodule.def    Sat Nov 16 16:26:20 1996
  1782. @@ -0,0 +1,3 @@
  1783. +LIBRARY XXModule
  1784. +EXPORTS
  1785. +    initxx=initxx
  1786. diff --new-file -ru Python-1.4.orig/Modules/xxmodule.mk Python-1.4/Modules/xxmodule.mk
  1787. --- Python-1.4.orig/Modules/xxmodule.mk    Thu Jan  1 01:00:00 1970
  1788. +++ Python-1.4/Modules/xxmodule.mk    Sat Nov 16 16:40:14 1996
  1789. @@ -0,0 +1,11 @@
  1790. +CC=gcc -Zomf
  1791. +CFLAGS=-O -I./../include -I.. -DHAVE_CONFIG_H 
  1792. +
  1793. +.SUFFIXES: .c .o .dll
  1794. +
  1795. +.c.o:
  1796. +    $(CC) $(CFLAGS) -c $< -o $*.o
  1797. +
  1798. +xx.dll: xxmodule.o
  1799. +    $(CC) -Zcrtdll -Zdll -o xx.dll xxmodule.o python14.lib xxmodule.def
  1800. +
  1801. diff --new-file -ru Python-1.4.orig/Objects/Makefile Python-1.4/Objects/Makefile
  1802. --- Python-1.4.orig/Objects/Makefile    Thu Jan  1 01:00:00 1970
  1803. +++ Python-1.4/Objects/Makefile    Sat Nov 16 16:38:12 1996
  1804. @@ -0,0 +1,99 @@
  1805. +
  1806. +# NOTE: Makefile.in is converted into Makefile by the configure script
  1807. +# in the parent directory.  Once configure has run, you can recreate
  1808. +# the Makefile by running just config.status.
  1809. +
  1810. +# === Variables set by config.stat ===
  1811. +
  1812. +srcdir=        .
  1813. +
  1814. +CC=        gcc
  1815. +RANLIB=        echo
  1816. +AR=        ar
  1817. +
  1818. +DEFS=        -DHAVE_CONFIG_H
  1819. +
  1820. +
  1821. +# === Other things that are customizable but not by configure ===
  1822. +
  1823. +INCLDIR=    $(srcdir)/../Include
  1824. +OPT=        -O
  1825. +CFLAGS=        $(OPT) -I$(INCLDIR) -I.. $(DEFS)
  1826. +
  1827. +MKDEP=        mkdep
  1828. +# SHELL=        /bin/sh
  1829. +
  1830. +
  1831. +# === Fixed definitions ===
  1832. +
  1833. +OBJS=        abstract.o accessobject.o \
  1834. +        classobject.o cobject.o complexobject.o \
  1835. +        fileobject.o floatobject.o \
  1836. +        frameobject.o funcobject.o intobject.o listobject.o \
  1837. +        longobject.o mappingobject.o methodobject.o \
  1838. +        moduleobject.o object.o rangeobject.o \
  1839. +        sliceobject.o stringobject.o \
  1840. +        tupleobject.o typeobject.o
  1841. +
  1842. +SRCS=        abstract.c accessobject.c \
  1843. +        classobject.c cobject.c complexobject.c \
  1844. +        fileobject.c floatobject.c \
  1845. +        frameobject.c funcobject.c intobject.c listobject.c \
  1846. +        longobject.c mappingobject.c methodobject.c \
  1847. +        moduleobject.c object.c rangeobject.c \
  1848. +        sliceobject.c stringobject.c \
  1849. +        tupleobject.c typeobject.c
  1850. +
  1851. +LIB=        libObjects.a
  1852. +
  1853. +
  1854. +# === Rules ===
  1855. +
  1856. +all:        $(LIB)
  1857. +
  1858. +$(LIB):        $& $(OBJS)
  1859. +        -rm -f $(LIB)
  1860. +        $(AR) crs $(LIB) $(OBJS)
  1861. +        $(RANLIB) $(LIB)
  1862. +
  1863. +clean:
  1864. +        -rm -f *.o core *~ [@,#]* *.old *.orig *.rej
  1865. +
  1866. +clobber:    clean
  1867. +        -rm -f *.a tags TAGS
  1868. +
  1869. +# Makefile:    $(srcdir)/Makefile.in ../config.status
  1870. +#         (cd ..; CONFIG_FILES=Objects/Makefile CONFIG_HEADERS= \
  1871. +#         $(SHELL) config.status)
  1872. +# 
  1873. +depend:
  1874. +        $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
  1875. +                    sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
  1876. +
  1877. +.PRECIOUS:    Makefile
  1878. +
  1879. +abstract.o: abstract.c
  1880. +accessobject.o: accessobject.c
  1881. +classobject.o: classobject.c
  1882. +cobject.o: cobject.c
  1883. +complexobject.o: complexobject.c
  1884. +fileobject.o: fileobject.c
  1885. +floatobject.o: floatobject.c
  1886. +frameobject.o: frameobject.c
  1887. +funcobject.o: funcobject.c
  1888. +intobject.o: intobject.c
  1889. +listobject.o: listobject.c
  1890. +longobject.o: longobject.c
  1891. +mappingobject.o: mappingobject.c
  1892. +methodobject.o: methodobject.c
  1893. +moduleobject.o: moduleobject.c
  1894. +object.o: object.c
  1895. +rangeobject.o: rangeobject.c
  1896. +sliceobject.o: sliceobject.c
  1897. +stringobject.o: stringobject.c
  1898. +tupleobject.o: tupleobject.c
  1899. +typeobject.o: typeobject.c
  1900. +
  1901. +# DO NOT DELETE THIS LINE -- mkdep uses it.
  1902. +# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  1903. +# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  1904. diff --new-file -ru Python-1.4.orig/Parser/Makefile Python-1.4/Parser/Makefile
  1905. --- Python-1.4.orig/Parser/Makefile    Thu Jan  1 01:00:00 1970
  1906. +++ Python-1.4/Parser/Makefile    Sat Nov 16 16:34:10 1996
  1907. @@ -0,0 +1,91 @@
  1908. +# Generated automatically from Makefile.in by configure.
  1909. +# NOTE: Makefile.in is converted into Makefile by the configure script
  1910. +# in the parent directory.  Once configure has run, you can recreate
  1911. +# the Makefile by running just config.status.
  1912. +
  1913. +# === Variables set by config.stat ===
  1914. +
  1915. +srcdir=        .
  1916. +
  1917. +CC=        gcc
  1918. +RANLIB=        echo
  1919. +AR=        ar
  1920. +
  1921. +DEFS=        -DHAVE_CONFIG_H
  1922. +
  1923. +
  1924. +# === Other things that are customizable but not by configure ===
  1925. +
  1926. +INCLDIR=    $(srcdir)/../Include
  1927. +OPT=        -O
  1928. +CFLAGS=        $(OPT) -I$(INCLDIR) -I.. $(DEFS)
  1929. +
  1930. +MKDEP=        mkdep
  1931. +# SHELL=        /bin/sh
  1932. +
  1933. +
  1934. +# === Fixed definitions ===
  1935. +
  1936. +PARSEROBJS=    acceler.o grammar1.o \
  1937. +        intrcheck.o listnode.o myreadline.o node.o parser.o \
  1938. +        parsetok.o tokenizer.o bitset.o \
  1939. +        firstsets.o grammar.o metagrammar.o pgen.o \
  1940. +        printgrammar.o
  1941. +
  1942. +PGENOBJS=    pgenmain.o
  1943. +
  1944. +OBJS=        $(PGENOBJS) $(PARSEROBJS)
  1945. +
  1946. +PGEN=        pgen.exe
  1947. +
  1948. +LIB=        libParser.a
  1949. +
  1950. +
  1951. +# === Rules ===
  1952. +
  1953. +all:        $(LIB) $(PGEN)
  1954. +
  1955. +$(LIB):        $& $(PARSEROBJS)
  1956. +        -rm -f $(LIB)
  1957. +        $(AR) crs $(LIB) $(PARSEROBJS)
  1958. +        $(RANLIB) $(LIB)
  1959. +
  1960. +$(PGEN):    $(PGENOBJS) $(LIB)
  1961. +        $(CC) $(OPT) $(PGENOBJS) $(LIB) -o $(PGEN)
  1962. +
  1963. +clean:
  1964. +        -rm -f *.o core *~ [@,#]* *.old *.orig *.rej
  1965. +
  1966. +clobber:    clean
  1967. +        -rm -f $(PGEN) *.a tags TAGS
  1968. +
  1969. +# Makefile:    $(srcdir)/Makefile.in ../config.status
  1970. +#         (cd ..; CONFIG_FILES=Parser/Makefile CONFIG_HEADERS= \
  1971. +#         $(SHELL) config.status)
  1972. +# 
  1973. +depend:
  1974. +        $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
  1975. +                    sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
  1976. +
  1977. +.PRECIOUS:    Makefile
  1978. +
  1979. +acceler.o: acceler.c
  1980. +grammar1.o: grammar1.c
  1981. +intrcheck.o: intrcheck.c
  1982. +listnode.o: listnode.c
  1983. +myreadline.o: myreadline.c
  1984. +node.o: node.c
  1985. +parser.o: parser.c
  1986. +parsetok.o: parsetok.c
  1987. +tokenizer.o: tokenizer.c
  1988. +bitset.o: bitset.c
  1989. +firstsets.o: firstsets.c
  1990. +grammar.o: grammar.c
  1991. +metagrammar.o: metagrammar.c
  1992. +pgen.o: pgen.c
  1993. +printgrammar.o: printgrammar.c
  1994. +pgenmain.o: pgenmain.c
  1995. +
  1996. +# DO NOT DELETE THIS LINE -- mkdep uses it.
  1997. +# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  1998. +# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  1999. diff --new-file -ru Python-1.4.orig/Python/Makefile Python-1.4/Python/Makefile
  2000. --- Python-1.4.orig/Python/Makefile    Thu Jan  1 01:00:00 1970
  2001. +++ Python-1.4/Python/Makefile    Sat Nov 16 16:38:38 1996
  2002. @@ -0,0 +1,122 @@
  2003. +# Generated automatically from Makefile.in by configure.
  2004. +# NOTE: Makefile.in is converted into Makefile by the configure script
  2005. +# in the parent directory.  Once configure has run, you can recreate
  2006. +# the Makefile by running just config.status.
  2007. +
  2008. +# === Variables set by config.stat ===
  2009. +
  2010. +srcdir=        .
  2011. +
  2012. +CC=        gcc
  2013. +RANLIB=        echo
  2014. +AR=        ar
  2015. +
  2016. +DEFS=        -DHAVE_CONFIG_H
  2017. +LIBOBJS=     getopt.o
  2018. +LIBS=
  2019. +DLINCLDIR=    /
  2020. +
  2021. +# Machine-dependent subdirectories
  2022. +MACHDEP=    os2
  2023. +
  2024. +
  2025. +# === Other things that are customizable but not by configure ===
  2026. +
  2027. +INCLDIR=    $(srcdir)/../Include
  2028. +OPT=        -O
  2029. +CFLAGS=        $(OPT) -I$(INCLDIR) -I.. $(DEFS)
  2030. +
  2031. +MKDEP=        mkdep
  2032. +# SHELL=        /bin/sh
  2033. +
  2034. +
  2035. +# === Fixed definitions ===
  2036. +
  2037. +OBJS=        \
  2038. +        bltinmodule.o \
  2039. +        ceval.o cgensupport.o compile.o \
  2040. +        errors.o \
  2041. +        frozen.o \
  2042. +        getargs.o getcompiler.o getcopyright.o getmtime.o \
  2043. +        getplatform.o getversion.o graminit.o \
  2044. +        import.o importdl.o \
  2045. +        marshal.o modsupport.o mystrtoul.o \
  2046. +        pythonrun.o \
  2047. +        sigcheck.o structmember.o sysmodule.o \
  2048. +        traceback.o \
  2049. +        $(LIBOBJS)
  2050. +
  2051. +LIB=        libPython.a
  2052. +
  2053. +SYSLIBS=    -lm
  2054. +
  2055. +
  2056. +# === Rules ===
  2057. +
  2058. +all:        $(LIB)
  2059. +
  2060. +$(LIB):        $& $(OBJS)
  2061. +        -rm -f $(LIB)
  2062. +        $(AR) crs $(LIB) $(OBJS)
  2063. +        $(RANLIB) $(LIB)
  2064. +
  2065. +clean:
  2066. +        -rm -f *.o core *~ [@,#]* *.old *.orig *.rej
  2067. +
  2068. +clobber:    clean
  2069. +        -rm -f *.a tags TAGS
  2070. +
  2071. +# Makefile:    $(srcdir)/Makefile.in ../config.status
  2072. +#         (cd ..; CONFIG_FILES=Python/Makefile CONFIG_HEADERS= \
  2073. +#         $(SHELL) config.status)
  2074. +# 
  2075. +getplatform.o:    getplatform.c Makefile
  2076. +        $(CC) -c $(CFLAGS) -DPLATFORM='"$(MACHDEP)"' \
  2077. +              $(srcdir)/getplatform.c -o getplatform.o
  2078. +
  2079. +importdl.o:    importdl.c
  2080. +        $(CC) -c $(CFLAGS) -I$(DLINCLDIR) $(srcdir)/importdl.c -o importdl.o
  2081. +
  2082. +depend:
  2083. +        $(MKDEP) $(CFLAGS) `echo $(OBJS) | tr ' ' '\012' | \
  2084. +                    sed 's|\(.*\)\.o|$(srcdir)/\1.c|'`
  2085. +
  2086. +.PRECIOUS:    Makefile
  2087. +
  2088. +bltinmodule.o: bltinmodule.c
  2089. +ceval.o: ceval.c
  2090. +cgensupport.o: cgensupport.c
  2091. +compile.o: compile.c
  2092. +dup2.o: dup2.c
  2093. +errors.o: errors.c
  2094. +fmod.o: fmod.c
  2095. +frozen.o: frozen.c
  2096. +frozenmain.o: frozenmain.c
  2097. +getargs.o: getargs.c
  2098. +getcompiler.o: getcompiler.c
  2099. +getcopyright.o: getcopyright.c
  2100. +getcwd.o: getcwd.c
  2101. +getmtime.o: getmtime.c
  2102. +getopt.o: getopt.c
  2103. +getplatform.o: getplatform.c
  2104. +getversion.o: getversion.c
  2105. +graminit.o: graminit.c
  2106. +import.o: import.c
  2107. +importdl.o: importdl.c
  2108. +marshal.o: marshal.c
  2109. +memmove.o: memmove.c
  2110. +modsupport.o: modsupport.c
  2111. +mystrtoul.o: mystrtoul.c
  2112. +pythonrun.o: pythonrun.c
  2113. +sigcheck.o: sigcheck.c
  2114. +strerror.o: strerror.c
  2115. +strtod.o: strtod.c
  2116. +structmember.o: structmember.c
  2117. +sysmodule.o: sysmodule.c
  2118. +thread.o: thread.c
  2119. +traceback.o: traceback.c
  2120. +version.o: version.c
  2121. +
  2122. +# DO NOT DELETE THIS LINE -- mkdep uses it.
  2123. +# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
  2124. +# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
  2125. diff --new-file -ru Python-1.4.orig/Python/importdl.c Python-1.4/Python/importdl.c
  2126. --- Python-1.4.orig/Python/importdl.c    Fri Oct 25 16:43:24 1996
  2127. +++ Python-1.4/Python/importdl.c    Sat Nov 16 16:26:22 1996
  2128. @@ -83,6 +83,7 @@
  2129.  #define dlerror() "error in dynamic linking"
  2130.  #endif
  2131.  
  2132. +
  2133.  #ifdef MS_WINDOWS /* i.e. MS_WIN32 or MS_WIN16 */
  2134.  #define DYNAMIC_LINK
  2135.  #include <windows.h>
  2136. @@ -128,6 +129,16 @@
  2137.  #endif
  2138.  #endif
  2139.  
  2140. +#ifdef __EMX__
  2141. +#define DYNAMIC_LINK
  2142. +#define INCL_DOS
  2143. +#include <os2.h>
  2144. +#define SHORT_EXT ".pyd"
  2145. +#define LONG_EXT ".dll"
  2146. +typedef void (*dl_funcptr)();
  2147. +#define _DL_FUNCPTR_DEFINED
  2148. +#endif
  2149. +
  2150.  #if !defined(DYNAMIC_LINK) && (defined(HAVE_DLOPEN) || defined(M_UNIX))
  2151.  #define DYNAMIC_LINK
  2152.  #define USE_SHLIB
  2153. @@ -381,6 +392,40 @@
  2154.          }
  2155.      }
  2156.  #endif /* _AIX */
  2157. +
  2158. +#ifdef __EMX__
  2159. +    {
  2160. +        HMODULE hDLL;
  2161. +        UCHAR szFailName[256];
  2162. +        UCHAR szWrk[256];
  2163. +        char *psz;
  2164. +        strcpy(szWrk, pathname);
  2165. +        if ((psz = strrchr(szWrk, '.')) != (char *)0)
  2166. +        {
  2167. +            if (! stricmp(psz, ".dll"))
  2168. +                *psz = '\0';
  2169. +        }
  2170. +
  2171. +        if (DosLoadModule(szFailName, 
  2172. +                     sizeof(szFailName),
  2173. +                     szWrk,
  2174. +                     &hDLL) != 0)
  2175. +          {
  2176. +            char errBuf[256];
  2177. +            strcpy(errBuf, "DLL load failed: ");
  2178. +            strcat(errBuf, szFailName);
  2179. +            err_setstr(ImportError, errBuf);
  2180. +            return NULL;
  2181. +          }
  2182. +
  2183. +        if (DosQueryProcAddr(hDLL, 0, funcname, (PFN *)&p))
  2184. +          {
  2185. +            DosFreeModule(hDLL);
  2186. +            p = (PFN *)0;
  2187. +          }
  2188. +    }
  2189. +#endif
  2190. +
  2191.  #ifdef MS_WIN32
  2192.      {
  2193.          HINSTANCE hDLL;
  2194. diff --new-file -ru Python-1.4.orig/clean.cmd Python-1.4/clean.cmd
  2195. --- Python-1.4.orig/clean.cmd    Thu Jan  1 01:00:00 1970
  2196. +++ Python-1.4/clean.cmd    Sat Nov 16 16:26:22 1996
  2197. @@ -0,0 +1,92 @@
  2198. +del Modules\arraymodule.o
  2199. +del Modules\audioop.o
  2200. +del Modules\binascii.o
  2201. +del Modules\cmathmodule.o
  2202. +del Modules\config.o
  2203. +del Modules\errnomodule.o
  2204. +del Modules\fcntlmodule.o
  2205. +del Modules\getpath.o
  2206. +del Modules\imageop.o
  2207. +del Modules\main.o
  2208. +del Modules\mathmodule.o
  2209. +del Modules\md5c.o
  2210. +del Modules\md5module.o
  2211. +del Modules\operator.o
  2212. +del Modules\parsermodule.o
  2213. +del Modules\posixmodule.o
  2214. +del Modules\pwdmodule.o
  2215. +del Modules\regexmodule.o
  2216. +del Modules\regexpr.o
  2217. +del Modules\rgbimgmodule.o
  2218. +del Modules\rotormodule.o
  2219. +del Modules\selectmodule.o
  2220. +del Modules\signalmodule.o
  2221. +del Modules\socketmodule.o
  2222. +del Modules\stropmodule.o
  2223. +del Modules\structmodule.o
  2224. +del Modules\timemodule.o
  2225. +del Objects\abstract.o
  2226. +del Objects\accessobject.o
  2227. +del Objects\classobject.o
  2228. +del Objects\cobject.o
  2229. +del Objects\complexobject.o
  2230. +del Objects\fileobject.o
  2231. +del Objects\floatobject.o
  2232. +del Objects\frameobject.o
  2233. +del Objects\funcobject.o
  2234. +del Objects\intobject.o
  2235. +del Objects\listobject.o
  2236. +del Objects\longobject.o
  2237. +del Objects\mappingobject.o
  2238. +del Objects\methodobject.o
  2239. +del Objects\moduleobject.o
  2240. +del Objects\object.o
  2241. +del Objects\rangeobject.o
  2242. +del Objects\sliceobject.o
  2243. +del Objects\stringobject.o
  2244. +del Objects\tupleobject.o
  2245. +del Objects\typeobject.o
  2246. +del Parser\acceler.o
  2247. +del Parser\bitset.o
  2248. +del Parser\firstsets.o
  2249. +del Parser\grammar.o
  2250. +del Parser\grammar1.o
  2251. +del Parser\intrcheck.o
  2252. +del Parser\listnode.o
  2253. +del Parser\metagrammar.o
  2254. +del Parser\myreadline.o
  2255. +del Parser\node.o
  2256. +del Parser\parser.o
  2257. +del Parser\parsetok.o
  2258. +del Parser\pgen.o
  2259. +del Parser\pgenmain.o
  2260. +del Parser\printgrammar.o
  2261. +del Parser\tokenizer.o
  2262. +del Python\bltinmodule.o
  2263. +del Python\ceval.o
  2264. +del Python\cgensupport.o
  2265. +del Python\compile.o
  2266. +del Python\errors.o
  2267. +del Python\frozen.o
  2268. +del Python\getargs.o
  2269. +del Python\getcompiler.o
  2270. +del Python\getcopyright.o
  2271. +del Python\getmtime.o
  2272. +del Python\getopt.o
  2273. +del Python\getplatform.o
  2274. +del Python\getversion.o
  2275. +del Python\graminit.o
  2276. +del Python\import.o
  2277. +del Python\importdl.o
  2278. +del Python\marshal.o
  2279. +del Python\modsupport.o
  2280. +del Python\mystrtoul.o
  2281. +del Python\pythonrun.o
  2282. +del Python\sigcheck.o
  2283. +del Python\structmember.o
  2284. +del Python\sysmodule.o
  2285. +del Python\traceback.o
  2286. +del Modules\libModules.a
  2287. +del Objects\libObjects.a
  2288. +del Parser\libParser.a
  2289. +del Python\libPython.a
  2290. diff --new-file -ru Python-1.4.orig/config.h Python-1.4/config.h
  2291. --- Python-1.4.orig/config.h    Thu Jan  1 01:00:00 1970
  2292. +++ Python-1.4/config.h    Sat Nov 16 15:03:24 1996
  2293. @@ -0,0 +1,344 @@
  2294. +/* config.h.  Generated automatically by configure.  */
  2295. +/* config.h.in.  Generated automatically from configure.in by autoheader.  */
  2296. +
  2297. +/* Define if on AIX 3.
  2298. +   System headers sometimes define this.
  2299. +   We just want to avoid a redefinition error message.  */
  2300. +#ifndef _ALL_SOURCE
  2301. +/* #undef _ALL_SOURCE */
  2302. +#endif
  2303. +
  2304. +/* #define PYTHONPATH "\\python-1.4\\lib;\\python-1.4\\lib\\os2;\\python-1.4\\lib\\scripts" */
  2305. +
  2306. +/* Define if type char is unsigned and you are not using gcc.  */
  2307. +#ifndef __CHAR_UNSIGNED__
  2308. +/* #undef __CHAR_UNSIGNED__ */
  2309. +#endif
  2310. +
  2311. +/* Define to empty if the keyword does not work.  */
  2312. +/* #undef const */
  2313. +
  2314. +/* Define to `int' if <sys/types.h> doesn't define.  */
  2315. +/* #undef gid_t */
  2316. +
  2317. +/* Define if your struct tm has tm_zone.  */
  2318. +/* #undef HAVE_TM_ZONE */
  2319. +
  2320. +/* Define if you don't have tm_zone but do have the external array
  2321. +   tzname.  */
  2322. +#define HAVE_TZNAME 1
  2323. +
  2324. +/* Define if on MINIX.  */
  2325. +/* #undef _MINIX */
  2326. +
  2327. +/* Define to `int' if <sys/types.h> doesn't define.  */
  2328. +/* #undef mode_t */
  2329. +
  2330. +/* Define to `long' if <sys/types.h> doesn't define.  */
  2331. +/* #undef off_t */
  2332. +
  2333. +/* Define to `int' if <sys/types.h> doesn't define.  */
  2334. +/* #undef pid_t */
  2335. +
  2336. +/* Define if the system does not provide POSIX.1 features except
  2337. +   with this defined.  */
  2338. +/* #undef _POSIX_1_SOURCE */
  2339. +
  2340. +/* Define if you need to in order for stat and other things to work.  */
  2341. +/* #undef _POSIX_SOURCE */
  2342. +
  2343. +/* Define as the return type of signal handlers (int or void).  */
  2344. +#define RETSIGTYPE void
  2345. +
  2346. +/* Define to `unsigned' if <sys/types.h> doesn't define.  */
  2347. +/* #undef size_t */
  2348. +
  2349. +/* Define if you have the ANSI C header files.  */
  2350. +#define STDC_HEADERS 1
  2351. +
  2352. +/* Define if you can safely include both <sys/time.h> and <time.h>.  */
  2353. +#define TIME_WITH_SYS_TIME 1
  2354. +
  2355. +/* Define if your <sys/time.h> declares struct tm.  */
  2356. +/* #undef TM_IN_SYS_TIME */
  2357. +
  2358. +/* Define to `int' if <sys/types.h> doesn't define.  */
  2359. +/* #undef uid_t */
  2360. +
  2361. +/* Define if your <unistd.h> contains bad prototypes for exec*()
  2362. +   (as it does on SGI IRIX 4.x) */
  2363. +/* #undef BAD_EXEC_PROTOTYPES */
  2364. +
  2365. +/* Define if your compiler botches static forward declarations
  2366. +   (as it does on SCI ODT 3.0) */
  2367. +/* #undef BAD_STATIC_FORWARD */
  2368. +
  2369. +/* Define if you have the Mach cthreads package */
  2370. +/* #undef C_THREADS */
  2371. +
  2372. +/* Define to `long' if <time.h> doesn't define.  */
  2373. +/* #undef clock_t */
  2374. +
  2375. +/* Define if getpgrp() must be called as getpgrp(0). */
  2376. +/* #undef GETPGRP_HAVE_ARG */
  2377. +
  2378. +/* Define if gettimeofday() does not have second (timezone) argument
  2379. +   This is the case on Motorola V4 (R40V4.2) */
  2380. +/* #undef GETTIMEOFDAY_NO_TZ */
  2381. +
  2382. +/* Define this if your time.h defines altzone */
  2383. +/* #undef HAVE_ALTZONE */
  2384. +
  2385. +/* Define this if you have a K&R style C preprocessor */
  2386. +/* #undef HAVE_OLD_CPP */
  2387. +
  2388. +/* Define if your compiler supports function prototypes */
  2389. +#define HAVE_PROTOTYPES 1
  2390. +
  2391. +/* Define if your compiler supports variable length function prototypes
  2392. +   (e.g. void fprintf(FILE *, char *, ...);) *and* <stdarg.h> */
  2393. +#define HAVE_STDARG_PROTOTYPES 1
  2394. +
  2395. +/* Define if you have POSIX threads */
  2396. +/* #undef _POSIX_THREADS */
  2397. +
  2398. +/* Define to force use of thread-safe errno, h_errno, and other functions */
  2399. +/* #undef _REENTRANT */
  2400. +
  2401. +/* Define if setpgrp() must be called as setpgrp(0, 0). */
  2402. +/* #undef SETPGRP_HAVE_ARG */
  2403. +
  2404. +/* Define to empty if the keyword does not work.  */
  2405. +/* #undef signed */
  2406. +
  2407. +/* Define if  you can safely include both <sys/select.h> and <sys/time.h>
  2408. +   (which you can't on SCO ODT 3.0). */
  2409. +/* #undef SYS_SELECT_WITH_SYS_TIME */
  2410. +
  2411. +/* Define if a va_list is an array of some kind */
  2412. +/* #undef VA_LIST_IS_ARRAY */
  2413. +
  2414. +/* Define to empty if the keyword does not work.  */
  2415. +/* #undef volatile */
  2416. +
  2417. +/* Define if you want to use SGI (IRIX 4) dynamic linking.
  2418. +   This requires the "dl" library by Jack Jansen,
  2419. +   ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z.
  2420. +   Don't bother on IRIX 5, it already has dynamic linking using SunOS
  2421. +   style shared libraries */ 
  2422. +/* #undef WITH_SGI_DL */
  2423. +
  2424. +/* Define if you want to emulate SGI (IRIX 4) dynamic linking.
  2425. +   This is rumoured to work on VAX (Ultrix), Sun3 (SunOS 3.4),
  2426. +   Sequent Symmetry (Dynix), and Atari ST.
  2427. +   This requires the "dl-dld" library,
  2428. +   ftp://ftp.cwi.nl/pub/dynload/dl-dld-1.1.tar.Z,
  2429. +   as well as the "GNU dld" library,
  2430. +   ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z.
  2431. +   Don't bother on SunOS 4 or 5, they already have dynamic linking using
  2432. +   shared libraries */ 
  2433. +/* #undef WITH_DL_DLD */
  2434. +
  2435. +/* Define if you want to compile in rudimentary thread support */
  2436. +/* #undef WITH_THREAD */
  2437. +
  2438. +/* Define if you want to use the GNU readline library */
  2439. +/* #define WITH_READLINE 1 */
  2440. +
  2441. +/* Define if you have the chown function.  */
  2442. +/* #define HAVE_CHOWN 1 */
  2443. +
  2444. +/* Define if you have the clock function.  */
  2445. +#define HAVE_CLOCK 1
  2446. +
  2447. +/* Define if you have the dlopen function.  */
  2448. +/* #define HAVE_DLOPEN 1 */
  2449. +
  2450. +/* Define if you have the flock function.  */
  2451. +/* #define HAVE_FLOCK 1 */
  2452. +
  2453. +/* Define if you have the ftime function.  */
  2454. +#define HAVE_FTIME 1
  2455. +
  2456. +/* Define if you have the ftruncate function.  */
  2457. +#define HAVE_FTRUNCATE 1
  2458. +
  2459. +/* Define if you have the gethostname_r function.  */
  2460. +/* #undef HAVE_GETHOSTNAME_R */
  2461. +
  2462. +/* Define if you have the getpeername function.  */
  2463. +#define HAVE_GETPEERNAME 1
  2464. +
  2465. +/* Define if you have the getpgrp function.  */
  2466. +#define HAVE_GETPGRP 1
  2467. +
  2468. +/* Define if you have the getpid function.  */
  2469. +#define HAVE_GETPID 1
  2470. +
  2471. +/* Define if you have the gettimeofday function.  */
  2472. +#define HAVE_GETTIMEOFDAY 1
  2473. +
  2474. +/* Define if you have the getwd function.  */
  2475. +#define HAVE_GETWD 1
  2476. +
  2477. +/* Define if you have the hypot function.  */
  2478. +#define HAVE_HYPOT 1
  2479. +
  2480. +/* Define if you have the link function.  */
  2481. +/* #define HAVE_LINK 1 */
  2482. +
  2483. +/* Define if you have the lstat function.  */
  2484. +/* #define HAVE_LSTAT 1 */
  2485. +
  2486. +/* Define if you have the mkfifo function.  */
  2487. +/* #define HAVE_MKFIFO 1 */
  2488. +
  2489. +/* Define if you have the nice function.  */
  2490. +/* #define HAVE_NICE 1 */
  2491. +
  2492. +/* Define if you have the plock function.  */
  2493. +/* #undef HAVE_PLOCK */
  2494. +
  2495. +/* Define if you have the putenv function.  */
  2496. +#define HAVE_PUTENV 1
  2497. +
  2498. +/* Define if you have the readlink function.  */
  2499. +/* #define HAVE_READLINK 1 */
  2500. +
  2501. +/* Define if you have the select function.  */
  2502. +#define HAVE_SELECT 1
  2503. +
  2504. +/* Define if you have the setgid function.  */
  2505. +#define HAVE_SETGID 1
  2506. +
  2507. +/* Define if you have the setpgid function.  */
  2508. +#define HAVE_SETPGID 1
  2509. +
  2510. +/* Define if you have the setpgrp function.  */
  2511. +/* #define HAVE_SETPGRP 1 */
  2512. +
  2513. +/* Define if you have the setsid function.  */
  2514. +/* #define HAVE_SETSID 1 */
  2515. +
  2516. +/* Define if you have the setuid function.  */
  2517. +/* #define HAVE_SETUID 1 */
  2518. +
  2519. +/* Define if you have the setvbuf function.  */
  2520. +#define HAVE_SETVBUF 1
  2521. +
  2522. +/* Define if you have the sigaction function.  */
  2523. +#define HAVE_SIGACTION 1
  2524. +
  2525. +/* Define if you have the siginterrupt function.  */
  2526. +#define HAVE_SIGINTERRUPT 1
  2527. +
  2528. +/* Define if you have the sigrelse function.  */
  2529. +/* #undef HAVE_SIGRELSE */
  2530. +
  2531. +/* Define if you have the strftime function.  */
  2532. +#define HAVE_STRFTIME 1
  2533. +
  2534. +/* Define if you have the symlink function.  */
  2535. +/* #define HAVE_SYMLINK 1 */
  2536. +
  2537. +/* Define if you have the tcgetpgrp function.  */
  2538. +#define HAVE_TCGETPGRP 1
  2539. +
  2540. +/* Define if you have the tcsetpgrp function.  */
  2541. +#define HAVE_TCSETPGRP 1
  2542. +
  2543. +/* Define if you have the times function.  */
  2544. +#define HAVE_TIMES 1
  2545. +
  2546. +/* Define if you have the truncate function.  */
  2547. +/* #define HAVE_TRUNCATE 1 */
  2548. +
  2549. +/* Define if you have the uname function.  */
  2550. +#define HAVE_UNAME 1
  2551. +
  2552. +/* Define if you have the waitpid function.  */
  2553. +#define HAVE_WAITPID 1
  2554. +
  2555. +/* Define if you have the <dirent.h> header file.  */
  2556. +#define HAVE_DIRENT_H 1
  2557. +
  2558. +/* Define if you have the <dlfcn.h> header file.  */
  2559. +/* #define HAVE_DLFCN_H 1 */
  2560. +
  2561. +/* Define if you have the <fcntl.h> header file.  */
  2562. +#define HAVE_FCNTL_H 1
  2563. +
  2564. +/* Define if you have the <limits.h> header file.  */
  2565. +#define HAVE_LIMITS_H 1
  2566. +
  2567. +/* Define if you have the <ncurses.h> header file.  */
  2568. +/* #undef HAVE_NCURSES_H */
  2569. +
  2570. +/* Define if you have the <ndir.h> header file.  */
  2571. +/* #undef HAVE_NDIR_H */
  2572. +
  2573. +/* Define if you have the <signal.h> header file.  */
  2574. +#define HAVE_SIGNAL_H 1
  2575. +
  2576. +/* Define if you have the <stdarg.h> header file.  */
  2577. +#define HAVE_STDARG_H 1
  2578. +
  2579. +/* Define if you have the <stddef.h> header file.  */
  2580. +#define HAVE_STDDEF_H 1
  2581. +
  2582. +/* Define if you have the <stdlib.h> header file.  */
  2583. +#define HAVE_STDLIB_H 1
  2584. +
  2585. +/* Define if you have the <sys/audioio.h> header file.  */
  2586. +/* #undef HAVE_SYS_AUDIOIO_H */
  2587. +
  2588. +/* Define if you have the <sys/dir.h> header file.  */
  2589. +/* #undef HAVE_SYS_DIR_H */
  2590. +
  2591. +/* Define if you have the <sys/lock.h> header file.  */
  2592. +/* #undef HAVE_SYS_LOCK_H */
  2593. +
  2594. +/* Define if you have the <sys/ndir.h> header file.  */
  2595. +/* #undef HAVE_SYS_NDIR_H */
  2596. +
  2597. +/* Define if you have the <sys/param.h> header file.  */
  2598. +#define HAVE_SYS_PARAM_H 1
  2599. +
  2600. +/* Define if you have the <sys/select.h> header file.  */
  2601. +/* #undef HAVE_SYS_SELECT_H */
  2602. +
  2603. +/* Define if you have the <sys/time.h> header file.  */
  2604. +#define HAVE_SYS_TIME_H 1
  2605. +
  2606. +/* Define if you have the <sys/times.h> header file.  */
  2607. +#define HAVE_SYS_TIMES_H 1
  2608. +
  2609. +/* Define if you have the <sys/un.h> header file.  */
  2610. +#define HAVE_SYS_UN_H 1
  2611. +
  2612. +/* Define if you have the <sys/utsname.h> header file.  */
  2613. +#define HAVE_SYS_UTSNAME_H 1
  2614. +
  2615. +/* Define if you have the <sys/wait.h> header file.  */
  2616. +#define HAVE_SYS_WAIT_H 1
  2617. +
  2618. +/* Define if you have the <thread.h> header file.  */
  2619. +/* #undef HAVE_THREAD_H */
  2620. +
  2621. +/* Define if you have the <unistd.h> header file.  */
  2622. +#define HAVE_UNISTD_H 1
  2623. +
  2624. +/* Define if you have the <utime.h> header file.  */
  2625. +#define HAVE_UTIME_H 1
  2626. +
  2627. +/* Define if you have the dl library (-ldl).  */
  2628. +/* #undef HAVE_LIBDL 1 */
  2629. +
  2630. +/* Define if you have the dld library (-ldld).  */
  2631. +/* #undef HAVE_LIBDLD */
  2632. +
  2633. +/* Define if you have the ieee library (-lieee).  */
  2634. +#define HAVE_LIBIEEE 1
  2635. +
  2636. +/* Define if you have the sun library (-lsun).  */
  2637. +/* #undef HAVE_LIBSUN */
  2638. diff --new-file -ru Python-1.4.orig/makeos2.cmd Python-1.4/makeos2.cmd
  2639. --- Python-1.4.orig/makeos2.cmd    Thu Jan  1 01:00:00 1970
  2640. +++ Python-1.4/makeos2.cmd    Sat Nov 16 16:02:24 1996
  2641. @@ -0,0 +1,19 @@
  2642. +@rem
  2643. +@rem Compilation script for OS/2 - Top makefile replacement
  2644. +@rem 
  2645. +@setlocal
  2646. +@cd Parser 
  2647. +make CC="gcc -Zomf -ffast-math"  OPT=-O2 AR=emxomfar
  2648. +@endlocal
  2649. +@setlocal
  2650. +@cd Objects
  2651. +make CC="gcc -Zomf -ffast-math"  OPT=-O2 AR=emxomfar
  2652. +@endlocal
  2653. +@setlocal
  2654. +@cd Python
  2655. +make CC="gcc -Zomf -ffast-math"  OPT=-O2 AR=emxomfar
  2656. +@endlocal
  2657. +@setlocal
  2658. +@cd Modules
  2659. +make CC="gcc -Zomf -ffast-math"  OPT=-O2 AR=emxomfar
  2660. +@endlocal
  2661. diff --new-file -ru Python-1.4.orig/testos2.cmd Python-1.4/testos2.cmd
  2662. --- Python-1.4.orig/testos2.cmd    Thu Jan  1 01:00:00 1970
  2663. +++ Python-1.4/testos2.cmd    Sat Nov 16 16:26:22 1996
  2664. @@ -0,0 +1,8 @@
  2665. +setlocal
  2666. +set PYTHONROOT=d:\gvallet\src\Python-1.4
  2667. +set TESTPATH=%PYTHONROOT%\Lib;%PYTHONROOT%\Lib\test;%PYTHONROOT%\Modules
  2668. +set PYTHONPATH=%TESTPATH%
  2669. +rm -f d:\Python-1.4\Lib\test\*.pyc
  2670. +python -c "import autotest"
  2671. +echo %PYTHONPATH%
  2672. +endlocal
  2673.