home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3166 < prev    next >
Encoding:
Internet Message Format  |  1991-04-08  |  24.7 KB

  1. From: marka@dsinet (Mark Anacker)
  2. Newsgroups: alt.sources
  3. Subject: python source diffs for MSDOS (part 2/2)
  4. Message-ID: <572@elroy>
  5. Date: 3 Apr 91 22:40:50 GMT
  6.  
  7. combine with part 1, then use to patch the original sources.
  8.  
  9. #---------------------------------- cut here ----------------------------------
  10. # This is a shell archive.  Remove anything before this line,
  11. # then unpack it by saving it in a file and typing "sh file".
  12. #
  13. # Wrapped by Mark Anacker <marka@dsinet> on Wed Apr  3 14:21:20 1991
  14. #
  15. # This archive contains:
  16. #    pythdos01    
  17. #
  18. # Existing files will not be overwritten.
  19.  
  20. LANG=""; export LANG
  21. PATH=/bin:/usr/bin:$PATH; export PATH
  22.  
  23. if test -f pythdos01
  24. then
  25.     echo Ok to overwrite existing file pythdos01\?
  26.     read answer
  27.     case "$answer" in
  28.     [yY]*)    echo Proceeding;;
  29.     *)    echo Aborting; exit 1;;
  30.     esac
  31.     rm -f pythdos01
  32.     if test -f pythdos01
  33.     then
  34.         echo Error: could not remove pythdos01, aborting
  35.         exit 1
  36.     fi
  37. fi
  38. echo x - pythdos01
  39. cat >pythdos01 <<'@EOF'
  40.   
  41.   
  42. --- 24,31 ----
  43.   
  44.   /* Module support implementation */
  45.   
  46. ! #include "allobjects.h"
  47. ! #include "modsupport.h"
  48.   #include "import.h"
  49.   
  50.   
  51. *** dossrc/modsuppo.h    Wed Mar  6 10:05:48 1991
  52. --- src/modsupport.h    Wed Mar  6 10:05:48 1991
  53. *** dossrc/moduleob.c    Wed Mar  6 10:05:01 1991
  54. --- src/moduleobject.c    Wed Mar  6 10:05:01 1991
  55. ***************
  56. *** 24,30 ****
  57.   
  58.   /* Module object implementation */
  59.   
  60. ! #include "allobjec.h"
  61.   
  62.   typedef struct {
  63.       OB_HEAD
  64. --- 24,30 ----
  65.   
  66.   /* Module object implementation */
  67.   
  68. ! #include "allobjects.h"
  69.   
  70.   typedef struct {
  71.       OB_HEAD
  72. *** dossrc/moduleob.h    Wed Mar  6 10:05:48 1991
  73. --- src/moduleobject.h    Wed Mar  6 10:05:48 1991
  74. *** dossrc/node.c    Wed Mar  6 10:05:24 1991
  75. --- src/node.c    Wed Mar  6 10:05:24 1991
  76. ***************
  77. *** 24,30 ****
  78.   
  79.   /* Parse tree node implementation */
  80.   
  81. ! #include "pgenhead.h"
  82.   #include "node.h"
  83.   
  84.   node *
  85. --- 24,30 ----
  86.   
  87.   /* Parse tree node implementation */
  88.   
  89. ! #include "pgenheaders.h"
  90.   #include "node.h"
  91.   
  92.   node *
  93. *** dossrc/node.h    Wed Mar  6 10:05:33 1991
  94. --- src/node.h    Wed Mar  6 10:05:33 1991
  95. *** dossrc/object.c    Wed Mar  6 10:04:50 1991
  96. --- src/object.c    Wed Mar  6 10:04:50 1991
  97. ***************
  98. *** 24,30 ****
  99.   
  100.   /* Generic object operations; and implementation of None (NoObject) */
  101.   
  102. ! #include "allobjec.h"
  103.   
  104.   #ifdef REF_DEBUG
  105.   long ref_total;
  106. --- 24,30 ----
  107.   
  108.   /* Generic object operations; and implementation of None (NoObject) */
  109.   
  110. ! #include "allobjects.h"
  111.   
  112.   #ifdef REF_DEBUG
  113.   long ref_total;
  114. *** dossrc/object.h    Wed Mar  6 10:04:19 1991
  115. --- src/object.h    Wed Mar  6 10:04:19 1991
  116. *** dossrc/objimpl.h    Wed Mar  6 10:04:06 1991
  117. --- src/objimpl.h    Wed Mar  6 10:04:06 1991
  118. *** dossrc/opcode.h    Wed Mar  6 10:05:02 1991
  119. --- src/opcode.h    Wed Mar  6 10:05:02 1991
  120. *** dossrc/panelmod.c    Wed Mar  6 10:04:11 1991
  121. --- src/panelmodule.c    Wed Mar  6 10:04:11 1991
  122. *** dossrc/parser.c    Wed Mar  6 10:04:35 1991
  123. --- src/parser.c    Wed Mar  6 10:04:35 1991
  124. ***************
  125. *** 28,34 ****
  126.   
  127.   /* XXX To do: error recovery */
  128.   
  129. ! #include "pgenhead.h"
  130.   #include "assert.h"
  131.   #include "token.h"
  132.   #include "grammar.h"
  133. --- 28,34 ----
  134.   
  135.   /* XXX To do: error recovery */
  136.   
  137. ! #include "pgenheaders.h"
  138.   #include "assert.h"
  139.   #include "token.h"
  140.   #include "grammar.h"
  141. *** dossrc/parser.h    Wed Mar  6 10:05:34 1991
  142. --- src/parser.h    Wed Mar  6 10:05:34 1991
  143. *** dossrc/parsetok.c    Wed Mar  6 10:05:02 1991
  144. --- src/parsetok.c    Wed Mar  6 10:05:02 1991
  145. ***************
  146. *** 24,31 ****
  147.   
  148.   /* Parser-tokenizer link implementation */
  149.   
  150. ! #include "pgenhead.h"
  151. ! #include "tokenize.h"
  152.   #include "node.h"
  153.   #include "grammar.h"
  154.   #include "parser.h"
  155. --- 24,31 ----
  156.   
  157.   /* Parser-tokenizer link implementation */
  158.   
  159. ! #include "pgenheaders.h"
  160. ! #include "tokenizer.h"
  161.   #include "node.h"
  162.   #include "grammar.h"
  163.   #include "parser.h"
  164. ***************
  165. *** 48,54 ****
  166.   {
  167.       struct tok_state *tok = tok_setups(s);
  168.       int ret;
  169.       if (tok == NULL) {
  170.           fprintf(stderr, "no mem for tok_setups\n");
  171.           return E_NOMEM;
  172. --- 48,54 ----
  173.   {
  174.       struct tok_state *tok = tok_setups(s);
  175.       int ret;
  176. !     
  177.       if (tok == NULL) {
  178.           fprintf(stderr, "no mem for tok_setups\n");
  179.           return E_NOMEM;
  180. *** dossrc/parsetok.h    Wed Mar  6 10:05:49 1991
  181. --- src/parsetok.h    Wed Mar  6 10:05:49 1991
  182. *** dossrc/patchlev.h    Wed Mar  6 11:12:15 1991
  183. --- src/patchlevel.h    Wed Mar  6 11:12:15 1991
  184. *** dossrc/pgen.c    Wed Mar  6 10:04:26 1991
  185. --- src/pgen.c    Wed Mar  6 10:04:26 1991
  186. ***************
  187. *** 27,38 ****
  188.   
  189.   /* For a description, see the comments at end of this file */
  190.   
  191. ! #include "pgenhead.h"
  192.   #include "assert.h"
  193.   #include "token.h"
  194.   #include "node.h"
  195.   #include "grammar.h"
  196. ! #include "metagram.h"
  197.   #include "pgen.h"
  198.   
  199.   extern int debugging;
  200. --- 27,38 ----
  201.   
  202.   /* For a description, see the comments at end of this file */
  203.   
  204. ! #include "pgenheaders.h"
  205.   #include "assert.h"
  206.   #include "token.h"
  207.   #include "node.h"
  208.   #include "grammar.h"
  209. ! #include "metagrammar.h"
  210.   #include "pgen.h"
  211.   
  212.   extern int debugging;
  213. *** dossrc/pgen.h    Wed Mar  6 10:05:49 1991
  214. --- src/pgen.h    Wed Mar  6 10:05:49 1991
  215. *** dossrc/pgenhead.h    Wed Mar  6 10:05:36 1991
  216. --- src/pgenheaders.h    Wed Mar  6 10:05:36 1991
  217. *** dossrc/pgenmain.c    Wed Mar  6 10:05:03 1991
  218. --- src/pgenmain.c    Wed Mar  6 10:05:03 1991
  219. ***************
  220. *** 32,38 ****
  221.      Error messages and status info during the generation process are
  222.      written to stdout, or sometimes to stderr. */
  223.   
  224. ! #include "pgenhead.h"
  225.   #include "grammar.h"
  226.   #include "node.h"
  227.   #include "parsetok.h"
  228. --- 32,38 ----
  229.      Error messages and status info during the generation process are
  230.      written to stdout, or sometimes to stderr. */
  231.   
  232. ! #include "pgenheaders.h"
  233.   #include "grammar.h"
  234.   #include "node.h"
  235.   #include "parsetok.h"
  236. ***************
  237. *** 56,62 ****
  238.       node *n;
  239.       FILE *fp;
  240.       char *filename;
  241.   #ifdef THINK_C
  242.       filename = askfile();
  243.   #else
  244. --- 56,62 ----
  245.       node *n;
  246.       FILE *fp;
  247.       char *filename;
  248. !     
  249.   #ifdef THINK_C
  250.       filename = askfile();
  251.   #else
  252. *** dossrc/posixmod.c    Wed Mar  6 11:15:02 1991
  253. --- src/posixmodule.c    Wed Mar  6 11:15:02 1991
  254. ***************
  255. *** 29,63 ****
  256.   #include <setjmp.h>
  257.   #include <sys/types.h>
  258.   #include <sys/stat.h>
  259. ! #include <time.h>
  260.   #ifdef SYSV
  261.   #include <dirent.h>
  262.   #define direct dirent
  263.   #else
  264. ! #include <dir.h>
  265. ! #include <io.h>
  266.   #endif
  267.   
  268. ! #ifdef MSDOS
  269. ! #include <dos.h>
  270. ! #include <fcntl.h>
  271.   
  272. - struct timeval {
  273. -     unsigned long tv_sec;
  274. -     long    tv_usec;
  275. -     };
  276. - #endif
  277. - #include "allobjec.h"
  278. - #include "modsuppo.h"
  279.   extern char *strerror PROTO((int));
  280.   
  281.   #ifdef AMOEBA
  282.   #define NO_LSTAT
  283.   #endif
  284.   
  285.   /* Return a dictionary corresponding to the POSIX environment table */
  286.   
  287.   extern char **environ;
  288. --- 29,52 ----
  289.   #include <setjmp.h>
  290.   #include <sys/types.h>
  291.   #include <sys/stat.h>
  292. ! #include <sys/time.h>
  293.   #ifdef SYSV
  294.   #include <dirent.h>
  295.   #define direct dirent
  296.   #else
  297. ! #include <sys/dir.h>
  298.   #endif
  299.   
  300. ! #include "allobjects.h"
  301. ! #include "modsupport.h"
  302.   
  303.   extern char *strerror PROTO((int));
  304.   
  305.   #ifdef AMOEBA
  306.   #define NO_LSTAT
  307.   #endif
  308.   
  309.   /* Return a dictionary corresponding to the POSIX environment table */
  310.   
  311.   extern char **environ;
  312. ***************
  313. *** 198,216 ****
  314.       object *self;
  315.       object *args;
  316.   {
  317. - #ifdef MSDOS
  318. -     object *path1;
  319. -     int i;
  320. -     if (!getstrintarg(args, &path1, &i))
  321. -         return NULL;
  322. -     if (_chmod(getstringvalue(path1), 1, i) < 0)
  323. -         return posix_error();
  324. -     INCREF(None);
  325. -     return None;
  326. - #else
  327.       extern int chmod PROTO((const char *, mode_t));
  328. !     return posix_strint(args, _chmod);
  329. ! #endif
  330.   }
  331.   
  332.   static object *
  333. --- 187,194 ----
  334.       object *self;
  335.       object *args;
  336.   {
  337.       extern int chmod PROTO((const char *, mode_t));
  338. !     return posix_strint(args, chmod);
  339.   }
  340.   
  341.   static object *
  342. ***************
  343. *** 232,243 ****
  344.       object *self;
  345.       object *args;
  346.   {
  347. - #ifndef MSDOS
  348.       extern int link PROTO((const char *, const char *));
  349.       return posix_2str(args, link);
  350. - #else
  351. -     return NULL;
  352. - #endif
  353.   }
  354.   
  355.   static object *
  356. --- 210,217 ----
  357.       object *self;
  358.       object *args;
  359.   {
  360.       extern int link PROTO((const char *, const char *));
  361.       return posix_2str(args, link);
  362.   }
  363.   
  364.   static object *
  365. ***************
  366. *** 246,280 ****
  367.       object *args;
  368.   {
  369.       object *name, *d, *v;
  370. - #ifdef MSDOS
  371. -     struct ffblk ep;
  372. -     int rv;
  373. -     if (!getstrarg(args, &name))
  374. -         return NULL;
  375. -     if (findfirst((char *) getstringvalue(name),&ep,0) == -1)
  376. -         return posix_error();
  377. -     if ((d = newlistobject(0)) == NULL)
  378. -         return NULL;
  379. -     rv = 0;
  380. -     while (rv == 0) {
  381. -         v = newstringobject(ep.ff_name);
  382. -         if (v == NULL) {
  383. -             DECREF(d);
  384. -             d = NULL;
  385. -             break;
  386. -         }
  387. -         if (addlistitem(d, v) != 0) {
  388. -             DECREF(v);
  389. -             DECREF(d);
  390. -             d = NULL;
  391. -             break;
  392. -         }
  393. -         DECREF(v);
  394. -         rv = findnext(&ep);
  395. -     }
  396. - #else
  397.       DIR *dirp;
  398.       struct direct *ep;
  399.       if (!getstrarg(args, &name))
  400. --- 220,225 ----
  401.       object *args;
  402.   {
  403.       object *name, *d, *v;
  404.       DIR *dirp;
  405.       struct direct *ep;
  406.       if (!getstrarg(args, &name))
  407. ***************
  408. *** 301,308 ****
  409.           DECREF(v);
  410.       }
  411.       closedir(dirp);
  412. - #endif
  413.       return d;
  414.   }
  415.   
  416. --- 246,251 ----
  417.           DECREF(v);
  418.       }
  419.       closedir(dirp);
  420.       return d;
  421.   }
  422.   
  423. ***************
  424. *** 360,368 ****
  425.       object *self;
  426.       object *args;
  427.   {
  428. - #ifdef MSDOS
  429. -     return NULL;            /* no reasonable DOS equivalent */
  430. - #else
  431.       int i;
  432.       if (!getintarg(args, &i))
  433.           return NULL;
  434. --- 303,308 ----
  435.       object *self;
  436.       object *args;
  437.   {
  438.       int i;
  439.       if (!getintarg(args, &i))
  440.           return NULL;
  441. ***************
  442. *** 370,376 ****
  443.       if (i < 0)
  444.           return posix_error();
  445.       return newintobject((long)i);
  446. - #endif
  447.   }
  448.   
  449.   static object *
  450. --- 310,315 ----
  451.       if (i < 0)
  452.           return posix_error();
  453.       return newintobject((long)i);
  454.   }
  455.   
  456.   static object *
  457. ***************
  458. *** 389,401 ****
  459.   {
  460.       object *path;
  461.       struct timeval tv[2];
  462. - #ifdef MSDOS
  463. -     struct date dt;
  464. -     struct time tm;
  465. -     struct ftime dft;
  466. -     int    fh;
  467. - #endif
  468.       if (args == NULL || !is_tupleobject(args) || gettuplesize(args) != 2) {
  469.           err_badarg();
  470.           return NULL;
  471. --- 328,333 ----
  472.   {
  473.       object *path;
  474.       struct timeval tv[2];
  475.       if (args == NULL || !is_tupleobject(args) || gettuplesize(args) != 2) {
  476.           err_badarg();
  477.           return NULL;
  478. ***************
  479. *** 405,434 ****
  480.                       &tv[0].tv_sec, &tv[1].tv_sec))
  481.           return NULL;
  482.       tv[0].tv_usec = tv[1].tv_usec = 0;
  483. - #ifdef MSDOS
  484. -     unixtodos(tv[0].tv_sec,&dt,&tm);
  485. -     dft.ft_tsec = tm.ti_sec; dft.ft_min = tm.ti_min;
  486. -     dft.ft_hour = tm.ti_hour; dft.ft_day = dt.da_day;
  487. -     dft.ft_month = dt.da_mon;
  488. -     dft.ft_year = (dt.da_year - 1980);    /* this is for TC library */
  489. -     if ((fh = open(getstringvalue(path),O_RDWR)) < 0)
  490. -         return posix_error();    /* can't open file to set time */
  491. -     if (setftime(fh,&dft) < 0)
  492. -     {
  493. -         close(fh);
  494. -         return posix_error();
  495. -     }
  496. -     close(fh);                /* close the temp handle */
  497. - #else
  498.       if (utime(getstringvalue(path), tv) < 0)
  499.           return posix_error();
  500. - #endif
  501.       INCREF(None);
  502.       return None;
  503.   }
  504.   
  505. - #define    NO_LSTAT
  506.   
  507.   #ifndef NO_LSTAT
  508.   
  509. --- 337,348 ----
  510.                       &tv[0].tv_sec, &tv[1].tv_sec))
  511.           return NULL;
  512.       tv[0].tv_usec = tv[1].tv_usec = 0;
  513.       if (utime(getstringvalue(path), tv) < 0)
  514.           return posix_error();
  515.       INCREF(None);
  516.       return None;
  517.   }
  518.   
  519.   
  520.   #ifndef NO_LSTAT
  521.   
  522. *** dossrc/printgra.c    Wed Mar  6 10:05:05 1991
  523. --- src/printgrammar.c    Wed Mar  6 10:05:05 1991
  524. ***************
  525. *** 24,30 ****
  526.   
  527.   /* Print a bunch of C initializers that represent a grammar */
  528.   
  529. ! #include "pgenhead.h"
  530.   #include "grammar.h"
  531.   
  532.   /* Forward */
  533. --- 24,30 ----
  534.   
  535.   /* Print a bunch of C initializers that represent a grammar */
  536.   
  537. ! #include "pgenheaders.h"
  538.   #include "grammar.h"
  539.   
  540.   /* Forward */
  541. ***************
  542. *** 38,44 ****
  543.       grammar *g;
  544.       FILE *fp;
  545.   {
  546. !     fprintf(fp, "#include \"pgenhead.h\"\n");
  547.       fprintf(fp, "#include \"grammar.h\"\n");
  548.       printdfas(g, fp);
  549.       printlabels(g, fp);
  550. --- 38,44 ----
  551.       grammar *g;
  552.       FILE *fp;
  553.   {
  554. !     fprintf(fp, "#include \"pgenheaders.h\"\n");
  555.       fprintf(fp, "#include \"grammar.h\"\n");
  556.       printdfas(g, fp);
  557.       printlabels(g, fp);
  558. *** dossrc/profmain.c    Wed Mar  6 10:05:15 1991
  559. --- src/profmain.c    Wed Mar  6 10:05:15 1991
  560. ***************
  561. *** 30,36 ****
  562.   #include "node.h"
  563.   #include "parsetok.h"
  564.   #include "graminit.h"
  565. ! #include "tokenize.h"
  566.   #include "errcode.h"
  567.   #include "malloc.h"
  568.   
  569. --- 30,36 ----
  570.   #include "node.h"
  571.   #include "parsetok.h"
  572.   #include "graminit.h"
  573. ! #include "tokenizer.h"
  574.   #include "errcode.h"
  575.   #include "malloc.h"
  576.   
  577. ***************
  578. *** 112,118 ****
  579.   runparser(fp, start)
  580.       FILE *fp;
  581.   {
  582. -     grammar module_input;
  583.       node *n;
  584.       int ret;
  585.       ret = parsefile(fp, &gram, module_input, "Parsing", ".", &n);
  586. --- 112,117 ----
  587.   runparser(fp, start)
  588.       FILE *fp;
  589.   {
  590.       node *n;
  591.       int ret;
  592.       ret = parsefile(fp, &gram, module_input, "Parsing", ".", &n);
  593. *** dossrc/PROTO.h    Wed Mar  6 10:05:21 1991
  594. --- src/PROTO.h    Wed Mar  6 10:05:21 1991
  595. *** dossrc/python.c    Wed Mar  6 10:04:40 1991
  596. --- src/pythonmain.c    Wed Mar  6 10:04:40 1991
  597. ***************
  598. *** 24,42 ****
  599.   
  600.   /* Python interpreter main program */
  601.   
  602. ! #include "patchlev.h"
  603.   
  604. ! #include "allobjec.h"
  605.   
  606.   #include "grammar.h"
  607.   #include "node.h"
  608.   #include "parsetok.h"
  609.   #include "graminit.h"
  610.   #include "errcode.h"
  611. ! #include "sysmodul.h"
  612.   #include "compile.h"
  613.   #include "ceval.h"
  614. ! #include "pythonru.h"
  615.   #include "import.h"
  616.   
  617.   extern char *getpythonpath();
  618. --- 24,42 ----
  619.   
  620.   /* Python interpreter main program */
  621.   
  622. ! #include "patchlevel.h"
  623.   
  624. ! #include "allobjects.h"
  625.   
  626.   #include "grammar.h"
  627.   #include "node.h"
  628.   #include "parsetok.h"
  629.   #include "graminit.h"
  630.   #include "errcode.h"
  631. ! #include "sysmodule.h"
  632.   #include "compile.h"
  633.   #include "ceval.h"
  634. ! #include "pythonrun.h"
  635.   #include "import.h"
  636.   
  637.   extern char *getpythonpath();
  638. *** dossrc/python.prj    Wed Apr  3 13:56:00 1991
  639. --- src/python.prj    Wed Apr  3 13:56:00 1991
  640. ***************
  641. *** 1,44 ****
  642. - python.c
  643. - acceler.c
  644. - bltinmod.c
  645. - ceval.c
  646. - classobj.c
  647. - compile.c
  648. - dictobje.c
  649. - errors.c
  650. - fgetsint.c
  651. - fileobje.c
  652. - floatobj.c
  653. - frameobj.c
  654. - funcobje.c
  655. - graminit.c
  656. - grammar1.c
  657. - import.c
  658. - intobjec.c
  659. - intrchec.c
  660. - listnode.c
  661. - listobje.c
  662. - mathmodu.c
  663. - methodob.c
  664. - modsupport.c
  665. - moduleob.c
  666. - node.c
  667. - object.c
  668. - parser.c
  669. - parsetok.c
  670. - posixmod.c
  671. - regexp.c
  672. - regexpmo.c
  673. - strdup.c
  674. - stringob.c
  675. - structme.c
  676. - sysmodul.c
  677. - timemodu.c
  678. - tokenize.c
  679. - tracebac.c
  680. - tupleobj.c
  681. - typeobje.c
  682. - config.c
  683. --- 0 ----
  684. *** dossrc/pythonru.h    Wed Mar  6 10:05:37 1991
  685. --- src/pythonrun.h    Wed Mar  6 10:05:37 1991
  686. *** dossrc/README    Wed Mar  6 10:05:44 1991
  687. --- src/README    Wed Mar  6 10:05:44 1991
  688. *** dossrc/regexp.c    Wed Mar  6 10:04:12 1991
  689. --- src/regexp.c    Wed Mar  6 10:04:12 1991
  690. ***************
  691. *** 4,10 ****
  692.   
  693.                           All Rights Reserved
  694.   
  695. ! Permission to use, copy, modify, and distribute this software and its
  696.   documentation for any purpose and without fee is hereby granted, 
  697.   provided that the above copyright notice appear in all copies and that
  698.   both that copyright notice and this permission notice appear in 
  699. --- 4,10 ----
  700.   
  701.                           All Rights Reserved
  702.   
  703. ! Permission to use, copy, modify, and distribute this software and its 
  704.   documentation for any purpose and without fee is hereby granted, 
  705.   provided that the above copyright notice appear in all copies and that
  706.   both that copyright notice and this permission notice appear in 
  707. ***************
  708. *** 54,60 ****
  709.   #include "PROTO.h"
  710.   #include "malloc.h"
  711.   #undef ANY /* Conflicting identifier defined in malloc.h */
  712. ! /* #include <string.h> */        /* XXX Remove if not found */
  713.   #include "regexp.h"
  714.   #include "regmagic.h"
  715.   
  716. --- 54,60 ----
  717.   #include "PROTO.h"
  718.   #include "malloc.h"
  719.   #undef ANY /* Conflicting identifier defined in malloc.h */
  720. ! #include <string.h>        /* XXX Remove if not found */
  721.   #include "regexp.h"
  722.   #include "regmagic.h"
  723.   
  724. *** dossrc/regexp.h    Wed Mar  6 10:05:37 1991
  725. --- src/regexp.h    Wed Mar  6 10:05:37 1991
  726. *** dossrc/regexpmo.c    Wed Mar  6 10:04:26 1991
  727. --- src/regexpmodule.c    Wed Mar  6 10:04:26 1991
  728. ***************
  729. *** 25,36 ****
  730.   /* Regular expression objects */
  731.   /* This needs V8 or Henry Spencer's regexp! */
  732.   
  733. ! #include "allobjec.h"
  734. ! #include "modsuppo.h"
  735.   
  736.   #include "regexp.h"
  737.   
  738. ! static object *RegexpError;    /* Exception */
  739.   
  740.   typedef struct {
  741.       OB_HEAD
  742. --- 25,36 ----
  743.   /* Regular expression objects */
  744.   /* This needs V8 or Henry Spencer's regexp! */
  745.   
  746. ! #include "allobjects.h"
  747. ! #include "modsupport.h"
  748.   
  749.   #include "regexp.h"
  750.   
  751. ! static object *RegexpError;    /* Exception */    
  752.   
  753.   typedef struct {
  754.       OB_HEAD
  755. *** dossrc/regmagic.h    Wed Mar  6 10:05:49 1991
  756. --- src/regmagic.h    Wed Mar  6 10:05:49 1991
  757. *** dossrc/regsub.c    Wed Mar  6 10:05:05 1991
  758. --- src/regsub.c    Wed Mar  6 10:05:05 1991
  759. *** dossrc/rltokeni.c    Wed Mar  6 10:06:09 1991
  760. --- src/rltokenizer.c    Wed Mar  6 10:06:09 1991
  761. ***************
  762. *** 23,26 ****
  763.   ******************************************************************/
  764.   
  765.   #define USE_READLINE
  766. ! #include "tokenize.c"
  767. --- 23,26 ----
  768.   ******************************************************************/
  769.   
  770.   #define USE_READLINE
  771. ! #include "tokenizer.c"
  772. *** dossrc/sc_error.c    Wed Mar  6 10:05:05 1991
  773. --- src/sc_errors.c    Wed Mar  6 10:05:05 1991
  774. ***************
  775. *** 28,47 ****
  776.   #include "PROTO.h"
  777.   #include "object.h"
  778.   #include "errors.h"
  779. ! #include "sc_error.h"
  780. ! #include "stringob.h"
  781. ! #include "tupleobj.h"
  782.   
  783.   object *
  784.   err_scerr(sc_errno)
  785.       int sc_errno;
  786.   {
  787.       switch(sc_errno) {
  788.       case NoBufSize:
  789.           err_setstr(StubcodeError, "Stubcode didn't start with BufSize");
  790.           break;
  791.       case TwoBufSize:
  792.           err_setstr(StubcodeError, "Stubcode can't have more then one BufSize");
  793.           break;
  794. --- 28,47 ----
  795.   #include "PROTO.h"
  796.   #include "object.h"
  797.   #include "errors.h"
  798. ! #include "sc_errors.h"
  799. ! #include "stringobject.h"
  800. ! #include "tupleobject.h"
  801.   
  802.   object *
  803.   err_scerr(sc_errno)
  804.       int sc_errno;
  805.   {
  806.       switch(sc_errno) {
  807. !     
  808.       case NoBufSize:
  809.           err_setstr(StubcodeError, "Stubcode didn't start with BufSize");
  810.           break;
  811. !     
  812.       case TwoBufSize:
  813.           err_setstr(StubcodeError, "Stubcode can't have more then one BufSize");
  814.           break;
  815. *** dossrc/sc_error.h    Wed Mar  6 10:05:50 1991
  816. --- src/sc_errors.h    Wed Mar  6 10:05:50 1991
  817. *** dossrc/sc_globa.h    Wed Mar  6 10:05:06 1991
  818. --- src/sc_global.h    Wed Mar  6 10:05:06 1991
  819. *** dossrc/sc_inter.c    Wed Mar  6 10:04:15 1991
  820. --- src/sc_interpr.c    Wed Mar  6 10:04:15 1991
  821. ***************
  822. *** 28,46 ****
  823.   #endif
  824.   #include <stdio.h>
  825.   
  826. ! #include <ailamoeb.h>
  827.   
  828.   #include "PROTO.h"
  829.   #include "sc_global.h"
  830.   #include "object.h"
  831.   #include "objimpl.h"
  832. ! #include "stringob.h"
  833.   #include "errors.h"
  834. ! #include "sc_error.h"
  835.   #include "stubcode.h"
  836. ! #include "tupleobj.h"
  837. ! #include "intobjec.h"
  838. ! #include "listobje.h"
  839.   
  840.   typedef struct s_loopstruct {
  841.       struct s_loopstruct    *l_next;    /* Make a list of it      */
  842. --- 28,46 ----
  843.   #endif
  844.   #include <stdio.h>
  845.   
  846. ! #include <ailamoeba.h>
  847.   
  848.   #include "PROTO.h"
  849.   #include "sc_global.h"
  850.   #include "object.h"
  851.   #include "objimpl.h"
  852. ! #include "stringobject.h"
  853.   #include "errors.h"
  854. ! #include "sc_errors.h"
  855.   #include "stubcode.h"
  856. ! #include "tupleobject.h"
  857. ! #include "intobject.h"
  858. ! #include "listobject.h"
  859.   
  860.   typedef struct s_loopstruct {
  861.       struct s_loopstruct    *l_next;    /* Make a list of it      */
  862. *** dossrc/scdbg.c    Wed Mar  6 10:05:06 1991
  863. --- src/scdbg.c    Wed Mar  6 10:05:06 1991
  864. ***************
  865. *** 23,29 ****
  866.   ******************************************************************/
  867.   
  868.   
  869. ! #include "sc_globa.h"
  870.   
  871.   void xPrintNum(Num)
  872.   TscOperand Num;
  873. --- 23,29 ----
  874.   ******************************************************************/
  875.   
  876.   
  877. ! #include "sc_global.h"
  878.   
  879.   void xPrintNum(Num)
  880.   TscOperand Num;
  881. *** dossrc/sigtype.h    Wed Mar  6 10:05:37 1991
  882. --- src/sigtype.h    Wed Mar  6 10:05:37 1991
  883. *** dossrc/stdwinmo.c    Wed Mar  6 10:04:09 1991
  884. --- src/stdwinmodule.c    Wed Mar  6 10:04:09 1991
  885. *** dossrc/stdwinob.h    Wed Mar  6 10:05:50 1991
  886. --- src/stdwinobject.h    Wed Mar  6 10:05:50 1991
  887. *** dossrc/strdup.c    Wed Mar  6 10:05:51 1991
  888. --- src/strdup.c    Wed Mar  6 10:05:51 1991
  889. *** dossrc/strerror.c    Wed Mar  6 10:05:51 1991
  890. --- src/strerror.c    Wed Mar  6 10:05:51 1991
  891. *** dossrc/stringob.c    Wed Mar  6 10:04:40 1991
  892. --- src/stringobject.c    Wed Mar  6 10:04:40 1991
  893. ***************
  894. *** 24,30 ****
  895.   
  896.   /* String object implementation */
  897.   
  898. ! #include "allobjec.h"
  899.   
  900.   object *
  901.   newsizedstringobject(str, size)
  902. --- 24,30 ----
  903.   
  904.   /* String object implementation */
  905.   
  906. ! #include "allobjects.h"
  907.   
  908.   object *
  909.   newsizedstringobject(str, size)
  910. *** dossrc/stringob.h    Wed Mar  6 10:05:25 1991
  911. --- src/stringobject.h    Wed Mar  6 10:05:25 1991
  912. *** dossrc/strtol.c    Wed Mar  6 10:05:16 1991
  913. --- src/strtol.c    Wed Mar  6 10:05:16 1991
  914. *** dossrc/structme.c    Wed Mar  6 10:05:06 1991
  915. --- src/structmember.c    Wed Mar  6 10:05:06 1991
  916. ***************
  917. *** 24,32 ****
  918.   
  919.   /* Map C struct members to Python object attributes */
  920.   
  921. ! #include "allobjec.h"
  922.   
  923. ! #include "structme.h"
  924.   
  925.   object *
  926.   getmember(addr, mlist, name)
  927. --- 24,32 ----
  928.   
  929.   /* Map C struct members to Python object attributes */
  930.   
  931. ! #include "allobjects.h"
  932.   
  933. ! #include "structmember.h"
  934.   
  935.   object *
  936.   getmember(addr, mlist, name)
  937. *** dossrc/structme.h    Wed Mar  6 10:05:25 1991
  938. --- src/structmember.h    Wed Mar  6 10:05:25 1991
  939. *** dossrc/stubcode.h    Wed Mar  6 10:06:09 1991
  940. --- src/stubcode.h    Wed Mar  6 10:06:09 1991
  941. *** dossrc/sysmodul.c    Wed Mar  6 10:04:57 1991
  942. --- src/sysmodule.c    Wed Mar  6 10:04:57 1991
  943. ***************
  944. *** 37,47 ****
  945.   - ps1, ps2: optional primary and secondary prompts (strings)
  946.   */
  947.   
  948. ! #include "allobjec.h"
  949.   
  950. ! #include "sysmodul.h"
  951.   #include "import.h"
  952. ! #include "modsuppo.h"
  953.   
  954.   /* Define delimiter used in $PYTHONPATH */
  955.   
  956. --- 37,47 ----
  957.   - ps1, ps2: optional primary and secondary prompts (strings)
  958.   */
  959.   
  960. ! #include "allobjects.h"
  961.   
  962. ! #include "sysmodule.h"
  963.   #include "import.h"
  964. ! #include "modsupport.h"
  965.   
  966.   /* Define delimiter used in $PYTHONPATH */
  967.   
  968. *** dossrc/sysmodul.h    Wed Mar  6 10:05:51 1991
  969. --- src/sysmodule.h    Wed Mar  6 10:05:51 1991
  970. *** dossrc/timemodu.c    Wed Mar  6 10:04:57 1991
  971. --- src/timemodule.c    Wed Mar  6 10:04:57 1991
  972. ***************
  973. *** 24,32 ****
  974.   
  975.   /* Time module */
  976.   
  977. ! #include "allobjec.h"
  978.   
  979. ! #include "modsuppo.h"
  980.   
  981.   #include "sigtype.h"
  982.   
  983. --- 24,32 ----
  984.   
  985.   /* Time module */
  986.   
  987. ! #include "allobjects.h"
  988.   
  989. ! #include "modsupport.h"
  990.   
  991.   #include "sigtype.h"
  992.   
  993. *** dossrc/token.h    Wed Mar  6 10:05:38 1991
  994. --- src/token.h    Wed Mar  6 10:05:38 1991
  995. *** dossrc/tokenize.c    Wed Mar  6 10:04:23 1991
  996. --- src/tokenizer.c    Wed Mar  6 10:04:23 1991
  997. ***************
  998. *** 28,40 ****
  999.   /* XXX Need a better interface to report errors than writing to stderr */
  1000.   /* XXX Should use editor resource to fetch true tab size on Macintosh */
  1001.   
  1002. ! #include "pgenhead.h"
  1003.   
  1004.   #include <ctype.h>
  1005. ! /* #include "string.h" */
  1006.   
  1007. ! #include "fgetsint.h"
  1008. ! #include "tokenize.h"
  1009.   #include "errcode.h"
  1010.   
  1011.   #ifdef THINK_C
  1012. --- 28,40 ----
  1013.   /* XXX Need a better interface to report errors than writing to stderr */
  1014.   /* XXX Should use editor resource to fetch true tab size on Macintosh */
  1015.   
  1016. ! #include "pgenheaders.h"
  1017.   
  1018.   #include <ctype.h>
  1019. ! #include "string.h"
  1020.   
  1021. ! #include "fgetsintr.h"
  1022. ! #include "tokenizer.h"
  1023.   #include "errcode.h"
  1024.   
  1025.   #ifdef THINK_C
  1026. *** dossrc/tokenize.h    Wed Mar  6 10:05:25 1991
  1027. --- src/tokenizer.h    Wed Mar  6 10:05:25 1991
  1028. *** dossrc/tracebac.c    Wed Mar  6 10:04:57 1991
  1029. --- src/traceback.c    Wed Mar  6 10:04:57 1991
  1030. ***************
  1031. *** 24,35 ****
  1032.   
  1033.   /* Traceback implementation */
  1034.   
  1035. ! #include "allobjec.h"
  1036.   
  1037.   #include "compile.h"
  1038. ! #include "frameobj.h"
  1039. ! #include "tracebac.h"
  1040. ! #include "structme.h"
  1041.   
  1042.   typedef struct _tracebackobject {
  1043.       OB_HEAD
  1044. --- 24,35 ----
  1045.   
  1046.   /* Traceback implementation */
  1047.   
  1048. ! #include "allobjects.h"
  1049.   
  1050.   #include "compile.h"
  1051. ! #include "frameobject.h"
  1052. ! #include "traceback.h"
  1053. ! #include "structmember.h"
  1054.   
  1055.   typedef struct _tracebackobject {
  1056.       OB_HEAD
  1057. *** dossrc/tracebac.h    Wed Mar  6 10:05:52 1991
  1058. --- src/traceback.h    Wed Mar  6 10:05:52 1991
  1059. *** dossrc/tupleobj.c    Wed Mar  6 10:04:51 1991
  1060. --- src/tupleobject.c    Wed Mar  6 10:04:51 1991
  1061. ***************
  1062. *** 24,30 ****
  1063.   
  1064.   /* Tuple object implementation */
  1065.   
  1066. ! #include "allobjec.h"
  1067.   
  1068.   object *
  1069.   newtupleobject(size)
  1070. --- 24,30 ----
  1071.   
  1072.   /* Tuple object implementation */
  1073.   
  1074. ! #include "allobjects.h"
  1075.   
  1076.   object *
  1077.   newtupleobject(size)
  1078. *** dossrc/tupleobj.h    Wed Mar  6 10:05:26 1991
  1079. --- src/tupleobject.h    Wed Mar  6 10:05:26 1991
  1080. *** dossrc/typeobje.c    Wed Mar  6 10:05:38 1991
  1081. --- src/typeobject.c    Wed Mar  6 10:05:38 1991
  1082. ***************
  1083. *** 24,30 ****
  1084.   
  1085.   /* Type object implementation */
  1086.   
  1087. ! #include "allobjec.h"
  1088.   
  1089.   /* Type object implementation */
  1090.   
  1091. --- 24,30 ----
  1092.   
  1093.   /* Type object implementation */
  1094.   
  1095. ! #include "allobjects.h"
  1096.   
  1097.   /* Type object implementation */
  1098.   
  1099. *** dossrc/xxobject.c    Wed Mar  6 10:05:07 1991
  1100. --- src/xxobject.c    Wed Mar  6 10:05:07 1991
  1101. ***************
  1102. *** 34,40 ****
  1103.   
  1104.   /* Xx objects */
  1105.   
  1106. ! #include "allobjec.h"
  1107.   
  1108.   typedef struct {
  1109.       OB_HEAD
  1110. --- 34,40 ----
  1111.   
  1112.   /* Xx objects */
  1113.   
  1114. ! #include "allobjects.h"
  1115.   
  1116.   typedef struct {
  1117.       OB_HEAD
  1118. @EOF
  1119.  
  1120. chmod 644 pythdos01
  1121.  
  1122. exit 0
  1123. -- 
  1124. Mark Anacker                ...{!dsinet,!toybox}!marka
  1125. Digital Systems International, Inc.    Redmond, WA   USA    (206) 881-7544
  1126. "We have a massive leadership vacuum in this country...
  1127.     and we need to change bags" - Sen. Belfry
  1128.