home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / games / volume16 / nethck31 / patch3p < prev    next >
Encoding:
Internet Message Format  |  1993-07-23  |  33.4 KB

  1. Path: uunet!news.tek.com!saab!billr
  2. From: billr@saab.CNA.TEK.COM (Bill Randle)
  3. Newsgroups: comp.sources.games
  4. Subject: v18i049:  nethack31 - display oriented dungeons & dragons (Ver. 3.1), Patch3p/18
  5. Date: 20 Jul 1993 22:33:38 GMT
  6. Organization: Tektronix, Inc, Redmond, OR, USA
  7. Lines: 1166
  8. Approved: billr@saab.CNA.TEK.COM
  9. Message-ID: <22hrs2$9q9@ying.cna.tek.com>
  10. NNTP-Posting-Host: saab.cna.tek.com
  11. Xref: uunet comp.sources.games:1849
  12.  
  13. Submitted-by: izchak@linc.cis.upenn.edu (Izchak Miller)
  14. Posting-number: Volume 18, Issue 49
  15. Archive-name: nethack31/patch3p
  16. Patch-To: nethack31: Volume 16, Issue 1-116
  17. Environment: Amiga, Atari, Mac, MS-DOS, Windows-NT, OS2, Unix, VMS, X11
  18.  
  19.  
  20.  
  21. #! /bin/sh
  22. # This is a shell archive.  Remove anything before this line, then unpack
  23. # it by saving it into a file and typing "sh file".  To overwrite existing
  24. # files, type "sh file -c".  You can also feed this as standard input via
  25. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  26. # will see the following message at the end:
  27. #        "End of archive 16 (of 18)."
  28. # Contents:  patches03g
  29. # Wrapped by billr@saab on Tue Jul 20 14:57:23 1993
  30. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  31. if test -f 'patches03g' -a "${1}" != "-c" ; then 
  32.   echo shar: Renaming existing file \"'patches03g'\" to \"'patches03g.orig'\"
  33.   mv -f 'patches03g' 'patches03g.orig'
  34. fi
  35. echo shar: Extracting \"'patches03g'\" \(31010 characters\)
  36. sed "s/^X//" >'patches03g' <<'END_OF_FILE'
  37. X*** /tmp/da23267    Mon Jul 12 18:13:42 1993
  38. X--- include/artilist.h    Fri Jul  2 15:10:46 1993
  39. X***************
  40. X*** 1,4 ****
  41. X! /*    SCCS Id: @(#)artilist.h    3.1    93/05/25    */
  42. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  43. X  /* NetHack may be freely redistributed.  See license for details. */
  44. X  
  45. X--- 1,4 ----
  46. X! /*    SCCS Id: @(#)artilist.h    3.1    93/06/27    */
  47. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  48. X  /* NetHack may be freely redistributed.  See license for details. */
  49. X  
  50. X***************
  51. X*** 58,71 ****
  52. X  A("Grimtooth",            ORCISH_DAGGER,
  53. X      SPFX_RESTR, 0, 0,
  54. X      PHYS(2,6),    NO_DFNS,    NO_CARY,    0, A_CHAOTIC,     0  ),
  55. X! 
  56. X  A("Orcrist",            ELVEN_BROADSWORD,
  57. X      SPFX_DFLAG2, 0, M2_ORC,
  58. X!     PHYS(5,0),    NO_DFNS,    NO_CARY,    0, A_LAWFUL,    'E' ),
  59. X  
  60. X  A("Sting",            ELVEN_DAGGER,
  61. X      (SPFX_WARN|SPFX_DFLAG2), 0, M2_ORC,
  62. X!     PHYS(5,0),    NO_DFNS,    NO_CARY,    0, A_LAWFUL,     0  ),
  63. X  /*
  64. X   *    Magicbane is a bit different!  Its magic fanfare
  65. X   *    unbalances victims in addition to doing some damage.
  66. X--- 58,73 ----
  67. X  A("Grimtooth",            ORCISH_DAGGER,
  68. X      SPFX_RESTR, 0, 0,
  69. X      PHYS(2,6),    NO_DFNS,    NO_CARY,    0, A_CHAOTIC,     0  ),
  70. X! /*
  71. X!  *    Orcrist and Sting have same alignment as elves.
  72. X!  */
  73. X  A("Orcrist",            ELVEN_BROADSWORD,
  74. X      SPFX_DFLAG2, 0, M2_ORC,
  75. X!     PHYS(5,0),    NO_DFNS,    NO_CARY,    0, A_CHAOTIC,    'E' ),
  76. X  
  77. X  A("Sting",            ELVEN_DAGGER,
  78. X      (SPFX_WARN|SPFX_DFLAG2), 0, M2_ORC,
  79. X!     PHYS(5,0),    NO_DFNS,    NO_CARY,    0, A_CHAOTIC,     0  ),
  80. X  /*
  81. X   *    Magicbane is a bit different!  Its magic fanfare
  82. X   *    unbalances victims in addition to doing some damage.
  83. X***************
  84. X*** 108,114 ****
  85. X  
  86. X  A("Trollsbane",            MORNING_STAR,
  87. X      (SPFX_RESTR|SPFX_DCLAS), 0, S_TROLL,
  88. X!     PHYS(5,0),    NO_DFNS,    NO_CARY,    0, A_LAWFUL,     0  ),
  89. X  /*
  90. X   *    Two problems:  1) doesn't let trolls regenerate heads,
  91. X   *    2) doesn't give unusual message for 2-headed monsters (but
  92. X--- 110,116 ----
  93. X  
  94. X  A("Trollsbane",            MORNING_STAR,
  95. X      (SPFX_RESTR|SPFX_DCLAS), 0, S_TROLL,
  96. X!     PHYS(5,0),    NO_DFNS,    NO_CARY,    0, A_CHAOTIC,     0  ),
  97. X  /*
  98. X   *    Two problems:  1) doesn't let trolls regenerate heads,
  99. X   *    2) doesn't give unusual message for 2-headed monsters (but
  100. X*** /tmp/da23291    Mon Jul 12 18:13:47 1993
  101. X--- include/config.h    Fri Jul  9 15:54:01 1993
  102. X***************
  103. X*** 42,55 ****
  104. X  # define MAC
  105. X  # undef UNIX        /*    Just in case                */
  106. X  #endif
  107. X- /* #define MAC        /*    We're on some mac-ish platform    */
  108. X  
  109. X! #ifdef MAC
  110. X! # ifdef THINK_C
  111. X! #  define NEED_VARARGS
  112. X! # endif
  113. X  #endif
  114. X  
  115. X  /*
  116. X   * Amiga setup.
  117. X   */
  118. X--- 42,56 ----
  119. X  # define MAC
  120. X  # undef UNIX        /*    Just in case                */
  121. X  #endif
  122. X  
  123. X! #ifdef THINK_C
  124. X! # define MAC
  125. X! # define NEED_VARARGS
  126. X! # undef UNIX        /*    Just in case                */
  127. X  #endif
  128. X  
  129. X+ /* #define MAC        /*    We're on some mac-ish platform    */
  130. X+ 
  131. X  /*
  132. X   * Amiga setup.
  133. X   */
  134. X***************
  135. X*** 265,271 ****
  136. X  
  137. X  /* An example of one alternative you might want to use: */
  138. X  /* # define COMPRESS "/usr/local/bin/gzip"   /* FSF gzip compression */
  139. X! /* # define COMPRESS_EXTENSION ".z"         /* normal gzip extension */
  140. X  #endif
  141. X  #ifndef COMPRESS
  142. X  # define INTERNAL_COMP    /* control use of NetHack's compression routines */
  143. X--- 266,272 ----
  144. X  
  145. X  /* An example of one alternative you might want to use: */
  146. X  /* # define COMPRESS "/usr/local/bin/gzip"   /* FSF gzip compression */
  147. X! /* # define COMPRESS_EXTENSION ".gz"         /* normal gzip extension */
  148. X  #endif
  149. X  #ifndef COMPRESS
  150. X  # define INTERNAL_COMP    /* control use of NetHack's compression routines */
  151. X*** /tmp/da23387    Mon Jul 12 18:14:10 1993
  152. X--- include/extern.h    Fri Jul  2 14:10:22 1993
  153. X***************
  154. X*** 1,4 ****
  155. X! /*    SCCS Id: @(#)extern.h    3.1    93/05/31    */
  156. X  /* Copyright (c) Steve Creps, 1988.                  */
  157. X  /* NetHack may be freely redistributed.  See license for details. */
  158. X  
  159. X--- 1,4 ----
  160. X! /*    SCCS Id: @(#)extern.h    3.1    93/06/27    */
  161. X  /* Copyright (c) Steve Creps, 1988.                  */
  162. X  /* NetHack may be freely redistributed.  See license for details. */
  163. X  
  164. X***************
  165. X*** 41,47 ****
  166. X  #endif
  167. X  E int NDECL(doapply);
  168. X  E int NDECL(holetime);
  169. X! E void NDECL(dighole);
  170. X  E int NDECL(dorub);
  171. X  E int NDECL(dojump);
  172. X  #ifdef WALKIES
  173. X--- 41,47 ----
  174. X  #endif
  175. X  E int NDECL(doapply);
  176. X  E int NDECL(holetime);
  177. X! E boolean FDECL(dighole, (BOOLEAN_P));
  178. X  E int NDECL(dorub);
  179. X  E int NDECL(dojump);
  180. X  #ifdef WALKIES
  181. X***************
  182. X*** 58,63 ****
  183. X--- 58,64 ----
  184. X  E boolean FDECL(snuff_lit, (struct obj *));
  185. X  E void NDECL(check_lamps);
  186. X  E void FDECL(use_unicorn_horn, (struct obj *));
  187. X+ E boolean FDECL(tinnable, (struct obj *));
  188. X  
  189. X  /* ### artifact.c ### */
  190. X  
  191. X***************
  192. X*** 463,469 ****
  193. X  E void NDECL(sync_hunger);
  194. X  #endif
  195. X  E void FDECL(newuhs, (BOOLEAN_P));
  196. X! E struct obj *FDECL(floorfood, (const char *,BOOLEAN_P));
  197. X  E void NDECL(vomit);
  198. X  E int FDECL(eaten_stat, (int,struct obj *));
  199. X  E void FDECL(food_disappears, (struct obj *));
  200. X--- 464,470 ----
  201. X  E void NDECL(sync_hunger);
  202. X  #endif
  203. X  E void FDECL(newuhs, (BOOLEAN_P));
  204. X! E struct obj *FDECL(floorfood, (const char *,int));
  205. X  E void NDECL(vomit);
  206. X  E int FDECL(eaten_stat, (int,struct obj *));
  207. X  E void FDECL(food_disappears, (struct obj *));
  208. X***************
  209. X*** 766,771 ****
  210. X--- 767,773 ----
  211. X  
  212. X  /* ### makemon.c ### */
  213. X  
  214. X+ E boolean FDECL(is_home_elemental, (struct permonst *));
  215. X  E struct monst *FDECL(makemon, (struct permonst *,int,int));
  216. X  E boolean FDECL(enexto, (coord *,XCHAR_P,XCHAR_P,struct permonst *));
  217. X  E int FDECL(goodpos, (int,int,struct monst *,struct permonst *));
  218. X***************
  219. X*** 1651,1656 ****
  220. X--- 1653,1666 ----
  221. X  #ifdef MICRO
  222. X  E boolean FDECL(comp_times, (long));
  223. X  #endif
  224. X+ 
  225. X+ /* ### video.c ### */
  226. X+ 
  227. X+ #ifdef VIDEOSHADES
  228. X+ E int FDECL(assign_videoshades, (uchar *,int));
  229. X+ E int FDECL(assign_videocolors, (uchar *,int));
  230. X+ #endif /* VIDEOSHADES */
  231. X+ 
  232. X  
  233. X  /* ### vis_tab.c ### */
  234. X  
  235. X*** /tmp/da23435    Mon Jul 12 18:14:22 1993
  236. X--- include/macconf.h    Tue Jul  6 15:20:06 1993
  237. X***************
  238. X*** 11,18 ****
  239. X   * This could probably be automagic later on - I believe there's
  240. X   * a unique symbol for MPW at least (it's "macintosh")
  241. X   */
  242. X! #  define MAC_MPW32        /* Headers, and for avoiding a bug */
  243. X! /* #  define MAC_THINKC5    /* Maybe supported now ... */
  244. X  
  245. X  #  define RANDOM
  246. X  #  define NO_SIGNAL    /* You wouldn't believe our signals ... */
  247. X--- 11,19 ----
  248. X   * This could probably be automagic later on - I believe there's
  249. X   * a unique symbol for MPW at least (it's "macintosh")
  250. X   */
  251. X! #  ifdef applec
  252. X! #   define MAC_MPW32        /* Headers, and for avoiding a bug */
  253. X! #  endif
  254. X  
  255. X  #  define RANDOM
  256. X  #  define NO_SIGNAL    /* You wouldn't believe our signals ... */
  257. X*** /tmp/da23563    Mon Jul 12 18:14:53 1993
  258. X--- include/patchlevel.h    Mon Jul 12 16:10:06 1993
  259. X***************
  260. X*** 2,19 ****
  261. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  262. X  /* NetHack may be freely redistributed.  See license for details. */
  263. X  
  264. X! /* NetHack 3.1.2 */
  265. X  #define VERSION_MAJOR    3
  266. X  #define VERSION_MINOR    1
  267. X  /*
  268. X   * PATCHLEVEL is updated for each release.
  269. X   */
  270. X! #define PATCHLEVEL    2
  271. X  /*
  272. X   * Incrementing EDITLEVEL can be used to force invalidation of old bones
  273. X   * and save files.
  274. X   */
  275. X  #define EDITLEVEL    0
  276. X  
  277. X  /*
  278. X   *  Patch 2, June 1, 1993
  279. X--- 2,28 ----
  280. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  281. X  /* NetHack may be freely redistributed.  See license for details. */
  282. X  
  283. X! /* NetHack 3.1.3 */
  284. X  #define VERSION_MAJOR    3
  285. X  #define VERSION_MINOR    1
  286. X  /*
  287. X   * PATCHLEVEL is updated for each release.
  288. X   */
  289. X! #define PATCHLEVEL    3
  290. X  /*
  291. X   * Incrementing EDITLEVEL can be used to force invalidation of old bones
  292. X   * and save files.
  293. X   */
  294. X  #define EDITLEVEL    0
  295. X+ 
  296. X+ /*
  297. X+  *  Patch 3, July 12, 1993
  298. X+  *  further revise Mac windowing and extend to Think C (courtesy
  299. X+  *    Barton House)
  300. X+  *  fix confusing black/gray/white display on some MSDOS hardware
  301. X+  *  remove fatal bugs dealing with horns of plenty and VMS bones levels,
  302. X+  *    as well as more minor ones
  303. X+  */
  304. X  
  305. X  /*
  306. X   *  Patch 2, June 1, 1993
  307. X*** /tmp/da23571    Mon Jul 12 18:14:55 1993
  308. X--- include/pcconf.h    Fri Jul  9 15:33:21 1993
  309. X***************
  310. X*** 1,4 ****
  311. X! /*    SCCS Id: @(#)pcconf.h    3.1    93/04/04      */
  312. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  313. X  /* NetHack may be freely redistributed.  See license for details. */
  314. X  
  315. X--- 1,4 ----
  316. X! /*    SCCS Id: @(#)pcconf.h    3.1    93/06/28      */
  317. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  318. X  /* NetHack may be freely redistributed.  See license for details. */
  319. X  
  320. X***************
  321. X*** 18,25 ****
  322. X   */
  323. X  
  324. X  # if !defined (__GO32__) && !defined(__BORLANDC__) && !defined(AMIGA)
  325. X! #  define OVERLAY         /* MS DOS overlay manager - PGM */
  326. X! /* #define MOVERLAY /* Microsoft's MOVE overlay system (MSC >= 7.0) */
  327. X  # endif
  328. X  
  329. X  
  330. X--- 18,25 ----
  331. X   */
  332. X  
  333. X  # if !defined (__GO32__) && !defined(__BORLANDC__) && !defined(AMIGA)
  334. X! /* #  define OVERLAY         /* MS DOS overlay manager - PGM */
  335. X! #define MOVERLAY /* Microsoft's MOVE overlay system (MSC >= 7.0) */
  336. X  # endif
  337. X  
  338. X  
  339. X***************
  340. X*** 28,46 ****
  341. X  # endif
  342. X  
  343. X  # define SHELL           /* via exec of COMMAND.COM */
  344. X! # define TERMLIB        /* enable use of termcap file /etc/termcap */
  345. X              /* or ./termcap for MSDOS (SAC) */
  346. X              /* compile and link in Fred Fish's termcap library, */
  347. X              /* enclosed in TERMCAP.ARC, to use this */
  348. X  
  349. X! # define ANSI_DEFAULT    /* allows NetHack to run without a ./termcap */
  350. X  
  351. X! /*# define NO_TERMS    /* Allows Nethack to run without ansi.sys by linking */
  352. X              /* screen routines into the .exe     */
  353. X  
  354. X! # ifdef NO_TERMS        /* if NO_TERMS select screen package below */
  355. X! #  define SCREEN_BIOS        /* Use bios calls for all screen control */
  356. X! /*  #define SCREEN_DJGPPFAST    /* Use djgpp fast screen routines       */
  357. X  # endif
  358. X  
  359. X  /*# define PC9801    /* Allows NetHack to run on NEC PC-9801 machines */
  360. X--- 28,46 ----
  361. X  # endif
  362. X  
  363. X  # define SHELL           /* via exec of COMMAND.COM */
  364. X! /* # define TERMLIB        /* enable use of termcap file /etc/termcap */
  365. X              /* or ./termcap for MSDOS (SAC) */
  366. X              /* compile and link in Fred Fish's termcap library, */
  367. X              /* enclosed in TERMCAP.ARC, to use this */
  368. X  
  369. X! /* # define ANSI_DEFAULT    /* allows NetHack to run without a ./termcap */
  370. X  
  371. X! # define NO_TERMS    /* Allows Nethack to run without ansi.sys by linking */
  372. X              /* screen routines into the .exe     */
  373. X  
  374. X! # ifdef NO_TERMS    /* if NO_TERMS select one screen package below */
  375. X! #define SCREEN_BIOS        /* Use bios calls for all screen control */
  376. X! /* #define SCREEN_DJGPPFAST    /* Use djgpp fast screen routines       */
  377. X  # endif
  378. X  
  379. X  /*# define PC9801    /* Allows NetHack to run on NEC PC-9801 machines */
  380. X***************
  381. X*** 114,126 ****
  382. X  
  383. X  #ifdef MSDOS
  384. X  # define TEXTCOLOR /* */
  385. X  #endif
  386. X  
  387. X  #ifdef NO_TERMS        /* Sanity check, do not modify this block */
  388. X  # undef TERMLIB
  389. X  # undef ANSI_DEFAULT
  390. X  # define ASCIIGRAPH
  391. X! #endif 
  392. X  
  393. X  #ifdef MSC7_WARN    /* define with cl /DMSC7_WARN    */
  394. X  #pragma warning(disable:4131)
  395. X--- 114,152 ----
  396. X  
  397. X  #ifdef MSDOS
  398. X  # define TEXTCOLOR /* */
  399. X+ # define PORT_HELP "msdos.hlp"    /* msdos port specific help file */
  400. X  #endif
  401. X  
  402. X  #ifdef NO_TERMS        /* Sanity check, do not modify this block */
  403. X+ # ifdef TERMLIB
  404. X+ #  ifdef _MSC_VER
  405. X+ #   pragma message("Warning -- TERMLIB defined with NO_TERMS in pcconf.h")
  406. X+ #   pragma message("           Forcing undef of TERMLIB") 
  407. X+ #  endif
  408. X  # undef TERMLIB
  409. X+ # endif
  410. X+ # ifdef ANSI_DEFAULT
  411. X+ #  ifdef _MSC_VER
  412. X+ #   pragma message("Warning -- ANSI_DEFAULT defined with NO_TERMS in pcconf.h")
  413. X+ #   pragma message("           Forcing undef of ANSI_DEFAULT") 
  414. X+ #  endif
  415. X  # undef ANSI_DEFAULT
  416. X+ # endif
  417. X+ /* only one screen package is allowed */
  418. X+ # if defined(SCREEN_BIOS) && defined(SCREEN_DJGPPFAST)
  419. X+ #  ifdef _MSC_VER
  420. X+ #   pragma message("Warning -- More than one screen package defined in pcconf.h")
  421. X+ #   pragma message("           Forcing undef of SCREEN_DJGPPFAST") 
  422. X+ #   undef SCREEN_DJGPPFAST    /* Can't use djgpp fast with MSC anyway */
  423. X+ #  else
  424. X+ #   undef SCREEN_BIOS
  425. X+ #  endif
  426. X+ # endif
  427. X  # define ASCIIGRAPH
  428. X! # ifdef TEXTCOLOR
  429. X! # define VIDEOSHADES
  430. X! # endif
  431. X! #endif             /* End of sanity check block */
  432. X  
  433. X  #ifdef MSC7_WARN    /* define with cl /DMSC7_WARN    */
  434. X  #pragma warning(disable:4131)
  435. X*** /tmp/da23715    Mon Jul 12 18:15:29 1993
  436. X--- include/vmsconf.h    Thu Jul  1 14:55:09 1993
  437. X***************
  438. X*** 16,22 ****
  439. X   *   extra room for patching longer values into an existing executable.
  440. X   */
  441. X  #define Local_WIZARD    "NHWIZARD\0\0\0\0"
  442. X! #define Local_HACKDIR    "DISK$USERS:[GAMES.NETHACK.3-1-2.PLAY]\0\0\0\0\0\0\0\0"
  443. X  
  444. X  /*
  445. X   * This section cleans up the stuff done in config.h so that it
  446. X--- 16,22 ----
  447. X   *   extra room for patching longer values into an existing executable.
  448. X   */
  449. X  #define Local_WIZARD    "NHWIZARD\0\0\0\0"
  450. X! #define Local_HACKDIR    "DISK$USERS:[GAMES.NETHACK.3-1-3.PLAY]\0\0\0\0\0\0\0\0"
  451. X  
  452. X  /*
  453. X   * This section cleans up the stuff done in config.h so that it
  454. X*** /tmp/da23723    Mon Jul 12 18:15:32 1993
  455. X--- include/winX.h    Thu Jul  1 15:32:58 1993
  456. X***************
  457. X*** 74,81 ****
  458. X      XFontStruct *fs;        /* Font for the window. */
  459. X      int        num_lines;    /* line count */
  460. X      struct line_element *head;    /* head of circular line queue */
  461. X      struct line_element *last_pause;/* point to the line after the prev */
  462. X!                 /*    bottom of screen */
  463. X      struct line_element *last_pause_head;/* pointer to head of previous */
  464. X                  /* turn                    */
  465. X      GC        gc;        /* GC for text drawing */
  466. X--- 74,82 ----
  467. X      XFontStruct *fs;        /* Font for the window. */
  468. X      int        num_lines;    /* line count */
  469. X      struct line_element *head;    /* head of circular line queue */
  470. X+     struct line_element *line_here;/* current drawn line position */
  471. X      struct line_element *last_pause;/* point to the line after the prev */
  472. X!                 /*     bottom of screen            */
  473. X      struct line_element *last_pause_head;/* pointer to head of previous */
  474. X                  /* turn                    */
  475. X      GC        gc;        /* GC for text drawing */
  476. X*** /tmp/da23747    Mon Jul 12 18:15:38 1993
  477. X--- include/wintty.h    Tue Jul  6 15:20:10 1993
  478. X***************
  479. X*** 52,57 ****
  480. X--- 52,60 ----
  481. X  #define MAXWIN 20        /* maximum number of windows, cop-out */
  482. X  
  483. X  /* tty dependent window types */
  484. X+ #ifdef NHW_BASE
  485. X+ #undef NHW_BASE
  486. X+ #endif
  487. X  #define NHW_BASE    6
  488. X  
  489. X  extern struct window_procs tty_procs;
  490. X***************
  491. X*** 190,195 ****
  492. X--- 193,202 ----
  493. X  
  494. X  #ifdef NO_TERMS
  495. X  # ifdef MAC
  496. X+ #  ifdef putchar
  497. X+ #   undef putchar
  498. X+ #   undef putc
  499. X+ #  endif
  500. X  #  define putchar term_putc
  501. X  #  define putc term_fputc
  502. X  #  define fputc term_fputc
  503. X*** /tmp/da23763    Mon Jul 12 18:15:42 1993
  504. X--- include/you.h    Mon Jul 12 16:10:25 1993
  505. X***************
  506. X*** 1,4 ****
  507. X! /*    SCCS Id: @(#)you.h    3.1    93/04/24    */
  508. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  509. X  /* NetHack may be freely redistributed.  See license for details. */
  510. X  
  511. X--- 1,4 ----
  512. X! /*    SCCS Id: @(#)you.h    3.1    93/07/07    */
  513. X  /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
  514. X  /* NetHack may be freely redistributed.  See license for details. */
  515. X  
  516. X***************
  517. X*** 51,57 ****
  518. X  #define INTRINSIC    (FROMOUTSIDE|FROMEXPER)
  519. X  
  520. X      long p_flgs;
  521. X-     int NDECL((*p_tofn));    /* called after timeout */
  522. X  };
  523. X  
  524. X  struct u_have {
  525. X--- 51,56 ----
  526. X***************
  527. X*** 207,214 ****
  528. X--- 206,215 ----
  529. X      long    ucleansed;    /* to record moves when player was cleansed */
  530. X      int uinvault;
  531. X      struct monst *ustuck;
  532. X+     int    umortality;        /* how many times you died */
  533. X      int ugrave_arise; /* you die and become something aside from a ghost */
  534. X      int nr_killed[NUMMONS];        /* used for experience bookkeeping */
  535. X+     time_t    ubirthday;        /* real world time when game began */
  536. X  };
  537. X  
  538. X  #endif    /* YOU_H */
  539. X*** /tmp/da23779    Mon Jul 12 18:15:46 1993
  540. X--- util/dgn_comp.l    Thu Jul  1 14:42:43 1993
  541. X***************
  542. X*** 1,5 ****
  543. X  %{
  544. X! /*    SCCS Id: @(#)dgn_lex.c    3.1    92/10/23    */
  545. X  /*    Copyright (c) 1989 by Jean-Christophe Collet */
  546. X  /*    Copyright (c) 1990 by M. Stephenson         */
  547. X  /* NetHack may be freely redistributed.  See license for details. */
  548. X--- 1,5 ----
  549. X  %{
  550. X! /*    SCCS Id: @(#)dgn_lex.c    3.1    93/06/17    */
  551. X  /*    Copyright (c) 1989 by Jean-Christophe Collet */
  552. X  /*    Copyright (c) 1990 by M. Stephenson         */
  553. X  /* NetHack may be freely redistributed.  See license for details. */
  554. X***************
  555. X*** 15,26 ****
  556. X   * Most of these don't exist in flex, yywrap is macro and
  557. X   * yyunput is properly declared in flex.skel.
  558. X   */
  559. X! #ifndef FLEX_SCANNER
  560. X! int FDECL (yyback, (int *, int));
  561. X! int NDECL (yylook);
  562. X! int NDECL (yyinput);
  563. X! int NDECL (yywrap);
  564. X! int NDECL (yylex);
  565. X      /* Traditional lexes let yyunput() and yyoutput() default to int;
  566. X       * newer ones may declare them as void since they don't return
  567. X       * values.  For even more fun, the lex supplied as part of the
  568. X--- 15,26 ----
  569. X   * Most of these don't exist in flex, yywrap is macro and
  570. X   * yyunput is properly declared in flex.skel.
  571. X   */
  572. X! #if !defined(FLEX_SCANNER) && !defined(FLEXHACK_SCANNER)
  573. X! int FDECL(yyback, (int *, int));
  574. X! int NDECL(yylook);
  575. X! int NDECL(yyinput);
  576. X! int NDECL(yywrap);
  577. X! int NDECL(yylex);
  578. X      /* Traditional lexes let yyunput() and yyoutput() default to int;
  579. X       * newer ones may declare them as void since they don't return
  580. X       * values.  For even more fun, the lex supplied as part of the
  581. X***************
  582. X*** 44,59 ****
  583. X  #  endif
  584. X  # endif
  585. X  # ifdef VOIDYYPUT
  586. X! void FDECL (yyunput, (int));
  587. X! void FDECL (yyoutput, (int));
  588. X  # else
  589. X! int FDECL (yyunput, (int));
  590. X! int FDECL (yyoutput, (int));
  591. X  # endif
  592. X! #endif    /* FLEX_SCANNER */
  593. X  
  594. X! void FDECL (init_yyin, (FILE *));
  595. X! void FDECL (init_yyout, (FILE *));
  596. X  
  597. X  #ifdef MICRO
  598. X  #undef exit
  599. X--- 44,59 ----
  600. X  #  endif
  601. X  # endif
  602. X  # ifdef VOIDYYPUT
  603. X! void FDECL(yyunput, (int));
  604. X! void FDECL(yyoutput, (int));
  605. X  # else
  606. X! int FDECL(yyunput, (int));
  607. X! int FDECL(yyoutput, (int));
  608. X  # endif
  609. X! #endif    /* !FLEX_SCANNER && !FLEXHACK_SCANNER */
  610. X  
  611. X! void FDECL(init_yyin, (FILE *));
  612. X! void FDECL(init_yyout, (FILE *));
  613. X  
  614. X  #ifdef MICRO
  615. X  #undef exit
  616. X***************
  617. X*** 71,77 ****
  618. X   *    This is a hack required by Michael Hamel to get things
  619. X   *    working on the Mac.
  620. X   */
  621. X! #if defined(applec) && !defined(FLEX_SCANNER)
  622. X  #undef input
  623. X  #undef unput
  624. X  #define unput(c) { yytchar = (c); if (yytchar == 10) yylineno--; *yysptr++ = yytchar; }                  
  625. X--- 71,77 ----
  626. X   *    This is a hack required by Michael Hamel to get things
  627. X   *    working on the Mac.
  628. X   */
  629. X! #if defined(applec) && !defined(FLEX_SCANNER) && !defined(FLEXHACK_SCANNER)
  630. X  #undef input
  631. X  #undef unput
  632. X  #define unput(c) { yytchar = (c); if (yytchar == 10) yylineno--; *yysptr++ = yytchar; }                  
  633. X***************
  634. X*** 80,87 ****
  635. X  # endif
  636. X  
  637. X  char
  638. X! input() {    /* Under MPW \n is chr(13)! Compensate for this. */
  639. X! 
  640. X      if (yysptr > yysbuf) return(*--yysptr);
  641. X      else {
  642. X          yytchar = getc(yyin);
  643. X--- 80,87 ----
  644. X  # endif
  645. X  
  646. X  char
  647. X! input()        /* Under MPW \n is chr(13)! Compensate for this. */
  648. X! {
  649. X      if (yysptr > yysbuf) return(*--yysptr);
  650. X      else {
  651. X          yytchar = getc(yyin);
  652. X***************
  653. X*** 93,99 ****
  654. X          else            return(yytchar);
  655. X      }
  656. X  }
  657. X! #endif    /* applec && !FLEX_SCANNER */
  658. X  
  659. X  %}
  660. X  %%
  661. X--- 93,99 ----
  662. X          else            return(yytchar);
  663. X      }
  664. X  }
  665. X! #endif    /* applec && !FLEX_SCANNER && !FLEXHACK_SCANNER */
  666. X  
  667. X  %}
  668. X  %%
  669. X***************
  670. X*** 140,146 ****
  671. X  void init_yyin( input_f )
  672. X  FILE *input_f;
  673. X  {
  674. X! #ifdef FLEX_SCANNER
  675. X      if (yyin)
  676. X          yyrestart(input_f);
  677. X      else
  678. X--- 140,146 ----
  679. X  void init_yyin( input_f )
  680. X  FILE *input_f;
  681. X  {
  682. X! #if defined(FLEX_SCANNER) || defined(FLEXHACK_SCANNER)
  683. X      if (yyin)
  684. X          yyrestart(input_f);
  685. X      else
  686. X*** /tmp/da23795    Mon Jul 12 18:15:50 1993
  687. X--- util/dgn_main.c    Tue Jul  6 15:33:07 1993
  688. X***************
  689. X*** 17,23 ****
  690. X  # endif
  691. X  #endif
  692. X  
  693. X! #if defined(MICRO) && !defined(AMIGA)
  694. X  # define WRMODE "w+b"
  695. X  #else
  696. X  # define WRMODE "w+"
  697. X--- 17,23 ----
  698. X  # endif
  699. X  #endif
  700. X  
  701. X! #if (defined(MICRO) && !defined(AMIGA)) || defined(THINK_C)
  702. X  # define WRMODE "w+b"
  703. X  #else
  704. X  # define WRMODE "w+"
  705. X***************
  706. X*** 60,66 ****
  707. X      char    infile[64], outfile[64];
  708. X      FILE    *fin, *fout;
  709. X      int    i, len;
  710. X! #ifdef MAC_THINKC5
  711. X      static char *mac_argv[] = {    "dgn_comp",    /* dummy argv[0] */
  712. X                  ":dat:dungeon.pdf"
  713. X                  };
  714. X--- 60,66 ----
  715. X      char    infile[64], outfile[64];
  716. X      FILE    *fin, *fout;
  717. X      int    i, len;
  718. X! #ifdef THINK_C
  719. X      static char *mac_argv[] = {    "dgn_comp",    /* dummy argv[0] */
  720. X                  ":dat:dungeon.pdf"
  721. X                  };
  722. X*** /tmp/da23803    Mon Jul 12 18:15:52 1993
  723. X--- util/lev_comp.l    Thu Jul  1 14:42:51 1993
  724. X***************
  725. X*** 1,5 ****
  726. X  %{
  727. X! /*    SCCS Id: @(#)lev_lex.c    3.1    93/05/27    */
  728. X  /*    Copyright (c) 1989 by Jean-Christophe Collet */
  729. X  /* NetHack may be freely redistributed.  See license for details. */
  730. X  
  731. X--- 1,5 ----
  732. X  %{
  733. X! /*    SCCS Id: @(#)lev_lex.c    3.1    93/06/17    */
  734. X  /*    Copyright (c) 1989 by Jean-Christophe Collet */
  735. X  /* NetHack may be freely redistributed.  See license for details. */
  736. X  
  737. X***************
  738. X*** 12,23 ****
  739. X  /* Most of these don't exist in flex, yywrap is macro and
  740. X   * yyunput is properly declared in flex.skel.
  741. X   */
  742. X! #ifndef FLEX_SCANNER
  743. X! int FDECL (yyback, (int *, int));
  744. X! int NDECL (yylook);
  745. X! int NDECL (yyinput);
  746. X! int NDECL (yywrap);
  747. X! int NDECL (yylex);
  748. X      /* Traditional lexes let yyunput() and yyoutput() default to int;
  749. X       * newer ones may declare them as void since they don't return
  750. X       * values.  For even more fun, the lex supplied as part of the
  751. X--- 12,23 ----
  752. X  /* Most of these don't exist in flex, yywrap is macro and
  753. X   * yyunput is properly declared in flex.skel.
  754. X   */
  755. X! #if !defined(FLEX_SCANNER) && !defined(FLEXHACK_SCANNER)
  756. X! int FDECL(yyback, (int *, int));
  757. X! int NDECL(yylook);
  758. X! int NDECL(yyinput);
  759. X! int NDECL(yywrap);
  760. X! int NDECL(yylex);
  761. X      /* Traditional lexes let yyunput() and yyoutput() default to int;
  762. X       * newer ones may declare them as void since they don't return
  763. X       * values.  For even more fun, the lex supplied as part of the
  764. X***************
  765. X*** 41,56 ****
  766. X  #  endif
  767. X  # endif
  768. X  # ifdef VOIDYYPUT
  769. X! void FDECL (yyunput, (int));
  770. X! void FDECL (yyoutput, (int));
  771. X  # else
  772. X! int FDECL (yyunput, (int));
  773. X! int FDECL (yyoutput, (int));
  774. X  # endif
  775. X! #endif    /* FLEX_SCANNER */
  776. X  
  777. X! void FDECL (init_yyin, (FILE *));
  778. X! void FDECL (init_yyout, (FILE *));
  779. X  
  780. X  #ifdef MICRO
  781. X  #undef exit
  782. X--- 41,56 ----
  783. X  #  endif
  784. X  # endif
  785. X  # ifdef VOIDYYPUT
  786. X! void FDECL(yyunput, (int));
  787. X! void FDECL(yyoutput, (int));
  788. X  # else
  789. X! int FDECL(yyunput, (int));
  790. X! int FDECL(yyoutput, (int));
  791. X  # endif
  792. X! #endif    /* !FLEX_SCANNER && !FLEXHACK_SCANNER */
  793. X  
  794. X! void FDECL(init_yyin, (FILE *));
  795. X! void FDECL(init_yyout, (FILE *));
  796. X  
  797. X  #ifdef MICRO
  798. X  #undef exit
  799. X***************
  800. X*** 79,85 ****
  801. X   *    This is a hack required by Michael Hamel to get things
  802. X   *    working on the Mac.
  803. X   */
  804. X! #if defined(applec) && !defined(FLEX_SCANNER)
  805. X  #undef input
  806. X  #undef unput
  807. X  #define unput(c) { yytchar = (c); if (yytchar == 10) yylineno--; *yysptr++ = yytchar; }
  808. X--- 79,85 ----
  809. X   *    This is a hack required by Michael Hamel to get things
  810. X   *    working on the Mac.
  811. X   */
  812. X! #if defined(applec) && !defined(FLEX_SCANNER) && !defined(FLEXHACK_SCANNER)
  813. X  #undef input
  814. X  #undef unput
  815. X  #define unput(c) { yytchar = (c); if (yytchar == 10) yylineno--; *yysptr++ = yytchar; }
  816. X***************
  817. X*** 88,95 ****
  818. X  # endif
  819. X  
  820. X  char
  821. X! input() {    /* Under MPW \n is chr(13)! Compensate for this. */
  822. X! 
  823. X      if (yysptr > yysbuf) return(*--yysptr);
  824. X      else {
  825. X          yytchar = getc(yyin);
  826. X--- 88,95 ----
  827. X  # endif
  828. X  
  829. X  char
  830. X! input()        /* Under MPW \n is chr(13)! Compensate for this. */
  831. X! {
  832. X      if (yysptr > yysbuf) return(*--yysptr);
  833. X      else {
  834. X          yytchar = getc(yyin);
  835. X***************
  836. X*** 101,107 ****
  837. X          else            return(yytchar);
  838. X      }
  839. X  }
  840. X! #endif    /* applec && !FLEX_SCANNER */
  841. X  
  842. X  %}
  843. X  %e 1500
  844. X--- 101,107 ----
  845. X          else            return(yytchar);
  846. X      }
  847. X  }
  848. X! #endif    /* applec && !FLEX_SCANNER && !FLEXHACK_SCANNER */
  849. X  
  850. X  %}
  851. X  %e 1500
  852. X***************
  853. X*** 121,127 ****
  854. X            extern int yy_more_len;
  855. X  
  856. X            yy_more_len = 0;
  857. X! #endif
  858. X            BEGIN(INITIAL);
  859. X            yylval.map = (char *) alloc(yyleng-5);
  860. X            strncpy(yylval.map, yytext,yyleng-6);
  861. X--- 121,127 ----
  862. X            extern int yy_more_len;
  863. X  
  864. X            yy_more_len = 0;
  865. X! #endif    /* FLEX23_BUG */
  866. X            BEGIN(INITIAL);
  867. X            yylval.map = (char *) alloc(yyleng-5);
  868. X            strncpy(yylval.map, yytext,yyleng-6);
  869. X***************
  870. X*** 247,253 ****
  871. X  void init_yyin( input_f )
  872. X  FILE *input_f;
  873. X  {
  874. X! #ifdef FLEX_SCANNER
  875. X      if (yyin)
  876. X          yyrestart(input_f);
  877. X      else
  878. X--- 247,253 ----
  879. X  void init_yyin( input_f )
  880. X  FILE *input_f;
  881. X  {
  882. X! #if defined(FLEX_SCANNER) || defined(FLEXHACK_SCANNER)
  883. X      if (yyin)
  884. X          yyrestart(input_f);
  885. X      else
  886. X*** /tmp/da23812    Mon Jul 12 18:15:54 1993
  887. X--- util/lev_comp.y    Tue Jul  6 15:45:41 1993
  888. X***************
  889. X*** 202,208 ****
  890. X                  char lbuf[20];
  891. X                  Strcpy(lbuf, $1);
  892. X                  Strcat(lbuf, LEV_EXT);
  893. X! #ifdef MAC_THINKC5
  894. X                  fout = open(lbuf, O_WRONLY|O_CREAT|O_BINARY);
  895. X  #else
  896. X                  fout = open(lbuf, O_WRONLY|O_CREAT|O_BINARY, OMASK);
  897. X--- 202,208 ----
  898. X                  char lbuf[20];
  899. X                  Strcpy(lbuf, $1);
  900. X                  Strcat(lbuf, LEV_EXT);
  901. X! #ifdef THINK_C
  902. X                  fout = open(lbuf, O_WRONLY|O_CREAT|O_BINARY);
  903. X  #else
  904. X                  fout = open(lbuf, O_WRONLY|O_CREAT|O_BINARY, OMASK);
  905. X***************
  906. X*** 237,243 ****
  907. X                  char lbuf[20];
  908. X                  Strcpy(lbuf, $1);
  909. X                  Strcat(lbuf, LEV_EXT);
  910. X! #ifdef MAC_THINKC5
  911. X                  fout = open(lbuf, O_WRONLY|O_CREAT|O_BINARY);
  912. X  #else
  913. X                  fout = open(lbuf, O_WRONLY|O_CREAT|O_BINARY, OMASK);
  914. X--- 237,243 ----
  915. X                  char lbuf[20];
  916. X                  Strcpy(lbuf, $1);
  917. X                  Strcat(lbuf, LEV_EXT);
  918. X! #ifdef THINK_C
  919. X                  fout = open(lbuf, O_WRONLY|O_CREAT|O_BINARY);
  920. X  #else
  921. X                  fout = open(lbuf, O_WRONLY|O_CREAT|O_BINARY, OMASK);
  922. X*** /tmp/da23820    Mon Jul 12 18:15:57 1993
  923. X--- util/lev_main.c    Mon Jul 12 13:38:34 1993
  924. X***************
  925. X*** 1,4 ****
  926. X! /*    SCCS Id: @(#)lev_main.c    3.1    93/05/27    */
  927. X  /*    Copyright (c) 1989 by Jean-Christophe Collet */
  928. X  /* NetHack may be freely redistributed.  See license for details. */
  929. X  
  930. X--- 1,4 ----
  931. X! /*    SCCS Id: @(#)lev_main.c    3.1    93/07/10    */
  932. X  /*    Copyright (c) 1989 by Jean-Christophe Collet */
  933. X  /* NetHack may be freely redistributed.  See license for details. */
  934. X  
  935. X***************
  936. X*** 81,88 ****
  937. X  
  938. X  static struct {
  939. X      const char *name;
  940. X!     short type;
  941. X! } trap_types[TRAPNUM] = {
  942. X      { "arrow",    ARROW_TRAP },
  943. X      { "dart",    DART_TRAP },
  944. X      { "falling rock", ROCKTRAP },
  945. X--- 81,88 ----
  946. X  
  947. X  static struct {
  948. X      const char *name;
  949. X!     int type;
  950. X! } trap_types[] = {
  951. X      { "arrow",    ARROW_TRAP },
  952. X      { "dart",    DART_TRAP },
  953. X      { "falling rock", ROCKTRAP },
  954. X***************
  955. X*** 102,110 ****
  956. X      { "statue",    STATUE_TRAP },
  957. X      { "magic",    MAGIC_TRAP },
  958. X      { "anti magic",    ANTI_MAGIC },
  959. X! #ifdef POLYSELF
  960. X!     { "polymorph",    POLY_TRAP },
  961. X  #endif
  962. X      { 0, 0 }
  963. X  };
  964. X  
  965. X--- 102,111 ----
  966. X      { "statue",    STATUE_TRAP },
  967. X      { "magic",    MAGIC_TRAP },
  968. X      { "anti magic",    ANTI_MAGIC },
  969. X! #ifndef POLYSELF
  970. X! #define POLY_TRAP NO_TRAP    /* this will result in a random trap */
  971. X  #endif
  972. X+     { "polymorph",    POLY_TRAP },
  973. X      { 0, 0 }
  974. X  };
  975. X  
  976. X***************
  977. X*** 192,198 ****
  978. X  {
  979. X      FILE *fin;
  980. X      int i;
  981. X! #ifdef MAC_THINKC5
  982. X      static char *mac_argv[] = {    "lev_comp",    /* dummy argv[0] */
  983. X                  ":dat:Arch.des",
  984. X                  ":dat:Barb.des",
  985. X--- 193,199 ----
  986. X  {
  987. X      FILE *fin;
  988. X      int i;
  989. X! #ifdef THINK_C
  990. X      static char *mac_argv[] = {    "lev_comp",    /* dummy argv[0] */
  991. X                  ":dat:Arch.des",
  992. X                  ":dat:Barb.des",
  993. X***************
  994. X*** 362,370 ****
  995. X      register int i;
  996. X  
  997. X      SpinCursor(3);
  998. X!     for(i=0; i < TRAPNUM - 1; i++)
  999. X          if(!strcmp(s,trap_types[i].name))
  1000. X!         return((int)trap_types[i].type);
  1001. X      return ERR;
  1002. X  }
  1003. X  
  1004. X--- 363,371 ----
  1005. X      register int i;
  1006. X  
  1007. X      SpinCursor(3);
  1008. X!     for (i=0; trap_types[i].name; i++)
  1009. X          if(!strcmp(s,trap_types[i].name))
  1010. X!         return trap_types[i].type;
  1011. X      return ERR;
  1012. X  }
  1013. X  
  1014. X*** /tmp/da23829    Mon Jul 12 18:16:00 1993
  1015. X--- util/makedefs.c    Tue Jul  6 15:33:15 1993
  1016. X***************
  1017. X*** 24,34 ****
  1018. X  # ifdef applec    /* Means the MPW compiler, I hope */
  1019. X  #  define MPWTOOL
  1020. X  #  include <CursorCtl.h>
  1021. X  # else        /* MAC without MPWTOOL */
  1022. X  #  define MACsansMPWTOOL
  1023. X  # endif
  1024. X- #include <string.h>
  1025. X- #include <ctype.h>
  1026. X  #endif /* MAC */
  1027. X  
  1028. X  #ifndef MPWTOOL
  1029. X--- 24,34 ----
  1030. X  # ifdef applec    /* Means the MPW compiler, I hope */
  1031. X  #  define MPWTOOL
  1032. X  #  include <CursorCtl.h>
  1033. X+ #  include <string.h>
  1034. X+ #  include <ctype.h>
  1035. X  # else        /* MAC without MPWTOOL */
  1036. X  #  define MACsansMPWTOOL
  1037. X  # endif
  1038. X  #endif /* MAC */
  1039. X  
  1040. X  #ifndef MPWTOOL
  1041. X***************
  1042. X*** 59,65 ****
  1043. X  #define WRMODE  "w+"
  1044. X  #define RDMODE  "r"
  1045. X  /* the quest.dat file is binary, while everything else is text... */
  1046. X! #if defined(MICRO) && !defined(AMIGA)
  1047. X  # define WRBMODE "w+b"
  1048. X  #else
  1049. X  # define WRBMODE "w+"
  1050. X--- 59,65 ----
  1051. X  #define WRMODE  "w+"
  1052. X  #define RDMODE  "r"
  1053. X  /* the quest.dat file is binary, while everything else is text... */
  1054. X! #if (defined(MICRO) && !defined(AMIGA)) || defined(THINK_C)
  1055. X  # define WRBMODE "w+b"
  1056. X  #else
  1057. X  # define WRBMODE "w+"
  1058. X*** /tmp/da22538    Mon Jul 12 17:58:31 1993
  1059. X--- sys/unix/Makefile.src    Fri Jul  9 15:33:33 1993
  1060. X***************
  1061. X*** 121,126 ****
  1062. X--- 121,127 ----
  1063. X  # Systos needs -lcurses16 if you use -mshort
  1064. X  # AIX 3.1 on RS/6000 likes -lcurses if TERMINFO defined in config.h
  1065. X  # and -ltermcap otherwise
  1066. X+ # Linux uses -ltermcap
  1067. X  #
  1068. X  # libraries for tty ports
  1069. X  # WINTTYLIB = -ltermcap
  1070. X***************
  1071. X*** 145,150 ****
  1072. X--- 146,155 ----
  1073. X  # DPX/2's also use the malloc(3x) routines.  In addition, if you are building
  1074. X  # for X11, you must include libinet.a.
  1075. X  # LIBS = -lmalloc -linet
  1076. X+ #
  1077. X+ # Linux NetHack uses some bsd style ioctl functions, thus it is necessary to
  1078. X+ # use the bsd libs.
  1079. X+ # LIBS = -lbsd
  1080. X  LIBS =
  1081. X  
  1082. X  # make NetHack
  1083. X*** /tmp/da22635    Mon Jul 12 17:58:59 1993
  1084. X--- sys/unix/unixunix.c    Wed Jul  7 16:57:08 1993
  1085. X***************
  1086. X*** 260,265 ****
  1087. X--- 260,268 ----
  1088. X  register char *s;
  1089. X  {
  1090. X      register char *lp;
  1091. X+ #if defined(SYSV) && !defined(AIX_31) && defined(COMPRESS)
  1092. X+     int i;
  1093. X+ #endif
  1094. X  
  1095. X      while((lp=index(s, '.')) || (lp=index(s, '/')) || (lp=index(s,' ')))
  1096. X          *lp = '_';
  1097. X***************
  1098. X*** 266,275 ****
  1099. X  #if defined(SYSV) && !defined(AIX_31)
  1100. X      /* avoid problems with 14 character file name limit */
  1101. X  # ifdef COMPRESS
  1102. X!     if(strlen(s) > 10)
  1103. X!         /* leave room for .e from error and .Z from compress
  1104. X!          * appended to save files */
  1105. X!         s[10] = '\0';
  1106. X  # else
  1107. X      if(strlen(s) > 11)
  1108. X          /* leave room for .nn appended to level files */
  1109. X--- 269,283 ----
  1110. X  #if defined(SYSV) && !defined(AIX_31)
  1111. X      /* avoid problems with 14 character file name limit */
  1112. X  # ifdef COMPRESS
  1113. X!     /* leave room for .e from error and .Z from compress appended to
  1114. X!      * save files */
  1115. X! #  ifdef COMPRESS_EXTENSION
  1116. X!     i = 12 - strlen(COMPRESS_EXTENSION);
  1117. X! #  else
  1118. X!     i = 10;        /* should never happen... */
  1119. X! #  endif
  1120. X!     if(strlen(s) > i)
  1121. X!         s[i] = '\0';
  1122. X  # else
  1123. X      if(strlen(s) > 11)
  1124. X          /* leave room for .nn appended to level files */
  1125. X*** /tmp/da23059    Mon Jul 12 18:00:48 1993
  1126. X--- win/tty/wintty.c    Wed Jul  7 17:11:30 1993
  1127. X***************
  1128. X*** 14,19 ****
  1129. X--- 14,22 ----
  1130. X  
  1131. X  #ifdef MAC
  1132. X  # define MICRO /* The Mac is a MICRO only for this file, not in general! */
  1133. X+ # ifdef THINK_C
  1134. X+    extern void msmsg(const char *,...);
  1135. X+ # endif
  1136. X  #endif
  1137. X  
  1138. X  #ifndef NO_TERMS
  1139. X***************
  1140. X*** 1361,1367 ****
  1141. X  #endif    /* ASCIIGRAPH && !NO_TERMS */
  1142. X  
  1143. X      return;
  1144. X! };
  1145. X  
  1146. X  #ifdef CLIPPING
  1147. X  void
  1148. X--- 1364,1370 ----
  1149. X  #endif    /* ASCIIGRAPH && !NO_TERMS */
  1150. X  
  1151. X      return;
  1152. X! }
  1153. X  
  1154. X  #ifdef CLIPPING
  1155. X  void
  1156. END_OF_FILE
  1157. if test 31010 -ne `wc -c <'patches03g'`; then
  1158.     echo shar: \"'patches03g'\" unpacked with wrong size!
  1159. fi
  1160. # end of 'patches03g'
  1161. echo shar: End of archive 16 \(of 18\).
  1162. cp /dev/null ark16isdone
  1163. MISSING=""
  1164. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ; do
  1165.     if test ! -f ark${I}isdone ; then
  1166.     MISSING="${MISSING} ${I}"
  1167.     fi
  1168. done
  1169. if test "${MISSING}" = "" ; then
  1170.     echo You have unpacked all 18 archives.
  1171.     echo "Now execute ./patchit3.sh"
  1172.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1173. else
  1174.     echo You still need to unpack the following archives:
  1175.     echo "        " ${MISSING}
  1176. fi
  1177. ##  End of shell archive.
  1178. exit 0
  1179.