home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / unix / patch12.zoo / tcpatch1.dif < prev    next >
Encoding:
Text File  |  1990-08-07  |  17.0 KB  |  618 lines

  1. TurboC2.0 Patches
  2. *** /dev/null
  3. --- tcpatlev.h    Wed Jul 18 09:54:12 1990
  4. ***************
  5. *** 0 ****
  6. --- 1,1 ----
  7. + #define TCPATCHLEVEL 1
  8. *** ../patch/readme    Wed May 30 15:03:04 1990
  9. --- readme    Wed Jul 18 09:54:12 1990
  10. ***************
  11. *** 70,72 ****
  12. --- 70,83 ----
  13.   Uses a Configure script for greater portability.
  14.   You are now asked if you want to apply a reversed patch.
  15.   No limit (apart from memory) on the size of hunks.
  16. + *** OFFICIAL PATCHLEVEL 12, TurboC2.0 PATCHLEVEL 1
  17. + From: ward@sneezy.cs.wisc.edu (Mike Ward)
  18. + Date: 31 May 90 
  19. + minimal patches to enable compilation under Turbo C2.0, execution under MSDOS
  20. + temp files go in directory /tmp
  21. + ed scripts disabled
  22. *** ../patch/common.h    Thu May 24 14:21:46 1990
  23. --- common.h    Thu May 31 10:28:21 1990
  24. ***************
  25. *** 1,6 ****
  26. ! /* $Header: common.h,v 2.0.1.2 88/06/22 20:44:53 lwall Locked $
  27.    *
  28.    * $Log:    common.h,v $
  29.    * Revision 2.0.1.2  88/06/22  20:44:53  lwall
  30.    * patch12: sprintf was declared wrong
  31.    * 
  32. --- 1,9 ----
  33. ! /* $Header: common.h,v 2.0.1.3 90/05/30 11:30:00 mward $
  34.    *
  35.    * $Log:    common.h,v $
  36. +  * Revision 2.0.1.3  90/05/30  11:30:00  mward
  37. +  * added TURBOC stuff
  38. +  * 
  39.    * Revision 2.0.1.2  88/06/22  20:44:53  lwall
  40.    * patch12: sprintf was declared wrong
  41.    * 
  42. ***************
  43. *** 40,51 ****
  44. --- 43,68 ----
  45.   #include <ctype.h>
  46.   #include <signal.h>
  47.   
  48. + #ifdef TURBOC20
  49. + #include <stdlib.h>
  50. + #include <string.h>
  51. + #include <io.h>
  52. + #include <fcntl.h>
  53. + #endif
  54.   /* constants */
  55.   
  56.   #define TRUE (1)
  57.   #define FALSE (0)
  58.   
  59. + #ifdef TURBOC20
  60. + #define MAXPATH 80                /* max path spec size */
  61. + #define MAXMEMBLK 65534L            /* biggest block of mem */
  62. + #define MAXHUNKSIZE (MAXMEMBLK/sizeof(char *))    /* is this enough lines? */
  63. + #else
  64.   #define MAXHUNKSIZE 100000        /* is this enough lines? */
  65. + #endif
  66.   #define INITHUNKMAX 125            /* initial dynamic allocation size */
  67.   #define MAXLINELEN 1024
  68.   #define BUFFERSIZE 1024
  69. ***************
  70. *** 145,150 ****
  71. --- 162,168 ----
  72.   
  73.   EXT char *revision INIT(Nullch);    /* prerequisite revision, if any */
  74.   
  75. + #ifndef TURBOC20
  76.   char *malloc();
  77.   char *realloc();
  78.   char *strcpy();
  79. ***************
  80. *** 156,159 ****
  81. --- 174,178 ----
  82.   char *sprintf();
  83.   #else
  84.   int sprintf();
  85. + #endif
  86.   #endif
  87. *** ../patch/config.h    Thu May 24 14:21:52 1990
  88. --- config.h    Thu May 31 10:36:24 1990
  89. ***************
  90. *** 1,25 ****
  91.   /* config.h
  92. !  * This file was produced by running the Configure script.
  93.    * Feel free to modify any of this as the need arises.
  94.    */
  95.   
  96.   
  97. ! #/*undef    EUNICE        /* no file linking? */
  98. ! #/*undef    VMS
  99.   
  100. ! #/*undef    index strchr    /* cultural */
  101. ! #/*undef    rindex strrchr    /*  differences? */
  102.   
  103. - #/*undef    void int    /* is void to be avoided? */
  104.   /* How many register declarations are paid attention to? */
  105.   
  106.   #define Reg1 register
  107.   #define Reg2 register
  108.   #define Reg3 register
  109. ! #define Reg4 register
  110. ! #define Reg5 register
  111. ! #define Reg6 register
  112.   #define Reg7 
  113.   #define Reg8 
  114.   #define Reg9 
  115. --- 1,36 ----
  116. + /* $Header: cofig.h,v 2.0.1 90/05/30 11:30:00 mward $
  117. +  *
  118. +  * $Log:    config.h,v $
  119. +  * Revision 2.0.1  90/05/30  11:30:00  mward
  120. +  * set up for MSDOS TURBOC v2.0
  121. +  */
  122. +  
  123.   /* config.h
  124. !  * This file was produced by hand for MSDOS TURBOC V2.0.
  125.    * Feel free to modify any of this as the need arises.
  126.    */
  127.   
  128.   
  129. ! #undef    EUNICE        /* no file linking? */
  130. ! #undef    VMS
  131. ! #undef    CHARSPRINTF     /* sprintf does NOT return pointer to char */
  132. ! #undef    FLEXFILENAMES    /* file names must be 14 chars or less */
  133.   
  134. ! #ifdef TURBOC20
  135. ! #define    index strchr    /* cultural */
  136. ! #define    rindex strrchr    /*  differences? */
  137. ! #define    VOIDSIG     /* signal returns ptr to function returning void*/
  138. ! #define    VOIDFLAGS 7    /* full void support */
  139. ! #endif
  140.   
  141.   /* How many register declarations are paid attention to? */
  142.   
  143.   #define Reg1 register
  144.   #define Reg2 register
  145.   #define Reg3 register
  146. ! #define Reg4
  147. ! #define Reg5
  148. ! #define Reg6
  149.   #define Reg7 
  150.   #define Reg8 
  151.   #define Reg9 
  152. *** ../patch/inp.c    Thu May 24 14:21:46 1990
  153. --- inp.c    Thu May 31 10:37:49 1990
  154. ***************
  155. *** 1,6 ****
  156. ! /* $Header: inp.c,v 2.0.1.1 88/06/03 15:06:13 lwall Locked $
  157.    *
  158.    * $Log:    inp.c,v $
  159.    * Revision 2.0.1.1  88/06/03  15:06:13  lwall
  160.    * patch10: made a little smarter about sccs files
  161.    * 
  162. --- 1,12 ----
  163. ! /* $Header: inp.c,v 2.0.1.2 90/05/30 11:30:00 mward $
  164.    *
  165.    * $Log:    inp.c,v $
  166. +  * Revision 2.0.1.2  90/05/30  11:30:00 mward
  167. +  * if TURBOC20 have plan_a check against MAXMEMBLK before mallocs
  168. +  * if TURBOC20 have plan_b use binary mode io for tmp file
  169. +  * modified plan_a to allow for translation shrinkage on text reads
  170. +  * modify calls to read, write to detect error on return value of -1
  171. +  * 
  172.    * Revision 2.0.1.1  88/06/03  15:06:13  lwall
  173.    * patch10: made a little smarter about sccs files
  174.    * 
  175. ***************
  176. *** 120,128 ****
  177.       out_of_mem = FALSE;
  178.       return FALSE;            /* force plan b because plan a bombed */
  179.       }
  180. - #ifdef lint
  181.       i_womp = Nullch;
  182. ! #else
  183.       i_womp = malloc((MEM)(i_size+2));    /* lint says this may alloc less than */
  184.                       /* i_size, but that's okay, I think. */
  185.   #endif
  186. --- 126,136 ----
  187.       out_of_mem = FALSE;
  188.       return FALSE;            /* force plan b because plan a bombed */
  189.       }
  190.       i_womp = Nullch;
  191. ! #ifndef lint
  192. ! #ifdef TURBOC20
  193. !     if (i_size < MAXMEMBLK)
  194. ! #endif
  195.       i_womp = malloc((MEM)(i_size+2));    /* lint says this may alloc less than */
  196.                       /* i_size, but that's okay, I think. */
  197.   #endif
  198. ***************
  199. *** 131,137 ****
  200.       if ((ifd = open(filename, 0)) < 0)
  201.       fatal2("Can't open file %s\n", filename);
  202.   #ifndef lint
  203. !     if (read(ifd, i_womp, (int)i_size) != i_size) {
  204.       Close(ifd);    /* probably means i_size > 15 or 16 bits worth */
  205.       free(i_womp);    /* at this point it doesn't matter if i_womp was */
  206.       return FALSE;    /*   undersized. */
  207. --- 139,145 ----
  208.       if ((ifd = open(filename, 0)) < 0)
  209.       fatal2("Can't open file %s\n", filename);
  210.   #ifndef lint
  211. !     if ((i_size=(unsigned)read(ifd, i_womp, (int)i_size)) == (unsigned)-1) {
  212.       Close(ifd);    /* probably means i_size > 15 or 16 bits worth */
  213.       free(i_womp);    /* at this point it doesn't matter if i_womp was */
  214.       return FALSE;    /*   undersized. */
  215. ***************
  216. *** 149,157 ****
  217.       if (*s == '\n')
  218.           iline++;
  219.       }
  220. - #ifdef lint
  221.       i_ptr = Null(char**);
  222. ! #else
  223.       i_ptr = (char **)malloc((MEM)((iline + 2) * sizeof(char *)));
  224.   #endif
  225.       if (i_ptr == Null(char **)) {    /* shucks, it was a near thing */
  226. --- 157,167 ----
  227.       if (*s == '\n')
  228.           iline++;
  229.       }
  230.       i_ptr = Null(char**);
  231. ! #ifndef lint
  232. ! #ifdef TURBOC20
  233. !     if (iline+2<MAXMEMBLK/sizeof(char *))
  234. ! #endif
  235.       i_ptr = (char **)malloc((MEM)((iline + 2) * sizeof(char *)));
  236.   #endif
  237.       if (i_ptr == Null(char **)) {    /* shucks, it was a near thing */
  238. ***************
  239. *** 210,215 ****
  240. --- 220,228 ----
  241.       fatal2("Can't open file %s\n", filename);
  242.       if ((tifd = creat(TMPINNAME, 0666)) < 0)
  243.       fatal2("Can't open file %s\n", TMPINNAME);
  244. + #ifdef TURBOC20
  245. +     setmode(tifd, O_BINARY);
  246. + #endif
  247.       while (fgets(buf, sizeof buf, ifp) != Nullch) {
  248.       if (revision != Nullch && !found_revision && rev_in_string(buf))
  249.           found_revision = TRUE;
  250. ***************
  251. *** 245,257 ****
  252.       fatal1("Can't seem to get enough memory.\n");
  253.       for (i=1; ; i++) {
  254.       if (! (i % lines_per_buf))    /* new block */
  255. !         if (write(tifd, tibuf[0], BUFFERSIZE) < BUFFERSIZE)
  256.           fatal1("patch: can't write temp file.\n");
  257.       if (fgets(tibuf[0] + maxlen * (i%lines_per_buf), maxlen + 1, ifp)
  258.         == Nullch) {
  259.           input_lines = i - 1;
  260.           if (i % lines_per_buf)
  261. !         if (write(tifd, tibuf[0], BUFFERSIZE) < BUFFERSIZE)
  262.               fatal1("patch: can't write temp file.\n");
  263.           break;
  264.       }
  265. --- 258,270 ----
  266.       fatal1("Can't seem to get enough memory.\n");
  267.       for (i=1; ; i++) {
  268.       if (! (i % lines_per_buf))    /* new block */
  269. !         if (write(tifd, tibuf[0], BUFFERSIZE) == -1)
  270.           fatal1("patch: can't write temp file.\n");
  271.       if (fgets(tibuf[0] + maxlen * (i%lines_per_buf), maxlen + 1, ifp)
  272.         == Nullch) {
  273.           input_lines = i - 1;
  274.           if (i % lines_per_buf)
  275. !         if (write(tifd, tibuf[0], BUFFERSIZE) == -1)
  276.               fatal1("patch: can't write temp file.\n");
  277.           break;
  278.       }
  279. ***************
  280. *** 258,264 ****
  281. --- 271,281 ----
  282.       }
  283.       Fclose(ifp);
  284.       Close(tifd);
  285. + #ifdef TURBOC20
  286. +     if ((tifd = open(TMPINNAME, O_BINARY)) < 0) {
  287. + #else
  288.       if ((tifd = open(TMPINNAME, 0)) < 0) {
  289. + #endif
  290.       fatal2("Can't reopen file %s\n", TMPINNAME);
  291.       }
  292.   }
  293. ***************
  294. *** 287,293 ****
  295.   #ifndef lint        /* complains of long accuracy */
  296.           Lseek(tifd, (long)baseline / lines_per_buf * BUFFERSIZE, 0);
  297.   #endif
  298. !         if (read(tifd, tibuf[whichbuf], BUFFERSIZE) < 0)
  299.           fatal2("Error reading tmp file %s.\n", TMPINNAME);
  300.       }
  301.       return tibuf[whichbuf] + (tireclen*offline);
  302. --- 304,310 ----
  303.   #ifndef lint        /* complains of long accuracy */
  304.           Lseek(tifd, (long)baseline / lines_per_buf * BUFFERSIZE, 0);
  305.   #endif
  306. !         if (read(tifd, tibuf[whichbuf], BUFFERSIZE) == -1)
  307.           fatal2("Error reading tmp file %s.\n", TMPINNAME);
  308.       }
  309.       return tibuf[whichbuf] + (tireclen*offline);
  310. *** ../patch/pch.c    Thu May 24 14:21:38 1990
  311. --- pch.c    Thu May 31 10:40:00 1990
  312. ***************
  313. *** 1,6 ****
  314. ! /* $Header: pch.c,v 2.0.1.7 88/06/03 15:13:28 lwall Locked $
  315.    *
  316.    * $Log:    pch.c,v $
  317.    * Revision 2.0.1.7  88/06/03  15:13:28  lwall
  318.    * patch10: Can now find patches in shar scripts.
  319.    * patch10: Hunks that swapped and then swapped back could core dump.
  320. --- 1,10 ----
  321. ! /* $Header: pch.c,v 2.0.1.7 90/05/30 11:30:00 mward $
  322.    *
  323.    * $Log:    pch.c,v $
  324. +  * Revision 2.0.1.8  90/05/30  11:30:00  mward
  325. +  * replace do_ed_script with stub
  326. +  * modify calls to read, write to detect error on return value of -1
  327. +  * 
  328.    * Revision 2.0.1.7  88/06/03  15:13:28  lwall
  329.    * patch10: Can now find patches in shar scripts.
  330.    * patch10: Hunks that swapped and then swapped back could core dump.
  331. ***************
  332. *** 1058,1063 ****
  333. --- 1062,1077 ----
  334.       return p_hunk_beg;
  335.   }
  336.  
  337. + #ifdef TURBOC20 
  338. + /* Ignore an ed script. */
  339. + void
  340. + do_ed_script()
  341. + {
  342. +     say1("Sorry, can't do ed scripts yet!\n");
  343. +     say1("Use ed to do this one yourself!\n");
  344. + }
  345. + #else
  346.   /* Apply an ed script by feeding ed itself. */
  347.   
  348.   void
  349. ***************
  350. *** 1121,1123 ****
  351. --- 1134,1137 ----
  352.       chmod(outname, filemode);
  353.       set_signals(1);
  354.   }
  355. + #endif
  356. *** ../patch/util.c    Thu May 24 14:21:46 1990
  357. --- util.c    Thu May 31 10:40:14 1990
  358. ***************
  359. *** 1,3 ****
  360. --- 1,15 ----
  361. + /* $Header: pch.c,v 2.0.1 90/05/30 11:30:00 mward $
  362. +  *
  363. +  * $Log:    pch.c,v $
  364. +  * Revision 2.0.1  90/05/30  11:30:00  mward
  365. +  * modify calls to read, write to detect error on return of value -1
  366. +  * added TURBOC20 ifdef stuff:
  367. +  *    no inodes: modify move_file same file detect accordingly
  368. +  *    no links:  modify move_file link calls to copy_file calls
  369. +  *    no SIGHUP: modify signal routines accordingly
  370. +  *
  371. +  */
  372.   #include "EXTERN.h"
  373.   #include "common.h"
  374.   #include "INTERN.h"
  375. ***************
  376. *** 24,31 ****
  377.       fromfd = open(from, 0);
  378.       if (fromfd < 0)
  379.           fatal2("patch: internal error, can't reopen %s\n", from);
  380. !     while ((i=read(fromfd, buf, sizeof buf)) > 0)
  381. !         if (write(1, buf, i) != 1)
  382.           fatal1("patch: write failed\n");
  383.       Close(fromfd);
  384.       return 0;
  385. --- 36,43 ----
  386.       fromfd = open(from, 0);
  387.       if (fromfd < 0)
  388.           fatal2("patch: internal error, can't reopen %s\n", from);
  389. !     while ((i=read(fromfd, buf, sizeof buf))!=-1 && i!=0)
  390. !         if (write(1, buf, i) == -1)
  391.           fatal1("patch: write failed\n");
  392.       Close(fromfd);
  393.       return 0;
  394. ***************
  395. *** 39,46 ****
  396.           Strcat(bakname, origext?origext:ORIGEXT);
  397.       }
  398.       if (stat(to, &filestat) >= 0) {    /* output file exists */
  399. !     dev_t to_device = filestat.st_dev;
  400. !     ino_t to_inode  = filestat.st_ino;
  401.       char *simplename = bakname;
  402.       
  403.       for (s=bakname; *s; s++) {
  404. --- 51,65 ----
  405.           Strcat(bakname, origext?origext:ORIGEXT);
  406.       }
  407.       if (stat(to, &filestat) >= 0) {    /* output file exists */
  408. ! #ifdef TURBOC20
  409. !     short to_device = filestat.st_dev;
  410. !     short to_mode = filestat.st_mode;
  411. !     long  to_size  = filestat.st_size;
  412. !     long  to_time  = filestat.st_mtime;
  413. ! #else
  414. !      dev_t to_device = filestat.st_dev;
  415. !      ino_t to_inode  = filestat.st_ino;
  416. ! #endif
  417.       char *simplename = bakname;
  418.       
  419.       for (s=bakname; *s; s++) {
  420. ***************
  421. *** 49,55 ****
  422.       }
  423.       /* find a backup name that is not the same file */
  424.       while (stat(bakname, &filestat) >= 0 &&
  425. !         to_device == filestat.st_dev && to_inode == filestat.st_ino) {
  426.           for (s=simplename; *s && !islower(*s); s++) ;
  427.           if (*s)
  428.           *s = toupper(*s);
  429. --- 68,82 ----
  430.       }
  431.       /* find a backup name that is not the same file */
  432.       while (stat(bakname, &filestat) >= 0 &&
  433. !         to_device == filestat.st_dev &&
  434. ! #ifdef TURBOC20
  435. !         to_mode == filestat.st_mode &&
  436. !                 to_size == filestat.st_size &&
  437. !                 to_time == filestat.st_mtime
  438. ! #else
  439. !                 to_inode == filestat.st_ino
  440. ! #endif                
  441. !               ) {
  442.           for (s=simplename; *s && !islower(*s); s++) ;
  443.           if (*s)
  444.           *s = toupper(*s);
  445. ***************
  446. *** 61,71 ****
  447. --- 88,102 ----
  448.       if (debug & 4)
  449.           say3("Moving %s to %s.\n", to, bakname);
  450.   #endif
  451. + #ifdef TURBOC20
  452. +     copy_file(to, bakname);
  453. + #else        
  454.       if (link(to, bakname) < 0) {
  455.           say3("patch: can't backup %s, output is in %s\n",
  456.           to, from);
  457.           return -1;
  458.       }
  459. + #endif
  460.       while (unlink(to) >= 0) ;
  461.       }
  462.   #ifdef DEBUGGING
  463. ***************
  464. *** 72,77 ****
  465. --- 103,111 ----
  466.       if (debug & 4)
  467.       say3("Moving %s to %s.\n", from, to);
  468.   #endif
  469. + #ifdef TURBOC20
  470. +     copy_file(from, to);
  471. + #else
  472.       if (link(from, to) < 0) {        /* different file system? */
  473.       Reg4 int tofd;
  474.       
  475. ***************
  476. *** 84,95 ****
  477.       fromfd = open(from, 0);
  478.       if (fromfd < 0)
  479.           fatal2("patch: internal error, can't reopen %s\n", from);
  480. !     while ((i=read(fromfd, buf, sizeof buf)) > 0)
  481. !         if (write(tofd, buf, i) != i)
  482.           fatal1("patch: write failed\n");
  483.       Close(fromfd);
  484.       Close(tofd);
  485.       }
  486.       Unlink(from);
  487.       return 0;
  488.   }
  489. --- 118,130 ----
  490.       fromfd = open(from, 0);
  491.       if (fromfd < 0)
  492.           fatal2("patch: internal error, can't reopen %s\n", from);
  493. !     while ((i=read(fromfd, buf, sizeof buf))!=-1 && i!=0)
  494. !         if (write(tofd, buf, i) == -1)
  495.           fatal1("patch: write failed\n");
  496.       Close(fromfd);
  497.       Close(tofd);
  498.       }
  499. + #endif
  500.       Unlink(from);
  501.       return 0;
  502.   }
  503. ***************
  504. *** 110,117 ****
  505.       fromfd = open(from, 0);
  506.       if (fromfd < 0)
  507.       fatal2("patch: internal error, can't reopen %s\n", from);
  508. !     while ((i=read(fromfd, buf, sizeof buf)) > 0)
  509. !     if (write(tofd, buf, i) != i)
  510.           fatal2("patch: write (%s) failed\n", to);
  511.       Close(fromfd);
  512.       Close(tofd);
  513. --- 145,152 ----
  514.       fromfd = open(from, 0);
  515.       if (fromfd < 0)
  516.       fatal2("patch: internal error, can't reopen %s\n", from);
  517. !     while ((i=read(fromfd, buf, sizeof buf))!=-1 && i!=0)
  518. !     if (write(tofd, buf, i) == -1)
  519.           fatal2("patch: write (%s) failed\n", to);
  520.       Close(fromfd);
  521.       Close(tofd);
  522. ***************
  523. *** 233,245 ****
  524. --- 268,289 ----
  525.   {
  526.       void my_exit();
  527.   #ifndef lint
  528. + #ifdef TURBOC20
  529.   #ifdef VOIDSIG
  530. +     static void (*intval)();
  531. + #else
  532. +     static int (*intval)();
  533. + #endif
  534. + #else
  535. + #ifdef VOIDSIG
  536.       static void (*hupval)(),(*intval)();
  537.   #else
  538.       static int (*hupval)(),(*intval)();
  539.   #endif
  540. + #endif
  541.   
  542.       if (!reset) {
  543. + #ifndef TURBOC20
  544.       hupval = signal(SIGHUP, SIG_IGN);
  545.       if (hupval != SIG_IGN)
  546.   #ifdef VOIDSIG
  547. ***************
  548. *** 247,252 ****
  549. --- 291,298 ----
  550.   #else
  551.           hupval = (int(*)())my_exit;
  552.   #endif
  553. + #endif
  554.       intval = signal(SIGINT, SIG_IGN);
  555.       if (intval != SIG_IGN)
  556.   #ifdef VOIDSIG
  557. ***************
  558. *** 255,261 ****
  559. --- 301,309 ----
  560.           intval = (int(*)())my_exit;
  561.   #endif
  562.       }
  563. + #ifndef TURBOC20
  564.       Signal(SIGHUP, hupval);
  565. + #endif
  566.       Signal(SIGINT, intval);
  567.   #endif
  568.   }
  569. ***************
  570. *** 266,272 ****
  571. --- 314,322 ----
  572.   ignore_signals()
  573.   {
  574.   #ifndef lint
  575. + #ifndef TURBOC20
  576.       Signal(SIGHUP, SIG_IGN);
  577. + #endif
  578.       Signal(SIGINT, SIG_IGN);
  579.   #endif
  580.   }
  581. *** /dev/null    Fri May 25 21:39:04 1990
  582. --- makefile    Wed Jul 18 09:54:12 1990
  583. ***************
  584. *** 0 ****
  585. --- 1,21 ----
  586. + CC = tcc
  587. + CFLAGS = -N -ml -DTURBOC20
  588. + c = patch.c pch.c inp.c version.c util.c
  589. + obj = patch.obj pch.obj inp.obj util.obj version.obj
  590. + .c.obj:
  591. +     $(CC) -c $(CFLAGS) $(LARGE) $*.c
  592. + patch.exe: $(obj)
  593. +     $(CC) -epatch $(CFLAGS) $(obj)
  594. + patch.obj: config.h common.h patch.c inp.h pch.h util.h version.h
  595. + pch.obj: config.h common.h pch.c pch.h util.h
  596. + inp.obj: config.h common.h inp.c inp.h util.h
  597. + util.obj: config.h common.h util.c util.h
  598. + version.obj: config.h common.h version.c version.h patchlevel.h util.h
  599.