home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume36 / chiaro / part18 < prev    next >
Encoding:
Text File  |  1993-03-25  |  53.1 KB  |  2,016 lines

  1. Newsgroups: comp.sources.misc
  2. From: jwbirdsa@picarefy.picarefy.com (James W. Birdsall)
  3. Subject: v36i088:  chiaro - Image Utilities, Part18/18
  4. Message-ID: <1993Mar26.203030.15344@sparky.imd.sterling.com>
  5. X-Md4-Signature: 306a8bfbc623cf87bb67b230f205186b
  6. Date: Fri, 26 Mar 1993 20:30:30 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: jwbirdsa@picarefy.picarefy.com (James W. Birdsall)
  10. Posting-number: Volume 36, Issue 88
  11. Archive-name: chiaro/part18
  12. Environment: UNIX, Sun, DECstation, 3B1
  13.  
  14. #! /bin/sh
  15. # This is a shell archive.  Remove anything before this line, then feed it
  16. # into a shell via "sh file" or similar.  To overwrite existing files,
  17. # type "sh file -c".
  18. # Contents:  src/blocproc.h src/chidisp.h src/chils.cfg src/chils.h
  19. #   src/colors.h src/comsrch.h src/gifcheck.h src/img.h
  20. #   src/patchlevel.h src/pbm.h src/pgm.h src/pnm.h src/ppm.h src/sr.h
  21. #   src/stdinarg.h src/token.h src/xbm.h templates/3b1.h
  22. #   templates/3b1.mk templates/README templates/linux-gcc.mk
  23. #   templates/sunos41cc.h templates/sunos41cc.mk
  24. #   templates/sunos41gcc.h templates/sunos41gcc.mk
  25. #   templates/template.mk templates/ultrix-cc.h templates/ultrix-cc.mk
  26. #   templates/ultrix-gcc.h templates/ultrix-gcc.mk
  27. # Wrapped by kent@sparky on Thu Mar 25 11:20:08 1993
  28. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin ; export PATH
  29. echo If this archive is complete, you will see the following message:
  30. echo '          "shar: End of archive 18 (of 18)."'
  31. if test -f 'src/blocproc.h' -a "${1}" != "-c" ; then 
  32.   echo shar: Will not clobber existing file \"'src/blocproc.h'\"
  33. else
  34.   echo shar: Extracting \"'src/blocproc.h'\" \(2217 characters\)
  35.   sed "s/^X//" >'src/blocproc.h' <<'END_OF_FILE'
  36. X/***************************************************************************
  37. X*   BLOCPROC.H                                                             *
  38. X*   HEADER FOR GIF block processing functions for GIFCHECK.                *
  39. X*   OS:      UNIX                                                          *
  40. X*                                                                          *
  41. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  42. X*                                                                          *
  43. X*   $Id: blocproc.h,v 1.2 1993/02/10 02:00:22 jwbirdsa Exp $
  44. X*
  45. X*   Contains function prototypes for functions in BLOCPROC.C, etc.         *
  46. X*                                                                          *
  47. X***************************************************************************/
  48. X
  49. X#ifndef DEPEND_H
  50. X    **** ERROR **** MUST INCLUDE DEPEND.H BEFORE BLOCPROC.H
  51. X#endif
  52. X#ifndef GIF_H
  53. X    **** ERROR **** MUST INCLUDE GIF.H BEFORE BLOCPROC.H
  54. X#endif
  55. X
  56. X#ifndef BLOCPROC_H
  57. X
  58. X#define BLOCPROC_H
  59. X
  60. X/*
  61. X** system includes <>
  62. X*/
  63. X
  64. X/*
  65. X** custom includes ""
  66. X*/
  67. X
  68. X/*
  69. X** local #defines
  70. X*/
  71. X
  72. X/* Grammar order state indices. */
  73. X
  74. X#define STATE_BEGIN          0
  75. X#define STATE_GCE            1
  76. X#define STATE_IMAGE          2
  77. X#define STATE_PTE            3
  78. X#define STATE_GENEXT         4
  79. X#define STATE_COMMENT        5
  80. X#define STATE_APP            6
  81. X#define STATE_TERM           7
  82. X
  83. X#define STATE_MAX            8
  84. X
  85. X
  86. X/*
  87. X** misc: copyright strings, version macros, etc.
  88. X*/
  89. X
  90. Xstatic char CONST RCSblocproc[] = "$Id: blocproc.h,v 1.2 1993/02/10 02:00:22 jwbirdsa Exp $";
  91. X
  92. X
  93. X/*
  94. X** typedefs
  95. X*/
  96. X
  97. X/*
  98. X** global variables
  99. X*/
  100. X
  101. X/*
  102. X** function prototypes
  103. X*/
  104. X
  105. X#ifdef  __STDC__
  106. X# define P_(s) s
  107. X#else
  108. X# define P_(s) ()
  109. X#endif
  110. X
  111. Xint global_printout P_((FB *infile, char *filename, GIF_LSD *lsd, long size));
  112. Xint image_printout P_((FB *infile, GIF_IMD *imd, int images, ULONG version, int gct_size));
  113. Xint pte_printout P_((FB *infile, int ptes));
  114. Xint gce_printout P_((FB *infile, int gces));
  115. Xint genext_printout P_((FB *infile, int extype, int gens));
  116. Xint comment_printout P_((FB *infile, int comments));
  117. Xint app_printout P_((FB *infile, int apps));
  118. X
  119. Xint follow P_((int state));
  120. X
  121. X#undef P_
  122. X
  123. X#endif /* BLOCPROC_H */
  124. X
  125. END_OF_FILE
  126.   if test 2217 -ne `wc -c <'src/blocproc.h'`; then
  127.     echo shar: \"'src/blocproc.h'\" unpacked with wrong size!
  128.   fi
  129.   # end of 'src/blocproc.h'
  130. fi
  131. if test -f 'src/chidisp.h' -a "${1}" != "-c" ; then 
  132.   echo shar: Will not clobber existing file \"'src/chidisp.h'\"
  133. else
  134.   echo shar: Extracting \"'src/chidisp.h'\" \(2126 characters\)
  135.   sed "s/^X//" >'src/chidisp.h' <<'END_OF_FILE'
  136. X/***************************************************************************
  137. X*   CHIDISP.H                                                              *
  138. X*   HEADER FOR CHILS display functions                                     *
  139. X*   OS:      UNIX                                                          *
  140. X*                                                                          *
  141. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  142. X*                                                                          *
  143. X*   $Id: chidisp.h,v 1.1 1993/03/09 00:32:50 jwbirdsa Exp $                                                                  *
  144. X*                                                                          *
  145. X*   Header for the display functions used by CHILS.                        *
  146. X*                                                                          *
  147. X***************************************************************************/
  148. X
  149. X#ifndef CHIDISP_H
  150. X
  151. X#define CHIDISP_H
  152. X
  153. X/*
  154. X** system includes <>
  155. X*/
  156. X
  157. X/*
  158. X** custom includes ""
  159. X*/
  160. X
  161. X/*
  162. X** #defines
  163. X*/
  164. X
  165. X/*
  166. X** misc: copyright strings, version macros, etc.
  167. X*/
  168. X
  169. Xstatic char CONST RCSchidisp[] = "$Id: chidisp.h,v 1.1 1993/03/09 00:32:50 jwbirdsa Exp $";
  170. X
  171. X
  172. X/*
  173. X** typedefs
  174. X*/
  175. X
  176. X/*
  177. X** global variables
  178. X*/
  179. X
  180. X/*
  181. X** function prototypes
  182. X*/
  183. X
  184. X#ifdef  __STDC__
  185. X# define P_(s) s
  186. X#else
  187. X# define P_(s) ()
  188. X#endif
  189. X
  190. XVOID getcols();
  191. XVOID setcols P_((int cols));
  192. X
  193. XVOID gif_display P_((GIF_LSD *gifinfo, FILE *infile, char *filename, long filesize));
  194. XVOID img_display P_((IMG_HDR *imginfo, char *filename, long filesize));
  195. XVOID jfif_display P_((JFIF_HDR *jfifinfo, char *filename, long filesize));
  196. XVOID sr_display P_((SR_HDR *srinfo, char *filename, long filesize));
  197. XVOID tga_display P_((TGA_HDR *tgainfo, char *filename, long filesize));
  198. XVOID pnm_display P_((PNM_HDR *pnminfo, char *filename, long filesize));
  199. XVOID xbm_display P_((XBM_HDR *xbminfo, char *filename, long filesize));
  200. XVOID bmp_display P_((BMP_HDR *bmpinfo, char *filename, long filesize));
  201. XVOID pcx_display P_((PCX_HDR *pcxinfo, char *filename, long filesize));
  202. X
  203. X#undef P_
  204. X
  205. X#endif /* CHIDISP_H */
  206. X
  207. END_OF_FILE
  208.   if test 2126 -ne `wc -c <'src/chidisp.h'`; then
  209.     echo shar: \"'src/chidisp.h'\" unpacked with wrong size!
  210.   fi
  211.   # end of 'src/chidisp.h'
  212. fi
  213. if test -f 'src/chils.cfg' -a "${1}" != "-c" ; then 
  214.   echo shar: Will not clobber existing file \"'src/chils.cfg'\"
  215. else
  216.   echo shar: Extracting \"'src/chils.cfg'\" \(205 characters\)
  217.   sed "s/^X//" >'src/chils.cfg' <<'END_OF_FILE'
  218. XGIF    gif,GIF
  219. XIMG    img,IMG
  220. XJFIF    jpg,JPG,jfif,JFIF
  221. XSUNRAS  im1,IM1,im8,IM8,im24,IM24,sun,SUN
  222. XTARGA   tga,TGA,targa,TARGA
  223. XPBM     pbm,PBM
  224. XPGM    pgm,PGM
  225. XPPM     ppm,PPM
  226. XXBM    xbm,XBM
  227. XBMP    bmp,BMP,dib,DIB
  228. XPCX    pcx,PCX
  229. END_OF_FILE
  230.   if test 205 -ne `wc -c <'src/chils.cfg'`; then
  231.     echo shar: \"'src/chils.cfg'\" unpacked with wrong size!
  232.   fi
  233.   # end of 'src/chils.cfg'
  234. fi
  235. if test -f 'src/chils.h' -a "${1}" != "-c" ; then 
  236.   echo shar: Will not clobber existing file \"'src/chils.h'\"
  237. else
  238.   echo shar: Extracting \"'src/chils.h'\" \(1515 characters\)
  239.   sed "s/^X//" >'src/chils.h' <<'END_OF_FILE'
  240. X/***************************************************************************
  241. X*   CHILS.H                                                                *
  242. X*   HEADER FOR stuff exported by CHILS.C                                   *
  243. X*   OS:      UNIX                                                          *
  244. X*                                                                          *
  245. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  246. X*                                                                          *
  247. X*   $Id: chils.h,v 1.0 1993/02/10 01:55:19 jwbirdsa Exp $                                                                  *
  248. X*                                                                          *
  249. X*   Defines stuff shared by CHILS.C and its support files.                 *
  250. X*                                                                          *
  251. X***************************************************************************/
  252. X
  253. X#ifndef CHILS_H
  254. X
  255. X#define CHILS_H
  256. X
  257. X/*
  258. X** system includes <>
  259. X*/
  260. X
  261. X/*
  262. X** custom includes ""
  263. X*/
  264. X
  265. X/*
  266. X** #defines
  267. X*/
  268. X
  269. X/* Global function flag values. */
  270. X
  271. X#define VERBOSE     0x0001        /* Show all files. */
  272. X#define FRONTEND    0x0002        /* Print only filenames. */
  273. X#define NAMETRUNC   0x0004        /* Truncate names. */
  274. X
  275. X
  276. X/*
  277. X** misc: copyright strings, version macros, etc.
  278. X*/
  279. X
  280. X/*
  281. X** typedefs
  282. X*/
  283. X
  284. X/*
  285. X** global variables
  286. X*/
  287. X
  288. Xextern int flags;                 /* Global function flags. */
  289. X
  290. X
  291. X/*
  292. X** function prototypes
  293. X*/
  294. X
  295. X
  296. X#endif /* CHILS_H */
  297. END_OF_FILE
  298.   if test 1515 -ne `wc -c <'src/chils.h'`; then
  299.     echo shar: \"'src/chils.h'\" unpacked with wrong size!
  300.   fi
  301.   # end of 'src/chils.h'
  302. fi
  303. if test -f 'src/colors.h' -a "${1}" != "-c" ; then 
  304.   echo shar: Will not clobber existing file \"'src/colors.h'\"
  305. else
  306.   echo shar: Extracting \"'src/colors.h'\" \(1681 characters\)
  307.   sed "s/^X//" >'src/colors.h' <<'END_OF_FILE'
  308. X/***************************************************************************
  309. X*   COLORS.H                                                               *
  310. X*   HEADER FOR color hashtable stuff.                                      *
  311. X*   OS:      UNIX                                                          *
  312. X*                                                                          *
  313. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  314. X*                                                                          *
  315. X*   $Id: colors.h,v 1.2 1993/02/10 02:02:40 jwbirdsa Exp $
  316. X*                                                                          *
  317. X***************************************************************************/
  318. X
  319. X#ifndef DEPEND_H
  320. X    **** ERROR **** MUST INCLUDE DEPEND.H BEFORE COLORS.H
  321. X#endif
  322. X#ifndef FORMATS_H
  323. X    **** ERROR **** MUST INCLUDE FORMATS.H BEFORE COLORS.H
  324. X#endif
  325. X
  326. X#ifndef COLORS_H
  327. X
  328. X#define COLORS_H
  329. X
  330. X/*
  331. X** system includes <>
  332. X*/
  333. X
  334. X/*
  335. X** custom includes ""
  336. X*/
  337. X
  338. X/*
  339. X** local #defines
  340. X*/
  341. X
  342. X#define HASHSIZE        256
  343. X
  344. X
  345. X/*
  346. X** misc: copyright strings, version macros, etc.
  347. X*/
  348. X
  349. Xstatic char CONST RCScolors[] = "$Id: colors.h,v 1.2 1993/02/10 02:02:40 jwbirdsa Exp $";
  350. X
  351. X
  352. X/*
  353. X** typedefs
  354. X*/
  355. X
  356. Xtypedef struct _colors0 {
  357. X    struct _colors0 *next;
  358. X    RGB_TRIPLET c;
  359. X    long instances;
  360. X} HASHIT;
  361. X
  362. X
  363. X/*
  364. X** global variables
  365. X*/
  366. X
  367. X/*
  368. X** function prototypes
  369. X*/
  370. X
  371. X#ifdef  __STDC__
  372. X# define P_(s) s
  373. X#else
  374. X# define P_(s) ()
  375. X#endif
  376. X
  377. Xint col_open();
  378. Xint col_enter P_((int handle, RGB_TRIPLET *newcol));
  379. Xint col_getstat P_((int handle, long *uniques, long *entries));
  380. Xint col_close P_((int handle, HASHIT **retlist));
  381. X
  382. X#undef P_
  383. X
  384. X#endif /* COLORS_H */
  385. X
  386. END_OF_FILE
  387.   if test 1681 -ne `wc -c <'src/colors.h'`; then
  388.     echo shar: \"'src/colors.h'\" unpacked with wrong size!
  389.   fi
  390.   # end of 'src/colors.h'
  391. fi
  392. if test -f 'src/comsrch.h' -a "${1}" != "-c" ; then 
  393.   echo shar: Will not clobber existing file \"'src/comsrch.h'\"
  394. else
  395.   echo shar: Extracting \"'src/comsrch.h'\" \(1471 characters\)
  396.   sed "s/^X//" >'src/comsrch.h' <<'END_OF_FILE'
  397. X/***************************************************************************
  398. X*   comsrch.H                                                              *
  399. X*   HEADER FOR complex search stuff.                                       *
  400. X*   OS:      UNIX                                                          *
  401. X*                                                                          *
  402. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  403. X*                                                                          *
  404. X*   $Id: comsrch.h,v 1.4 1993/03/06 01:34:58 jwbirdsa Exp $
  405. X*                                                                          *
  406. X***************************************************************************/
  407. X
  408. X#ifndef DEPEND_H
  409. X    **** ERROR **** MUST INCLUDE DEPEND.H BEFORE COMSRCH.H
  410. X#endif
  411. X
  412. X#ifndef COMSRCH_H
  413. X
  414. X#define COMSRCH_H
  415. X
  416. X/*
  417. X** system includes <>
  418. X*/
  419. X
  420. X/*
  421. X** custom includes ""
  422. X*/
  423. X
  424. X/*
  425. X** local #defines
  426. X*/
  427. X
  428. X/*
  429. X** misc: copyright strings, version macros, etc.
  430. X*/
  431. X
  432. Xstatic char CONST RCScomsrch[] = "$Id: comsrch.h,v 1.4 1993/03/06 01:34:58 jwbirdsa Exp $";
  433. X
  434. X
  435. X/*
  436. X** typedefs
  437. X*/
  438. X
  439. X/*
  440. X** global variables
  441. X*/
  442. X
  443. Xextern int com_errorflag;
  444. X
  445. X/*
  446. X** function prototypes
  447. X*/
  448. X
  449. X#ifdef  __STDC__
  450. X# define P_(s) s
  451. X#else
  452. X# define P_(s) ()
  453. X#endif
  454. X
  455. Xextern int comcheck P_((char *searchstr));
  456. Xextern int comsearch P_((ULONG height, ULONG width, ULONG colors, ULONG format, ULONG filelen, char *searchstr));
  457. X
  458. X#undef P_
  459. X
  460. X#endif /* COMSRCH_H */
  461. X
  462. END_OF_FILE
  463.   if test 1471 -ne `wc -c <'src/comsrch.h'`; then
  464.     echo shar: \"'src/comsrch.h'\" unpacked with wrong size!
  465.   fi
  466.   # end of 'src/comsrch.h'
  467. fi
  468. if test -f 'src/gifcheck.h' -a "${1}" != "-c" ; then 
  469.   echo shar: Will not clobber existing file \"'src/gifcheck.h'\"
  470. else
  471.   echo shar: Extracting \"'src/gifcheck.h'\" \(2060 characters\)
  472.   sed "s/^X//" >'src/gifcheck.h' <<'END_OF_FILE'
  473. X/***************************************************************************
  474. X*   GIFCHECK.H                                                             *
  475. X*   HEADER FOR some stuff related to GIFCHECK.                             *
  476. X*   OS:      UNIX                                                          *
  477. X*                                                                          *
  478. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  479. X*                                                                          *
  480. X*   $Id: gifcheck.h,v 1.1 1993/02/10 02:06:56 jwbirdsa Exp $
  481. X*                                                                          *
  482. X*   Contains #defines common to both GIFCHECK.C and BLOCPROC.C, etc.       *
  483. X*                                                                          *
  484. X***************************************************************************/
  485. X
  486. X#ifndef DEPEND_H
  487. X    **** ERROR **** MUST INCLUDE DEPEND.H BEFORE GIFCHECK.H
  488. X#endif
  489. X
  490. X#ifndef GIFCHECK_H
  491. X
  492. X#define GIFCHECK_H
  493. X
  494. X/*
  495. X** system includes <>
  496. X*/
  497. X
  498. X/*
  499. X** custom includes ""
  500. X*/
  501. X
  502. X/*
  503. X** local #defines
  504. X*/
  505. X
  506. X/* Returns from various functions. */
  507. X
  508. X#define EXIT_OK              0
  509. X#define EXIT_NOTGIF          1
  510. X#define EXIT_UNEOF           2
  511. X#define EXIT_ERROR           3
  512. X#define EXIT_STRIP           4
  513. X#define EXIT_STRIPM          5
  514. X
  515. X/* Display warning levels. */
  516. X
  517. X#define DLEVEL_NITPICK       2
  518. X#define DLEVEL_FASCINATING   1
  519. X#define DLEVEL_VIOLATION     0
  520. X#define DLEVEL_ANOMALY       0
  521. X
  522. X/* Errorlevel warning levels. */
  523. X
  524. X#define ELEVEL_NITPICK       5000   /* Some very large value. */
  525. X#define ELEVEL_FASCINATING   2
  526. X#define ELEVEL_VIOLATION     1
  527. X#define ELEVEL_ANOMALY       0
  528. X
  529. X
  530. X/*
  531. X** misc: copyright strings, version macros, etc.
  532. X*/
  533. X
  534. Xstatic char CONST RCSgifcheck[] = "$Id: gifcheck.h,v 1.1 1993/02/10 02:06:56 jwbirdsa Exp $";
  535. X
  536. X
  537. X/*
  538. X** typedefs
  539. X*/
  540. X
  541. X/*
  542. X** global variables
  543. X*/
  544. X
  545. X/*
  546. X** function prototypes
  547. X*/
  548. X
  549. X#ifdef  __STDC__
  550. X# define P_(s) s
  551. X#else
  552. X# define P_(s) ()
  553. X#endif
  554. X
  555. Xchar *errxlate P_((ULONG errcode));
  556. X
  557. X#undef P_
  558. X
  559. X#endif /* GIFCHECK_H */
  560. X
  561. END_OF_FILE
  562.   if test 2060 -ne `wc -c <'src/gifcheck.h'`; then
  563.     echo shar: \"'src/gifcheck.h'\" unpacked with wrong size!
  564.   fi
  565.   # end of 'src/gifcheck.h'
  566. fi
  567. if test -f 'src/img.h' -a "${1}" != "-c" ; then 
  568.   echo shar: Will not clobber existing file \"'src/img.h'\"
  569. else
  570.   echo shar: Extracting \"'src/img.h'\" \(2782 characters\)
  571.   sed "s/^X//" >'src/img.h' <<'END_OF_FILE'
  572. X/***************************************************************************
  573. X*   IMG.H                                                                  *
  574. X*   HEADER FOR IMG                                                         *
  575. X*   OS:      UNIX                                                          *
  576. X*                                                                          *
  577. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  578. X*                                                                          *
  579. X*   $Id: img.h,v 1.3 1993/02/10 01:37:41 jwbirdsa Exp $
  580. X*                                                                          *
  581. X*   This file specifies the external interface to the IMG module.          *
  582. X*                                                                          *
  583. X***************************************************************************/
  584. X
  585. X#ifndef DEPEND_H
  586. X    **** ERROR ****    MUST INCLUDE DEPEND.H BEFORE IMG.H
  587. X#endif
  588. X
  589. X#ifndef IMG_H
  590. X
  591. X#define IMG_H
  592. X
  593. X/*
  594. X** system includes <>
  595. X*/
  596. X
  597. X/*
  598. X** custom includes ""
  599. X*/
  600. X
  601. X#include "status.h"
  602. X
  603. X
  604. X/*
  605. X** local #defines
  606. X*/
  607. X
  608. X/* Version defines. */
  609. X
  610. X#define IMG_NOT            FORMAT_NOT
  611. X#define IMG_VER1           (FORMAT_IMG | MKLONG(1))
  612. X
  613. X/* Offsets in header. */
  614. X
  615. X#define IMG_HDR_VERS_OFF   0
  616. X#define IMG_HDR_HLEN_OFF   2
  617. X#define IMG_HDR_PLANES_OFF 4
  618. X#define IMG_HDR_PLEN_OFF   6
  619. X#define IMG_HDR_PWID_OFF   8
  620. X#define IMG_HDR_PHI_OFF    10
  621. X#define IMG_HDR_IMWID_OFF  12
  622. X#define IMG_HDR_IMHI_OFF   14
  623. X
  624. X#define IMG_HDR_LEN        16
  625. X
  626. X/* Error/status defines. */
  627. X
  628. X#define IMG_NOTIMG_E       MKERR(1, IMG_MODULE, ST_ERROR)
  629. X#define IMG_FILEERR_E      MKERR(2, IMG_MODULE, ST_ERROR)
  630. X#define IMG_UNEOF_E        MKERR(3, IMG_MODULE, ST_ERROR)
  631. X
  632. X
  633. X/*
  634. X** misc: copyright strings, version macros, etc.
  635. X*/
  636. X
  637. Xstatic char CONST RCSimg[] = "$Id: img.h,v 1.3 1993/02/10 01:37:41 jwbirdsa Exp $";
  638. X
  639. X
  640. X/*
  641. X** typedefs
  642. X*/
  643. X
  644. Xtypedef struct {
  645. X    ULONG version;                  /* the IMG format version */
  646. X    unsigned int headerlen;         /* the length of the header in words */
  647. X    unsigned int planes;            /* color planes, aka bits/pixel */
  648. X    unsigned int patternlen;        /* pattern length, bytes */
  649. X    unsigned int pixwid;            /* pixel width in microns */
  650. X    unsigned int pixhi;             /* pixel height in microns */
  651. X    unsigned int imwid;             /* image width, pixels */
  652. X    unsigned int imhi;              /* image height, pixels */
  653. X} IMG_HDR;
  654. X
  655. X
  656. X/*
  657. X** global variables
  658. X*/
  659. X
  660. X/*
  661. X** function prototypes
  662. X*/
  663. X
  664. X#ifdef  __STDC__
  665. X# define P_(s) s
  666. X#else
  667. X# define P_(s) ()
  668. X#endif
  669. X
  670. XULONG img_verify P_((char *filename, ULONG *version, char **exts));
  671. X
  672. XULONG img_getheader P_((FILE *infile, IMG_HDR *results));
  673. X
  674. Xchar *img_errstring P_((ULONG errcode));
  675. X
  676. X#undef P_
  677. X
  678. X#endif /* IMG_H */
  679. X
  680. END_OF_FILE
  681.   if test 2782 -ne `wc -c <'src/img.h'`; then
  682.     echo shar: \"'src/img.h'\" unpacked with wrong size!
  683.   fi
  684.   # end of 'src/img.h'
  685. fi
  686. if test -f 'src/patchlevel.h' -a "${1}" != "-c" ; then 
  687.   echo shar: Will not clobber existing file \"'src/patchlevel.h'\"
  688. else
  689.   echo shar: Extracting \"'src/patchlevel.h'\" \(21 characters\)
  690.   sed "s/^X//" >'src/patchlevel.h' <<'END_OF_FILE'
  691. X#define PATCHLEVEL 0
  692. END_OF_FILE
  693.   if test 21 -ne `wc -c <'src/patchlevel.h'`; then
  694.     echo shar: \"'src/patchlevel.h'\" unpacked with wrong size!
  695.   fi
  696.   # end of 'src/patchlevel.h'
  697. fi
  698. if test -f 'src/pbm.h' -a "${1}" != "-c" ; then 
  699.   echo shar: Will not clobber existing file \"'src/pbm.h'\"
  700. else
  701.   echo shar: Extracting \"'src/pbm.h'\" \(2172 characters\)
  702.   sed "s/^X//" >'src/pbm.h' <<'END_OF_FILE'
  703. X/***************************************************************************
  704. X*   PBM.H                                                                  *
  705. X*   HEADER FOR PBM within PNM                                              *
  706. X*   OS:      UNIX                                                          *
  707. X*                                                                          *
  708. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  709. X*                                                                          *
  710. X*   $Id: pbm.h,v 1.0 1993/02/10 01:44:01 jwbirdsa Exp $
  711. X*                                                                          *
  712. X*   This file specifies the external interface to the PBM section of the   *
  713. X*   PNM module.                                                            *
  714. X*                                                                          *
  715. X***************************************************************************/
  716. X
  717. X#ifndef DEPEND_H
  718. X    **** ERROR ****    MUST INCLUDE DEPEND.H BEFORE PBM.H
  719. X#endif
  720. X
  721. X#ifndef PBM_H
  722. X
  723. X#define PBM_H
  724. X
  725. X/*
  726. X** system includes <>
  727. X*/
  728. X
  729. X/*
  730. X** custom includes ""
  731. X*/
  732. X
  733. X#include "status.h"
  734. X
  735. X
  736. X/*
  737. X** local #defines
  738. X*/
  739. X
  740. X/* Version defines. */
  741. X
  742. X#define PBM_NOT            FORMAT_NOT
  743. X#define PBM_NORM           (FORMAT_PBM | MKLONG(1))
  744. X#define PBM_RAW            (FORMAT_PBM | MKLONG(2))
  745. X
  746. X/* PBM magic numbers. */
  747. X
  748. X#define PBM_MAGIC_NORM     '1'
  749. X#define PBM_MAGIC_RAW      '4'
  750. X
  751. X/* Error/status defines. */
  752. X
  753. X#define PBM_NOTPBM_E       MKERR(1, PBM_MODULE, ST_ERROR)
  754. X#define PBM_FILEERR_E      MKERR(2, PBM_MODULE, ST_ERROR)
  755. X#define PBM_UNEOF_E        MKERR(3, PBM_MODULE, ST_ERROR)
  756. X
  757. X
  758. X/*
  759. X** misc: copyright strings, version macros, etc.
  760. X*/
  761. X
  762. Xstatic char CONST RCSpbm[] = "$Id: pbm.h,v 1.0 1993/02/10 01:44:01 jwbirdsa Exp $";
  763. X
  764. X
  765. X/*
  766. X** typedefs
  767. X*/
  768. X
  769. Xtypedef PNM_HDR PBM_HDR;
  770. X
  771. X
  772. X/*
  773. X** global variables
  774. X*/
  775. X
  776. X/*
  777. X** function prototypes
  778. X*/
  779. X
  780. X#ifdef  __STDC__
  781. X# define P_(s) s
  782. X#else
  783. X# define P_(s) ()
  784. X#endif
  785. X
  786. XULONG pbm_verify P_((char *filename, ULONG *version, char **exts));
  787. X
  788. XULONG pbm_getheader P_((FILE *infile, PBM_HDR *results));
  789. X
  790. Xchar *pbm_errstring P_((ULONG errcode));
  791. X
  792. X#undef P_
  793. X
  794. X#endif /* PBM_H */
  795. X
  796. END_OF_FILE
  797.   if test 2172 -ne `wc -c <'src/pbm.h'`; then
  798.     echo shar: \"'src/pbm.h'\" unpacked with wrong size!
  799.   fi
  800.   # end of 'src/pbm.h'
  801. fi
  802. if test -f 'src/pgm.h' -a "${1}" != "-c" ; then 
  803.   echo shar: Will not clobber existing file \"'src/pgm.h'\"
  804. else
  805.   echo shar: Extracting \"'src/pgm.h'\" \(2172 characters\)
  806.   sed "s/^X//" >'src/pgm.h' <<'END_OF_FILE'
  807. X/***************************************************************************
  808. X*   PGM.H                                                                  *
  809. X*   HEADER FOR PGM within PNM                                              *
  810. X*   OS:      UNIX                                                          *
  811. X*                                                                          *
  812. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  813. X*                                                                          *
  814. X*   $Id: pgm.h,v 1.0 1993/02/10 01:44:01 jwbirdsa Exp $
  815. X*                                                                          *
  816. X*   This file specifies the external interface to the PGM section of the   *
  817. X*   PNM module.                                                            *
  818. X*                                                                          *
  819. X***************************************************************************/
  820. X
  821. X#ifndef DEPEND_H
  822. X    **** ERROR ****    MUST INCLUDE DEPEND.H BEFORE PGM.H
  823. X#endif
  824. X
  825. X#ifndef PGM_H
  826. X
  827. X#define PGM_H
  828. X
  829. X/*
  830. X** system includes <>
  831. X*/
  832. X
  833. X/*
  834. X** custom includes ""
  835. X*/
  836. X
  837. X#include "status.h"
  838. X
  839. X
  840. X/*
  841. X** local #defines
  842. X*/
  843. X
  844. X/* Version defines. */
  845. X
  846. X#define PGM_NOT            FORMAT_NOT
  847. X#define PGM_NORM           (FORMAT_PGM | MKLONG(1))
  848. X#define PGM_RAW            (FORMAT_PGM | MKLONG(2))
  849. X
  850. X/* PGM magic numbers. */
  851. X
  852. X#define PGM_MAGIC_NORM     '2'
  853. X#define PGM_MAGIC_RAW      '5'
  854. X
  855. X/* Error/status defines. */
  856. X
  857. X#define PGM_NOTPGM_E       MKERR(1, PGM_MODULE, ST_ERROR)
  858. X#define PGM_FILEERR_E      MKERR(2, PGM_MODULE, ST_ERROR)
  859. X#define PGM_UNEOF_E        MKERR(3, PGM_MODULE, ST_ERROR)
  860. X
  861. X
  862. X/*
  863. X** misc: copyright strings, version macros, etc.
  864. X*/
  865. X
  866. Xstatic char CONST RCSpgm[] = "$Id: pgm.h,v 1.0 1993/02/10 01:44:01 jwbirdsa Exp $";
  867. X
  868. X
  869. X/*
  870. X** typedefs
  871. X*/
  872. X
  873. Xtypedef PNM_HDR PGM_HDR;
  874. X
  875. X
  876. X/*
  877. X** global variables
  878. X*/
  879. X
  880. X/*
  881. X** function prototypes
  882. X*/
  883. X
  884. X#ifdef  __STDC__
  885. X# define P_(s) s
  886. X#else
  887. X# define P_(s) ()
  888. X#endif
  889. X
  890. XULONG pgm_verify P_((char *filename, ULONG *version, char **exts));
  891. X
  892. XULONG pgm_getheader P_((FILE *infile, PGM_HDR *results));
  893. X
  894. Xchar *pgm_errstring P_((ULONG errcode));
  895. X
  896. X#undef P_
  897. X
  898. X#endif /* PGM_H */
  899. X
  900. END_OF_FILE
  901.   if test 2172 -ne `wc -c <'src/pgm.h'`; then
  902.     echo shar: \"'src/pgm.h'\" unpacked with wrong size!
  903.   fi
  904.   # end of 'src/pgm.h'
  905. fi
  906. if test -f 'src/pnm.h' -a "${1}" != "-c" ; then 
  907.   echo shar: Will not clobber existing file \"'src/pnm.h'\"
  908. else
  909.   echo shar: Extracting \"'src/pnm.h'\" \(1756 characters\)
  910.   sed "s/^X//" >'src/pnm.h' <<'END_OF_FILE'
  911. X/***************************************************************************
  912. X*   PNM.H                                                                  *
  913. X*   HEADER FOR PNM                                                         *
  914. X*   OS:      UNIX                                                          *
  915. X*                                                                          *
  916. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  917. X*                                                                          *
  918. X*   $Id: pnm.h,v 1.0 1993/02/10 01:47:22 jwbirdsa Exp $
  919. X*                                                                          *
  920. X*   This file specifies the external interface to the PNM module.          *
  921. X*                                                                          *
  922. X***************************************************************************/
  923. X
  924. X#ifndef DEPEND_H
  925. X    **** ERROR ****    MUST INCLUDE DEPEND.H BEFORE PNM.H
  926. X#endif
  927. X
  928. X#ifndef PNM_H
  929. X
  930. X#define PNM_H
  931. X
  932. X/*
  933. X** system includes <>
  934. X*/
  935. X
  936. X/*
  937. X** custom includes ""
  938. X*/
  939. X
  940. X#include "status.h"
  941. X
  942. X
  943. X/*
  944. X** local #defines
  945. X*/
  946. X
  947. X/* PNM magic numbers. */
  948. X
  949. X#define PNM_MAGIC          'P'
  950. X
  951. X
  952. X/*
  953. X** misc: copyright strings, version macros, etc.
  954. X*/
  955. X
  956. Xstatic char CONST RCSpnm[] = "$Id: pnm.h,v 1.0 1993/02/10 01:47:22 jwbirdsa Exp $";
  957. X
  958. X
  959. X/*
  960. X** typedefs
  961. X*/
  962. X
  963. Xtypedef struct {
  964. X    ULONG version;                  /* the PNM format version */
  965. X    ULONG imwid;                    /* image width, pixels */
  966. X    ULONG imhi;                     /* image height, pixels */
  967. X    int maxpix;                     /* maximum pixel value */
  968. X} PNM_HDR;
  969. X
  970. X
  971. X/*
  972. X** global variables
  973. X*/
  974. X
  975. X/*
  976. X** function prototypes
  977. X*/
  978. X
  979. X
  980. X
  981. X#include "pbm.h"
  982. X#include "pgm.h"
  983. X#include "ppm.h"
  984. X
  985. X
  986. X#endif /* PNM_H */
  987. X
  988. END_OF_FILE
  989.   if test 1756 -ne `wc -c <'src/pnm.h'`; then
  990.     echo shar: \"'src/pnm.h'\" unpacked with wrong size!
  991.   fi
  992.   # end of 'src/pnm.h'
  993. fi
  994. if test -f 'src/ppm.h' -a "${1}" != "-c" ; then 
  995.   echo shar: Will not clobber existing file \"'src/ppm.h'\"
  996. else
  997.   echo shar: Extracting \"'src/ppm.h'\" \(2172 characters\)
  998.   sed "s/^X//" >'src/ppm.h' <<'END_OF_FILE'
  999. X/***************************************************************************
  1000. X*   PPM.H                                                                  *
  1001. X*   HEADER FOR PPM within PNM                                              *
  1002. X*   OS:      UNIX                                                          *
  1003. X*                                                                          *
  1004. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  1005. X*                                                                          *
  1006. X*   $Id: ppm.h,v 1.0 1993/02/10 01:44:01 jwbirdsa Exp $
  1007. X*                                                                          *
  1008. X*   This file specifies the external interface to the PPM section of the   *
  1009. X*   PNM module.                                                            *
  1010. X*                                                                          *
  1011. X***************************************************************************/
  1012. X
  1013. X#ifndef DEPEND_H
  1014. X    **** ERROR ****    MUST INCLUDE DEPEND.H BEFORE PPM.H
  1015. X#endif
  1016. X
  1017. X#ifndef PPM_H
  1018. X
  1019. X#define PPM_H
  1020. X
  1021. X/*
  1022. X** system includes <>
  1023. X*/
  1024. X
  1025. X/*
  1026. X** custom includes ""
  1027. X*/
  1028. X
  1029. X#include "status.h"
  1030. X
  1031. X
  1032. X/*
  1033. X** local #defines
  1034. X*/
  1035. X
  1036. X/* Version defines. */
  1037. X
  1038. X#define PPM_NOT            FORMAT_NOT
  1039. X#define PPM_NORM           (FORMAT_PPM | MKLONG(1))
  1040. X#define PPM_RAW            (FORMAT_PPM | MKLONG(2))
  1041. X
  1042. X/* PPM magic numbers. */
  1043. X
  1044. X#define PPM_MAGIC_NORM     '3'
  1045. X#define PPM_MAGIC_RAW      '6'
  1046. X
  1047. X/* Error/status defines. */
  1048. X
  1049. X#define PPM_NOTPPM_E       MKERR(1, PPM_MODULE, ST_ERROR)
  1050. X#define PPM_FILEERR_E      MKERR(2, PPM_MODULE, ST_ERROR)
  1051. X#define PPM_UNEOF_E        MKERR(3, PPM_MODULE, ST_ERROR)
  1052. X
  1053. X
  1054. X/*
  1055. X** misc: copyright strings, version macros, etc.
  1056. X*/
  1057. X
  1058. Xstatic char CONST RCSppm[] = "$Id: ppm.h,v 1.0 1993/02/10 01:44:01 jwbirdsa Exp $";
  1059. X
  1060. X
  1061. X/*
  1062. X** typedefs
  1063. X*/
  1064. X
  1065. Xtypedef PNM_HDR PPM_HDR;
  1066. X
  1067. X
  1068. X/*
  1069. X** global variables
  1070. X*/
  1071. X
  1072. X/*
  1073. X** function prototypes
  1074. X*/
  1075. X
  1076. X#ifdef  __STDC__
  1077. X# define P_(s) s
  1078. X#else
  1079. X# define P_(s) ()
  1080. X#endif
  1081. X
  1082. XULONG ppm_verify P_((char *filename, ULONG *version, char **exts));
  1083. X
  1084. XULONG ppm_getheader P_((FILE *infile, PPM_HDR *results));
  1085. X
  1086. Xchar *ppm_errstring P_((ULONG errcode));
  1087. X
  1088. X#undef P_
  1089. X
  1090. X#endif /* PPM_H */
  1091. X
  1092. END_OF_FILE
  1093.   if test 2172 -ne `wc -c <'src/ppm.h'`; then
  1094.     echo shar: \"'src/ppm.h'\" unpacked with wrong size!
  1095.   fi
  1096.   # end of 'src/ppm.h'
  1097. fi
  1098. if test -f 'src/sr.h' -a "${1}" != "-c" ; then 
  1099.   echo shar: Will not clobber existing file \"'src/sr.h'\"
  1100. else
  1101.   echo shar: Extracting \"'src/sr.h'\" \(2786 characters\)
  1102.   sed "s/^X//" >'src/sr.h' <<'END_OF_FILE'
  1103. X/***************************************************************************
  1104. X*   SR.H                                                                   *
  1105. X*   HEADER FOR SR (Sun Raster processor)                                   *
  1106. X*   OS:      UNIX                                                          *
  1107. X*                                                                          *
  1108. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  1109. X*                                                                          *
  1110. X*   $Id: sr.h,v 1.0 1993/02/10 01:41:04 jwbirdsa Exp $
  1111. X*                                                                          *
  1112. X*   This file specifies the external interface to the SR module.           *
  1113. X*                                                                          *
  1114. X***************************************************************************/
  1115. X
  1116. X#ifndef DEPEND_H
  1117. X    **** ERROR ****    MUST INCLUDE DEPEND.H BEFORE SR.H
  1118. X#endif
  1119. X
  1120. X#ifndef SR_H
  1121. X
  1122. X#define SR_H
  1123. X
  1124. X/*
  1125. X** system includes <>
  1126. X*/
  1127. X
  1128. X/*
  1129. X** custom includes ""
  1130. X*/
  1131. X
  1132. X#include "status.h"
  1133. X
  1134. X
  1135. X/*
  1136. X** local #defines
  1137. X*/
  1138. X
  1139. X/* Version defines. */
  1140. X
  1141. X#define SR_NOT               FORMAT_NOT
  1142. X#define SR_1                 (FORMAT_SR | MKLONG(1))
  1143. X
  1144. X/* Offsets in header. */
  1145. X
  1146. X#define SR_HDR_MAGIC_OFF     0
  1147. X#define SR_HDR_IMWID_OFF     4
  1148. X#define SR_HDR_IMHI_OFF      8
  1149. X#define SR_HDR_BITS_OFF      12
  1150. X#define SR_HDR_RLEN_OFF      16
  1151. X#define SR_HDR_TYPE_OFF      20
  1152. X#define SR_HDR_MTYPE_OFF     24
  1153. X#define SR_HDR_MLEN_OFF      28
  1154. X
  1155. X#define SR_HDR_LEN           32
  1156. X
  1157. X/* Sunraster magic number. */
  1158. X
  1159. X#define SR_MAGIC             MKLONG(0x59A66A95)
  1160. X
  1161. X/* Error/status defines. */
  1162. X
  1163. X#define SR_NOTSR_E           MKERR(1, SR_MODULE, ST_ERROR)
  1164. X#define SR_FILEERR_E         MKERR(2, SR_MODULE, ST_ERROR)
  1165. X#define SR_UNEOF_E           MKERR(3, SR_MODULE, ST_ERROR)
  1166. X
  1167. X
  1168. X/*
  1169. X** misc: copyright strings, version macros, etc.
  1170. X*/
  1171. X
  1172. Xstatic char CONST RCSsr[] = "$Id: sr.h,v 1.0 1993/02/10 01:41:04 jwbirdsa Exp $";
  1173. X
  1174. X
  1175. X/*
  1176. X** typedefs
  1177. X*/
  1178. X
  1179. Xtypedef struct {
  1180. X    ULONG imwid;                    /* image width, pixels */
  1181. X    ULONG imhi;                     /* image height, pixels */
  1182. X    int pixelbits;                  /* bits per pixel */
  1183. X    ULONG rasterlen;                /* length of the raster data, bytes */
  1184. X    unsigned int rastype;           /* raster type */
  1185. X    int maptype;                    /* type of colormap */
  1186. X    ULONG maplen;                   /* length of the colormap, bytes */
  1187. X} SR_HDR;
  1188. X
  1189. X
  1190. X/*
  1191. X** global variables
  1192. X*/
  1193. X
  1194. X/*
  1195. X** function prototypes
  1196. X*/
  1197. X
  1198. X#ifdef  __STDC__
  1199. X# define P_(s) s
  1200. X#else
  1201. X# define P_(s) ()
  1202. X#endif
  1203. X
  1204. XULONG sr_verify P_((char *filename, ULONG *version, char **exts));
  1205. X
  1206. XULONG sr_getheader P_((FILE *infile, SR_HDR *results));
  1207. X
  1208. Xchar *sr_errstring P_((ULONG errcode));
  1209. X
  1210. X#undef P_
  1211. X
  1212. X#endif /* SR_H */
  1213. X
  1214. END_OF_FILE
  1215.   if test 2786 -ne `wc -c <'src/sr.h'`; then
  1216.     echo shar: \"'src/sr.h'\" unpacked with wrong size!
  1217.   fi
  1218.   # end of 'src/sr.h'
  1219. fi
  1220. if test -f 'src/stdinarg.h' -a "${1}" != "-c" ; then 
  1221.   echo shar: Will not clobber existing file \"'src/stdinarg.h'\"
  1222. else
  1223.   echo shar: Extracting \"'src/stdinarg.h'\" \(1458 characters\)
  1224.   sed "s/^X//" >'src/stdinarg.h' <<'END_OF_FILE'
  1225. X/***************************************************************************
  1226. X*   STDINARG.H                                                             *
  1227. X*   HEADER FOR loading arguments from stdin                                *
  1228. X*   OS:      UNIX                                                          *
  1229. X*                                                                          *
  1230. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  1231. X*                                                                          *
  1232. X*   $Id: stdinarg.h,v 1.0 1993/02/10 01:55:19 jwbirdsa Exp $                                                                  *
  1233. X*                                                                          *
  1234. X*   Header for stdinarg.c.                                                 *
  1235. X*                                                                          *
  1236. X***************************************************************************/
  1237. X
  1238. X#ifndef STDINARG_H
  1239. X
  1240. X#define STDINARG_H
  1241. X
  1242. X/*
  1243. X** system includes <>
  1244. X*/
  1245. X
  1246. X/*
  1247. X** custom includes ""
  1248. X*/
  1249. X
  1250. X/*
  1251. X** #defines
  1252. X*/
  1253. X
  1254. X/*
  1255. X** misc: copyright strings, version macros, etc.
  1256. X*/
  1257. X
  1258. Xstatic char CONST RCSstdinarg[] = "$Id: stdinarg.h,v 1.0 1993/02/10 01:55:19 jwbirdsa Exp $";
  1259. X
  1260. X/*
  1261. X** typedefs
  1262. X*/
  1263. X
  1264. X/*
  1265. X** global variables
  1266. X*/
  1267. X
  1268. X/*
  1269. X** function prototypes
  1270. X*/
  1271. X
  1272. X#ifdef  __STDC__
  1273. X# define P_(s) s
  1274. X#else
  1275. X# define P_(s) ()
  1276. X#endif
  1277. X
  1278. Xchar **stdinload P_((int *argcc));
  1279. X
  1280. X#undef P_
  1281. X
  1282. X#endif /* STDINARG_H */
  1283. X
  1284. END_OF_FILE
  1285.   if test 1458 -ne `wc -c <'src/stdinarg.h'`; then
  1286.     echo shar: \"'src/stdinarg.h'\" unpacked with wrong size!
  1287.   fi
  1288.   # end of 'src/stdinarg.h'
  1289. fi
  1290. if test -f 'src/token.h' -a "${1}" != "-c" ; then 
  1291.   echo shar: Will not clobber existing file \"'src/token.h'\"
  1292. else
  1293.   echo shar: Extracting \"'src/token.h'\" \(1473 characters\)
  1294.   sed "s/^X//" >'src/token.h' <<'END_OF_FILE'
  1295. X/***************************************************************************
  1296. X*   TOKEN.H                                                                *
  1297. X*   HEADER FOR tokenizing functions within FM (Formats) module.            *
  1298. X*   OS:      UNIX                                                          *
  1299. X*                                                                          *
  1300. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  1301. X*                                                                          *
  1302. X*   $Id: token.h,v 1.0 1993/02/10 01:50:36 jwbirdsa Exp $                                                                  *
  1303. X*                                                                          *
  1304. X*   Header for fm_ tokenizing functions used by various format processors. *
  1305. X*                                                                          *
  1306. X***************************************************************************/
  1307. X
  1308. X#ifndef TOKEN_H
  1309. X
  1310. X#define TOKEN_H
  1311. X
  1312. X/*
  1313. X** system includes <>
  1314. X*/
  1315. X
  1316. X/*
  1317. X** custom includes ""
  1318. X*/
  1319. X
  1320. X/*
  1321. X** #defines
  1322. X*/
  1323. X
  1324. X/*
  1325. X** misc: copyright strings, version macros, etc.
  1326. X*/
  1327. X
  1328. Xstatic char CONST RCStoken[] = "$Id: token.h,v 1.0 1993/02/10 01:50:36 jwbirdsa Exp $";
  1329. X
  1330. X
  1331. X/*
  1332. X** typedefs
  1333. X*/
  1334. X
  1335. X/*
  1336. X** global variables
  1337. X*/
  1338. X
  1339. X/*
  1340. X** function prototypes
  1341. X*/
  1342. X
  1343. X#ifdef  __STDC__
  1344. X# define P_(s) s
  1345. X#else
  1346. X# define P_(s) ()
  1347. X#endif
  1348. X
  1349. Xchar *fm_token P_((FILE *infile));
  1350. XULONG fm_eol P_((FILE *infile));
  1351. X
  1352. X#undef P_
  1353. X
  1354. X#endif /* TOKEN_H */
  1355. END_OF_FILE
  1356.   if test 1473 -ne `wc -c <'src/token.h'`; then
  1357.     echo shar: \"'src/token.h'\" unpacked with wrong size!
  1358.   fi
  1359.   # end of 'src/token.h'
  1360. fi
  1361. if test -f 'src/xbm.h' -a "${1}" != "-c" ; then 
  1362.   echo shar: Will not clobber existing file \"'src/xbm.h'\"
  1363. else
  1364.   echo shar: Extracting \"'src/xbm.h'\" \(2079 characters\)
  1365.   sed "s/^X//" >'src/xbm.h' <<'END_OF_FILE'
  1366. X/***************************************************************************
  1367. X*   XBM.H                                                                  *
  1368. X*   HEADER FOR XBM                                                         *
  1369. X*   OS:      UNIX                                                          *
  1370. X*                                                                          *
  1371. X*   Copyright (c) 1993 James W. Birdsall. All Rights Reserved.             *
  1372. X*                                                                          *
  1373. X*   $Id: xbm.h,v 1.0 1993/02/10 01:45:28 jwbirdsa Exp $
  1374. X*                                                                          *
  1375. X*   This file specifies the external interface to the XBM module.          *
  1376. X*                                                                          *
  1377. X***************************************************************************/
  1378. X
  1379. X#ifndef DEPEND_H
  1380. X    **** ERROR ****    MUST INCLUDE DEPEND.H BEFORE XBM.H
  1381. X#endif
  1382. X
  1383. X#ifndef XBM_H
  1384. X
  1385. X#define XBM_H
  1386. X
  1387. X/*
  1388. X** system includes <>
  1389. X*/
  1390. X
  1391. X/*
  1392. X** custom includes ""
  1393. X*/
  1394. X
  1395. X#include "status.h"
  1396. X
  1397. X
  1398. X/*
  1399. X** local #defines
  1400. X*/
  1401. X
  1402. X/* Version defines. */
  1403. X
  1404. X#define XBM_NOT            FORMAT_NOT
  1405. X#define XBM_1              (FORMAT_XBM | MKLONG(1))
  1406. X
  1407. X/* Error/status defines. */
  1408. X
  1409. X#define XBM_NOTXBM_E       MKERR(1, XBM_MODULE, ST_ERROR)
  1410. X#define XBM_FILEERR_E      MKERR(2, XBM_MODULE, ST_ERROR)
  1411. X#define XBM_UNEOF_E        MKERR(3, XBM_MODULE, ST_ERROR)
  1412. X
  1413. X
  1414. X/*
  1415. X** misc: copyright strings, version macros, etc.
  1416. X*/
  1417. X
  1418. Xstatic char CONST RCSxbm[] = "$Id:";
  1419. X
  1420. X
  1421. X/*
  1422. X** typedefs
  1423. X*/
  1424. X
  1425. Xtypedef struct {
  1426. X    ULONG imwid;             /* image width, pixels */
  1427. X    ULONG imhi;              /* image height, pixels */
  1428. X    char *imname;            /* embedded name of image */
  1429. X} XBM_HDR;
  1430. X
  1431. X
  1432. X/*
  1433. X** global variables
  1434. X*/
  1435. X
  1436. X/*
  1437. X** function prototypes
  1438. X*/
  1439. X
  1440. X#ifdef  __STDC__
  1441. X# define P_(s) s
  1442. X#else
  1443. X# define P_(s) ()
  1444. X#endif
  1445. X
  1446. XULONG xbm_verify P_((char *filename, ULONG *version, char **exts));
  1447. X
  1448. XULONG xbm_getheader P_((FILE *infile, XBM_HDR *results));
  1449. X
  1450. Xchar *xbm_errstring P_((ULONG errcode));
  1451. X
  1452. X#undef P_
  1453. X
  1454. X#endif /* XBM_H */
  1455. X
  1456. END_OF_FILE
  1457.   if test 2079 -ne `wc -c <'src/xbm.h'`; then
  1458.     echo shar: \"'src/xbm.h'\" unpacked with wrong size!
  1459.   fi
  1460.   # end of 'src/xbm.h'
  1461. fi
  1462. if test -f 'templates/3b1.h' -a "${1}" != "-c" ; then 
  1463.   echo shar: Will not clobber existing file \"'templates/3b1.h'\"
  1464. else
  1465.   echo shar: Extracting \"'templates/3b1.h'\" \(594 characters\)
  1466.   sed "s/^X//" >'templates/3b1.h' <<'END_OF_FILE'
  1467. X/*
  1468. X** Configuration for AT&T 3B1 (7300, UnixPC) running OS 3.5 with stock
  1469. X** compiler.
  1470. X*/
  1471. X
  1472. X#define CONFIG_H
  1473. X
  1474. X/* no stdlib.h */
  1475. X#define NO_STDLIB
  1476. X
  1477. X/* cc doesn't support "const" type */
  1478. X#define NO_CONST
  1479. X
  1480. X/* ustat() function present */
  1481. X#define USTAT
  1482. X#define SYS_BLOCKSIZE       512
  1483. X
  1484. X/* no strdup() function */
  1485. X#define NO_STRDUP
  1486. X
  1487. X/* no directory-access functions */
  1488. X#define DIR_NODIR
  1489. X
  1490. X/* tempnam() function present */
  1491. X#define TEMPNAM
  1492. X
  1493. X/* no rename() function */
  1494. X#define NO_RENAME
  1495. X
  1496. X/* have TERMINFO and TERMCAP */
  1497. X#define HAS_TERMINFO
  1498. X#define TERMINFO_PATH       "/usr/bin/tput"
  1499. X#define HAS_TERMCAP
  1500. END_OF_FILE
  1501.   if test 594 -ne `wc -c <'templates/3b1.h'`; then
  1502.     echo shar: \"'templates/3b1.h'\" unpacked with wrong size!
  1503.   fi
  1504.   # end of 'templates/3b1.h'
  1505. fi
  1506. if test -f 'templates/3b1.mk' -a "${1}" != "-c" ; then 
  1507.   echo shar: Will not clobber existing file \"'templates/3b1.mk'\"
  1508. else
  1509.   echo shar: Extracting \"'templates/3b1.mk'\" \(206 characters\)
  1510.   sed "s/^X//" >'templates/3b1.mk' <<'END_OF_FILE'
  1511. X#
  1512. X# Makefile template for the AT&T 3B1 (7300, UnixPC) running OS 3.5 with
  1513. X# stock compiler.
  1514. X#
  1515. X
  1516. XCC    = cc
  1517. XCFLAGS    = -O -c
  1518. XCINC    =
  1519. X
  1520. XLINK    = cc
  1521. XLFLAGS    = 
  1522. XLLIBS    = -ltermcap
  1523. X
  1524. XO    = o
  1525. XEXE    =
  1526. X
  1527. XLN    = ln
  1528. XCP    = cp
  1529. XRM    = rm -f
  1530. X
  1531. END_OF_FILE
  1532.   if test 206 -ne `wc -c <'templates/3b1.mk'`; then
  1533.     echo shar: \"'templates/3b1.mk'\" unpacked with wrong size!
  1534.   fi
  1535.   # end of 'templates/3b1.mk'
  1536. fi
  1537. if test -f 'templates/README' -a "${1}" != "-c" ; then 
  1538.   echo shar: Will not clobber existing file \"'templates/README'\"
  1539. else
  1540.   echo shar: Extracting \"'templates/README'\" \(2194 characters\)
  1541.   sed "s/^X//" >'templates/README' <<'END_OF_FILE'
  1542. X   1) Look through the list at the bottom of this file. If you find your
  1543. Xsystem, or one sufficiently like it, copy the files listed into the src
  1544. Xdirectory like so:
  1545. X
  1546. X    cp whatever.mk ../src/template.mk
  1547. X    cp whatever.h  ../src/config.h
  1548. X
  1549. X   2) If you don't find any preset configuration files appropriate for your
  1550. Xsystem, copy the generic template files (template.mk and template.h) to the
  1551. Xsrc directory in the same manner as shown in (1), then edit them for your
  1552. Xsystem. Complete instructions for doing so are contained in the files
  1553. Xthemselves.
  1554. X
  1555. X
  1556. XKNOWN SYSTEMS
  1557. X-------------
  1558. X
  1559. Xfiles          system(s)                                  tested on
  1560. X-----          ---------                                  ---------
  1561. Xsunos41cc.*    Sun 3, Sun 4, or Sun SPARCstation running  Sun 3/60, SunOS 4.1.1,
  1562. X                SunOS 4.1(.x); may be suitable for SunOS   stock compiler
  1563. X                4.0(.x), probably not for SunOS 3.5
  1564. X
  1565. Xsunos41gcc.*   Sun 3, Sun 4, or Sun SPARCstation running  Sun 3/60, SunOS 4.1.1,
  1566. X                SunOS 4.1(.x), compiling with gcc; may     gcc 2.1, 2.2.2, and
  1567. X                be suitable for SunOS 4.0(.x), probably    2.3.3
  1568. X                not for SunOS 3.5
  1569. X
  1570. X3b1.*          AT&T 3B1 (aka 7300, UnixPC), running       AT&T 3B1, OS 3.5,
  1571. X                OS 3.5 or 3.51                             stock compiler
  1572. X
  1573. Xpcix.*         IBM PC/XT running PC/IX 1.0 or 1.1         IBM PC/XT, PC/IX 1.1,
  1574. X                                                           stock compiler
  1575. X
  1576. XWILL SOMEBODY PLEASE ADJUST THE FOLLOWING TO USE TERMINFO AND/OR TERMCAP?
  1577. X
  1578. Xultrix-gcc.*   Anything running Ultrix, compiling with    DECstation 5000,
  1579. X                gcc. Provided by Peter Couvares            Ultrix 4.2a, gcc 2.1
  1580. X                (pfcouvar@unix.amherst.edu).
  1581. X
  1582. Xultrix-cc.*    Anything running Ultrix.                   DECstation 5000,
  1583. X                Provided by Peter Couvares                 Ultrix 4.2a,
  1584. X                (pfcouvar@unix.amherst.edu).               stock compiler
  1585. X
  1586. Xlinux-gcc.*    Anything running Linux.                    386/486 box,
  1587. X                Provided by Peter Couvares                 Linux 0.99p5,
  1588. X                (pfcouvar@unix.amherst.edu).               gcc 2.3.3
  1589. X
  1590. END_OF_FILE
  1591.   if test 2194 -ne `wc -c <'templates/README'`; then
  1592.     echo shar: \"'templates/README'\" unpacked with wrong size!
  1593.   fi
  1594.   # end of 'templates/README'
  1595. fi
  1596. if test -f 'templates/linux-gcc.mk' -a "${1}" != "-c" ; then 
  1597.   echo shar: Will not clobber existing file \"'templates/linux-gcc.mk'\"
  1598. else
  1599.   echo shar: Extracting \"'templates/linux-gcc.mk'\" \(303 characters\)
  1600.   sed "s/^X//" >'templates/linux-gcc.mk' <<'END_OF_FILE'
  1601. X#
  1602. X# Makefile template for Linux 0.99p5 (and possibly others versions) using GCC.
  1603. X# Provided by Peter Couvares (pfcouvar@unix.amherst.edu).
  1604. X#
  1605. X
  1606. XCC    = gcc
  1607. XCFLAGS    = -O2 -c
  1608. XCINC    =
  1609. X
  1610. XLINK    = gcc
  1611. XLFLAGS    = -O2
  1612. XLOBJS    =
  1613. XLLIBS    =
  1614. X
  1615. XO    = o
  1616. XEXE    =
  1617. X
  1618. XLN    = ln
  1619. XCP    = cp
  1620. XRM    = rm -f
  1621. X
  1622. XPOST_CHILS    =
  1623. XPOST_GIFSTRIP    =
  1624. XPOST_GIFCHECK    =
  1625. X
  1626. END_OF_FILE
  1627.   if test 303 -ne `wc -c <'templates/linux-gcc.mk'`; then
  1628.     echo shar: \"'templates/linux-gcc.mk'\" unpacked with wrong size!
  1629.   fi
  1630.   # end of 'templates/linux-gcc.mk'
  1631. fi
  1632. if test -f 'templates/sunos41cc.h' -a "${1}" != "-c" ; then 
  1633.   echo shar: Will not clobber existing file \"'templates/sunos41cc.h'\"
  1634. else
  1635.   echo shar: Extracting \"'templates/sunos41cc.h'\" \(535 characters\)
  1636.   sed "s/^X//" >'templates/sunos41cc.h' <<'END_OF_FILE'
  1637. X/*
  1638. X** Configuration for SunOS 4.1 environment with stock compiler.
  1639. X*/
  1640. X
  1641. X#define CONFIG_H
  1642. X
  1643. X/* cc doesn't support "const" type */
  1644. X#define NO_CONST
  1645. X
  1646. X/* statfs() function present */
  1647. X#define STATFS
  1648. X
  1649. X/* readdir() et al. functions present */
  1650. X#define DIR_READDIR
  1651. X
  1652. X/* tempnam() function present */
  1653. X#define TEMPNAM
  1654. X
  1655. X/* only root can give away files with chown() */
  1656. X#define ROOT_CHOWN
  1657. X
  1658. X/* have utime.h */
  1659. X#define UTIME_HDR
  1660. X
  1661. X/* have TERMINFO and TERMCAP */
  1662. X#define HAS_TERMINFO
  1663. X#define TERMINFO_PATH            "/usr/5bin/tput"
  1664. X#define HAS_TERMCAP
  1665. END_OF_FILE
  1666.   if test 535 -ne `wc -c <'templates/sunos41cc.h'`; then
  1667.     echo shar: \"'templates/sunos41cc.h'\" unpacked with wrong size!
  1668.   fi
  1669.   # end of 'templates/sunos41cc.h'
  1670. fi
  1671. if test -f 'templates/sunos41cc.mk' -a "${1}" != "-c" ; then 
  1672.   echo shar: Will not clobber existing file \"'templates/sunos41cc.mk'\"
  1673. else
  1674.   echo shar: Extracting \"'templates/sunos41cc.mk'\" \(176 characters\)
  1675.   sed "s/^X//" >'templates/sunos41cc.mk' <<'END_OF_FILE'
  1676. X#
  1677. X# Makefile template for SunOS 4.1 using the stock compiler.
  1678. X#
  1679. X
  1680. XCC    = cc
  1681. XCFLAGS    = -O -c
  1682. XCINC    =
  1683. X
  1684. XLINK    = cc
  1685. XLFLAGS    = 
  1686. XLLIBS    = -ltermcap
  1687. X
  1688. XO    = o
  1689. XEXE    =
  1690. X
  1691. XLN    = ln
  1692. XCP    = cp
  1693. XRM    = rm -f
  1694. X
  1695. END_OF_FILE
  1696.   if test 176 -ne `wc -c <'templates/sunos41cc.mk'`; then
  1697.     echo shar: \"'templates/sunos41cc.mk'\" unpacked with wrong size!
  1698.   fi
  1699.   # end of 'templates/sunos41cc.mk'
  1700. fi
  1701. if test -f 'templates/sunos41gcc.h' -a "${1}" != "-c" ; then 
  1702.   echo shar: Will not clobber existing file \"'templates/sunos41gcc.h'\"
  1703. else
  1704.   echo shar: Extracting \"'templates/sunos41gcc.h'\" \(472 characters\)
  1705.   sed "s/^X//" >'templates/sunos41gcc.h' <<'END_OF_FILE'
  1706. X/*
  1707. X** Configuration for SunOS 4.1 environment with GCC 2.x.
  1708. X*/
  1709. X
  1710. X#define CONFIG_H
  1711. X
  1712. X/* statfs() function present */
  1713. X#define STATFS
  1714. X
  1715. X/* readdir() et al. functions present */
  1716. X#define DIR_READDIR
  1717. X
  1718. X/* tempnam() function present */
  1719. X#define TEMPNAM
  1720. X
  1721. X/* only root can give away files with chown() */
  1722. X#define ROOT_CHOWN
  1723. X
  1724. X/* have utime.h */
  1725. X#define UTIME_HDR
  1726. X
  1727. X/* have TERMINFO and TERMCAP */
  1728. X#define HAS_TERMINFO
  1729. X#define TERMINFO_PATH            "/usr/5bin/tput"
  1730. X#define HAS_TERMCAP
  1731. END_OF_FILE
  1732.   if test 472 -ne `wc -c <'templates/sunos41gcc.h'`; then
  1733.     echo shar: \"'templates/sunos41gcc.h'\" unpacked with wrong size!
  1734.   fi
  1735.   # end of 'templates/sunos41gcc.h'
  1736. fi
  1737. if test -f 'templates/sunos41gcc.mk' -a "${1}" != "-c" ; then 
  1738.   echo shar: Will not clobber existing file \"'templates/sunos41gcc.mk'\"
  1739. else
  1740.   echo shar: Extracting \"'templates/sunos41gcc.mk'\" \(164 characters\)
  1741.   sed "s/^X//" >'templates/sunos41gcc.mk' <<'END_OF_FILE'
  1742. X#
  1743. X# Makefile template for SunOS 4.1 using GCC.
  1744. X#
  1745. X
  1746. XCC    = gcc
  1747. XCFLAGS    = -O2 -c
  1748. XCINC    =
  1749. X
  1750. XLINK    = gcc
  1751. XLFLAGS    = 
  1752. XLLIBS    = -ltermcap
  1753. X
  1754. XO    = o
  1755. XEXE    =
  1756. X
  1757. XLN    = ln
  1758. XCP    = cp
  1759. XRM    = rm -f
  1760. X
  1761. END_OF_FILE
  1762.   if test 164 -ne `wc -c <'templates/sunos41gcc.mk'`; then
  1763.     echo shar: \"'templates/sunos41gcc.mk'\" unpacked with wrong size!
  1764.   fi
  1765.   # end of 'templates/sunos41gcc.mk'
  1766. fi
  1767. if test -f 'templates/template.mk' -a "${1}" != "-c" ; then 
  1768.   echo shar: Will not clobber existing file \"'templates/template.mk'\"
  1769. else
  1770.   echo shar: Extracting \"'templates/template.mk'\" \(1953 characters\)
  1771.   sed "s/^X//" >'templates/template.mk' <<'END_OF_FILE'
  1772. X#
  1773. X# This is the generic makefile template. It should work on most UNIX systems.
  1774. X#
  1775. X
  1776. X# The name of the compiler. On most systems, the stock compiler is cc.
  1777. XCC    = cc
  1778. X# The GNU C compiler is fairly widespread; if it is installed on your
  1779. X# system and you wish to use it, use the name gcc instead.
  1780. X#CC    = gcc
  1781. X
  1782. X# Flags for the compiler. You MUST include a flag which causes the compiler
  1783. X# to stop after creating the object file; this flag is "-c" on most
  1784. X# compilers. Other flags are optional. The optimize flag ("-O" on most
  1785. X# compilers) is recommended.
  1786. XCFLAGS    = -O -c
  1787. X
  1788. X# Include flags for the compiler. If your compiler requires special include
  1789. X# files which are not found by default, put whatever options are necessary
  1790. X# here.
  1791. XCINC    =
  1792. X
  1793. X
  1794. X# The name of the linker. On most systems, the compiler can also
  1795. X# be used as a linker.
  1796. XLINK    = $(CC)
  1797. X
  1798. X# Flags for the linker.
  1799. XLFLAGS    = 
  1800. X
  1801. X# Objects. If your compiler requires special objects (such as startup
  1802. X# objects) which are not found by default, put whatever filenames or
  1803. X# options are necessary here.
  1804. XLOBJS    =
  1805. X
  1806. X# Libraries. If your compiler requires special libraries which are not
  1807. X# found by default, put whatever filenames or options are necessary here.
  1808. X# "-ltermcap" is usually needed if you have defined HAS_TERMCAP in the
  1809. X# configuration header.
  1810. XLLIBS    =
  1811. X#LLIBS    = -ltermcap
  1812. X
  1813. X
  1814. X# The standard extension for object files. On most systems, this is "o".
  1815. XO    = o
  1816. X
  1817. X# The standard extension for executables, with the leading period. On
  1818. X# most systems, executables have no extension by default.
  1819. XEXE    =
  1820. X#EXE    = .exe
  1821. X
  1822. X
  1823. X# The command to link one file to another name. If your system does not
  1824. X# support links, supply the copy command instead.
  1825. XLN    = ln
  1826. X
  1827. X# The command to copy a file.
  1828. XCP    = cp
  1829. X
  1830. X# The command to remove a file, suppressing an error status if the file
  1831. X# does not exist, and forcing a remove of read-only files.
  1832. XRM    = rm -f
  1833. X
  1834. X
  1835. X# Commands to be run after each program is linked.
  1836. XPOST_CHILS    =
  1837. XPOST_GIFSTRIP    =
  1838. XPOST_GIFCHECK    =
  1839. X
  1840. END_OF_FILE
  1841.   if test 1953 -ne `wc -c <'templates/template.mk'`; then
  1842.     echo shar: \"'templates/template.mk'\" unpacked with wrong size!
  1843.   fi
  1844.   # end of 'templates/template.mk'
  1845. fi
  1846. if test -f 'templates/ultrix-cc.h' -a "${1}" != "-c" ; then 
  1847.   echo shar: Will not clobber existing file \"'templates/ultrix-cc.h'\"
  1848. else
  1849.   echo shar: Extracting \"'templates/ultrix-cc.h'\" \(651 characters\)
  1850.   sed "s/^X//" >'templates/ultrix-cc.h' <<'END_OF_FILE'
  1851. X/*
  1852. X** Configuration for Ultrix 4.2a (and possibly other versions) with the
  1853. X** stock compiler. Provided by Peter Couvares (pfcouvar@unix.amherst.edu).
  1854. X*/
  1855. X
  1856. X#define CONFIG_H
  1857. X
  1858. X/* statfs() function present, returns in struct fsdata */
  1859. X#define STATFS_FSDATA
  1860. X
  1861. X/* no strdup() function */
  1862. X#define NO_STRDUP
  1863. X
  1864. X/* readdir() et al. functions present */
  1865. X#define DIR_READDIR
  1866. X
  1867. X/* tempnam() function present */
  1868. X#define TEMPNAM
  1869. X
  1870. X/* have utime.h */
  1871. X#define UTIME_HDR
  1872. X
  1873. X/* strings.h instead of string.h */
  1874. X#define STRING_PLURAL
  1875. X
  1876. X/* Only superuser can give away a file with chown() */
  1877. X#define ROOT_CHOWN
  1878. X
  1879. X/* Doesn't recognize the type modifier "const" */
  1880. X#define NO_CONST
  1881. X
  1882. END_OF_FILE
  1883.   if test 651 -ne `wc -c <'templates/ultrix-cc.h'`; then
  1884.     echo shar: \"'templates/ultrix-cc.h'\" unpacked with wrong size!
  1885.   fi
  1886.   # end of 'templates/ultrix-cc.h'
  1887. fi
  1888. if test -f 'templates/ultrix-cc.mk' -a "${1}" != "-c" ; then 
  1889.   echo shar: Will not clobber existing file \"'templates/ultrix-cc.mk'\"
  1890. else
  1891.   echo shar: Extracting \"'templates/ultrix-cc.mk'\" \(311 characters\)
  1892.   sed "s/^X//" >'templates/ultrix-cc.mk' <<'END_OF_FILE'
  1893. X#
  1894. X# Makefile template for Ultrix 4.2a (and possibly others versions) using the
  1895. X# stock compiler. Provided by Peter Couvares (pfcouvar@unix.amherst.edu).
  1896. X#
  1897. X
  1898. XCC    = cc
  1899. XCFLAGS    = -O2 -c
  1900. XCINC    =
  1901. X
  1902. XLINK    = cc
  1903. XLFLAGS    =
  1904. XLOBJS    =
  1905. XLLIBS    =
  1906. X
  1907. XO    = o
  1908. XEXE    =
  1909. X
  1910. XLN    = ln
  1911. XCP    = cp
  1912. XRM    = rm -f
  1913. X
  1914. XPOST_CHILS    =
  1915. XPOST_GIFSTRIP    =
  1916. XPOST_GIFCHECK    =
  1917. X
  1918. END_OF_FILE
  1919.   if test 311 -ne `wc -c <'templates/ultrix-cc.mk'`; then
  1920.     echo shar: \"'templates/ultrix-cc.mk'\" unpacked with wrong size!
  1921.   fi
  1922.   # end of 'templates/ultrix-cc.mk'
  1923. fi
  1924. if test -f 'templates/ultrix-gcc.h' -a "${1}" != "-c" ; then 
  1925.   echo shar: Will not clobber existing file \"'templates/ultrix-gcc.h'\"
  1926. else
  1927.   echo shar: Extracting \"'templates/ultrix-gcc.h'\" \(568 characters\)
  1928.   sed "s/^X//" >'templates/ultrix-gcc.h' <<'END_OF_FILE'
  1929. X/*
  1930. X** Configuration for Ultrix 4.2a (and possibly other versions) with GCC.
  1931. X** Provided by Peter Couvares (pfcouvar@unix.amherst.edu).
  1932. X*/
  1933. X
  1934. X#define CONFIG_H
  1935. X
  1936. X/* statfs() function present, returns in struct fsdata */
  1937. X#define STATFS_FSDATA
  1938. X
  1939. X/* no strdup() function */
  1940. X#define NO_STRDUP
  1941. X
  1942. X/* readdir() et al. functions present */
  1943. X#define DIR_READDIR
  1944. X
  1945. X/* tempnam() function present */
  1946. X#define TEMPNAM
  1947. X
  1948. X/* have utime.h */
  1949. X#define UTIME_HDR
  1950. X
  1951. X/* strings.h instead of string.h */
  1952. X#define STRING_PLURAL
  1953. X
  1954. X/* Only superuser can give away a file with chown() */
  1955. X#define ROOT_CHOWN
  1956. X
  1957. END_OF_FILE
  1958.   if test 568 -ne `wc -c <'templates/ultrix-gcc.h'`; then
  1959.     echo shar: \"'templates/ultrix-gcc.h'\" unpacked with wrong size!
  1960.   fi
  1961.   # end of 'templates/ultrix-gcc.h'
  1962. fi
  1963. if test -f 'templates/ultrix-gcc.mk' -a "${1}" != "-c" ; then 
  1964.   echo shar: Will not clobber existing file \"'templates/ultrix-gcc.mk'\"
  1965. else
  1966.   echo shar: Extracting \"'templates/ultrix-gcc.mk'\" \(301 characters\)
  1967.   sed "s/^X//" >'templates/ultrix-gcc.mk' <<'END_OF_FILE'
  1968. X#
  1969. X# Makefile template for Ultrix 4.2a (and possibly others versions) using GCC.
  1970. X# Provided by Peter Couvares (pfcouvar@unix.amherst.edu).
  1971. X#
  1972. X
  1973. XCC    = gcc
  1974. XCFLAGS    = -O2 -s -c
  1975. XCINC    =
  1976. X
  1977. XLINK    = gcc
  1978. XLFLAGS    =
  1979. XLOBJS    =
  1980. XLLIBS    =
  1981. X
  1982. XO    = o
  1983. XEXE    =
  1984. X
  1985. XLN    = ln
  1986. XCP    = cp
  1987. XRM    = rm -f
  1988. X
  1989. XPOST_CHILS    =
  1990. XPOST_GIFSTRIP    =
  1991. XPOST_GIFCHECK    =
  1992. X
  1993. END_OF_FILE
  1994.   if test 301 -ne `wc -c <'templates/ultrix-gcc.mk'`; then
  1995.     echo shar: \"'templates/ultrix-gcc.mk'\" unpacked with wrong size!
  1996.   fi
  1997.   # end of 'templates/ultrix-gcc.mk'
  1998. fi
  1999. echo shar: End of archive 18 \(of 18\).
  2000. cp /dev/null ark18isdone
  2001. MISSING=""
  2002. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ; do
  2003.     if test ! -f ark${I}isdone ; then
  2004.     MISSING="${MISSING} ${I}"
  2005.     fi
  2006. done
  2007. if test "${MISSING}" = "" ; then
  2008.     echo You have unpacked all 18 archives.
  2009.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  2010. else
  2011.     echo You still must unpack the following archives:
  2012.     echo "        " ${MISSING}
  2013. fi
  2014. exit 0
  2015. exit 0 # Just in case...
  2016.