home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Utilities / DVIM72-Mac 1.9.6 / source / GBLPROCS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-14  |  10.0 KB  |  511 lines  |  [TEXT/R*ch]

  1. /* -*-C-*- gblprocs.h */
  2. /*-->gblprocs*/
  3. /**********************************************************************/
  4. /****************************** gblprocs ******************************/
  5. /**********************************************************************/
  6.  
  7. /**********************************************************************/
  8. /*************************  Global Procedures  ************************/
  9. /**********************************************************************/
  10.  
  11. #if    ANSI_PROTOTYPES
  12. void    abortrun(int);
  13. float    actfact(UNSIGN32);
  14. float    actfact_res(UNSIGN32);
  15. void    alldone(void);
  16.  
  17. #if OS_THINKC
  18. #else
  19. #if    ANSI_LIBRARY
  20. double    atof(const char *);
  21. int    atoi(const char *);
  22. #else
  23. double    atof(char *);
  24. int    atoi(char *);
  25. #endif /* ANSI_LIBRARY */
  26. #endif /* OS_THINKC */
  27.  
  28. #if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT)
  29. void    bopact();
  30. #endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT) */
  31.  
  32. int    chargf(BYTE,void(*)());
  33. int    charpk(BYTE,void(*)(BYTE, UNSIGN16));
  34. int    charpxl(BYTE,void(*)());
  35.  
  36. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  37. #else
  38. void    clrbmap(void);
  39. #endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  40.  
  41. void    clrrow(void);
  42.  
  43. #if    POSTSCRIPT
  44. void    cppsfile(void);
  45. #endif /* POSTSCRIPT */
  46.  
  47. #if THINK_C
  48. #else
  49. #if    ANSI_LIBRARY
  50. char *ctime(time_t *timer);
  51. #else
  52. char*    ctime(long *);
  53. #endif /* ANSI_LIBRARY */
  54. #endif /* THINK_C */
  55.  
  56. char*    cuserid(char *);
  57. void    dbgopen(FILE*, char*, char*);
  58. #if OS_THINKC
  59. void    devinit(void);
  60. #else
  61. void    devinit(int, char *[]);
  62. #endif /* OS_THINKC */
  63. void    devterm(void);
  64.  
  65. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  66. #else
  67. void    dispchar(BYTE);
  68. #endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  69.  
  70. #if OS_THINKC
  71. void    dvifile(char *);
  72. #else
  73. void    dvifile(int, char *[], char *);
  74. #endif
  75. void    dviinit(char *);
  76. void    dviterm(void);
  77.  
  78. #if    POSTSCRIPT
  79. void    emitchar(BYTE);
  80. #endif /* POSTSCRIPT */
  81.  
  82. #if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT)
  83. void    eopact();
  84. #endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT) */
  85.  
  86. void    EXIT(int);
  87. void    fatal(char *);
  88. void    fillrect(COORDINATE, COORDINATE, COORDINATE, COORDINATE);
  89. void    findpost(void);
  90. COORDINATE    fixpos(COORDINATE, INT32, float);
  91. void    fontfile(char *[MAXFORMATS],char *,char *,int);
  92. BOOLEAN    fontsub(char *,int *,char *,int);
  93.  
  94. #if OS_THINKC
  95. #else
  96. #if    ANSI_LIBRARY
  97. void    free(void *);
  98. #else
  99. void    free(char *);
  100. #endif /* ANSI_LIBRARY */
  101. #endif /* OS_THINKC */
  102.  
  103. int    FSEEK(FILE *,long,int);
  104. void    getbmap(void);
  105. void    getbytes(FILE *, char *, BYTE);
  106.  
  107. #if OS_THINKC
  108. char* GETENV(char *);
  109. #else
  110. #if    ANSI_LIBRARY
  111. char*    GETENV(const char *);
  112. #else
  113. char*    GETENV(char *);
  114. #endif /* ANSI_LIBRARY */
  115. #endif /* OS_THINKC */
  116.  
  117. void    getfntdf(void);
  118.  
  119. #if    OS_VAXVMS
  120. char*    getjpi(int);
  121. #endif
  122.  
  123. char*    getlogin(void);
  124. void    getpgtab(long);
  125. void    initglob(void);
  126. float    inch(char *);
  127.  
  128. #if    BBNBITGRAPH
  129. void    initterm();
  130. #endif /* BBNBITGRAPH */
  131.  
  132. #if    (CANON_A2 | HPJETPLUS)
  133. void    loadbmap(BYTE);
  134. #endif /* (CANON_A2 | HPJETPLUS) */
  135.  
  136. void    loadchar(BYTE);
  137.  
  138. #if    BBNBITGRAPH
  139. void    loadrast(FILE *, COORDINATE, COORDINATE);
  140. #endif /* BBNBITGRAPH */
  141.  
  142. #if OS_THINKC
  143. void main ( void );
  144. #else
  145. int    main(int ,char *[]);
  146. #endif /* OS_THINKC */
  147.  
  148. #if    ANSI_LIBRARY
  149. void*    malloc(size_t);
  150. #else
  151. char*    malloc(unsigned);
  152. #endif /* ANSI_LIBRARY */
  153.  
  154. #if    (APPLEIMAGEWRITER | OKIDATA2410)
  155. char    makechar(UNSIGN32 *[],UNSIGN32);
  156. #endif /* (APPLEIMAGEWRITER | OKIDATA2410) */
  157.  
  158. #if    HPJETPLUS
  159. void    makefont(void);
  160. #endif
  161.  
  162. void    movedown(INT32);
  163. void    moveover(INT32);
  164. void    moveto(COORDINATE, COORDINATE);
  165.  
  166. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  167. void    newfont(void);
  168. #endif
  169.  
  170. UNSIGN32    nosignex(FILE *,BYTE);
  171. void    openfont(char *);
  172. void    option(char *);
  173.  
  174. #if OS_THINKC /* conflicts with a QuickDraw constant */
  175. #else
  176. #if    HPLASERJET
  177. void    outline(UNSIGN32 *);
  178. #else
  179. void    outline(char *);
  180. #endif /* HPLASERJET */
  181. #endif /* OS_THINKC */
  182.  
  183. #if    EPSON
  184. #if    HIRES
  185. void    outpaperfeed(INT16);
  186. #endif /* HIRES */
  187. #endif /* EPSON */
  188.  
  189. #if    HPJETPLUS
  190. void    outraster(BYTE,UNSIGN16);
  191. #endif /* HPJETPLUS */
  192.  
  193. void    outrow(BYTE,UNSIGN16);
  194.  
  195. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  196. #else
  197. void    prtbmap(void);
  198. #endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  199.  
  200. void    prtpage(long);
  201.  
  202. #if    POSTSCRIPT
  203. char*    putfontname(struct font_entry *);
  204. void    putname(FILE *,struct font_entry *);
  205. #endif /* POSTSCRIPT */
  206.  
  207. #if    BBNBITGRAPH
  208. void    putout(INT16);
  209. #endif /* BBNBITGRAPH */
  210.  
  211. void    readfont(INT32);
  212. int    readgf(void);
  213. int    readpk(void);
  214. void    readpost(void);
  215. int    readpxl(void);
  216. void    reldfont(struct font_entry *);
  217.  
  218. #if    BBNBITGRAPH
  219. void    rsetterm();
  220. #endif /* BBNBITGRAPH */
  221.  
  222. COORDINATE    rulepxl(UNSIGN32,float);
  223. void    setchar(BYTE,BOOLEAN);
  224.  
  225. #if    HPJETPLUS
  226. void    setfont(void);
  227. #endif
  228.  
  229. #if    (HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  230. void    setstr(BYTE);
  231. #endif /* (HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  232.  
  233. void    setfntnm(INT32);
  234. void    setrule(UNSIGN32, UNSIGN32, BOOLEAN);
  235. INT32    signex(FILE *,BYTE);
  236. void    skipfont(INT32);
  237. void    skgfspec(void);
  238. void    skpkspec(void);
  239. void    special(char *);
  240.  
  241. char*    strcat(char *,const char *);
  242. char*    strchr(const char *,int);
  243. char*    strcpy(char *,const char *);
  244. size_t    strlen(const char *);
  245. int    strncmp(const char *,const char *,size_t);
  246. char*    strncpy(char *,const char *,size_t);
  247. char*    strrchr(const char *,int);
  248.  
  249. int    strcm2(char *,char *);
  250. int    strid2(char[],char[]);
  251.  
  252. char*    tctos(void);
  253.  
  254. #if THINK_C
  255. #else
  256. #if    ANSI_LIBRARY
  257. time_t    time(time_t *);
  258. #else
  259. long    time(long *);
  260. #endif /* ANSI_LIBRARY */
  261. #endif /* THINK_C */
  262.  
  263. #if    BBNBITGRAPH
  264. void    unloadfonts();
  265. #endif
  266.  
  267. void    usage(FILE *);
  268.  
  269. #if    VIRTUAL_FONTS
  270. void    virtfree(FILE *);
  271. #endif
  272.  
  273. void    warning(char *);
  274.  
  275. #if    FASTZERO
  276. void    zerom(UNSIGN32 *,UNSIGN32);
  277. #endif /* FASTZERO */
  278.  
  279. #else /* NOT ANSI_PROTOTYPES */
  280. double    atof();
  281. int    atoi();
  282.  
  283. #if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT)
  284. void    bopact();
  285. #endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT) */
  286.  
  287. char*    cuserid();
  288. char*    ctime();
  289. void    EXIT();
  290. void    free();
  291. int    FSEEK();
  292. long    FTELL();
  293. char*    GETENV();
  294.  
  295. #if    OS_VAXVMS
  296. char*    getjpi();
  297. #endif
  298.  
  299. char*    getlogin();
  300. char*    malloc();
  301.  
  302. #if    (IBM_PC_WIZARD | KCC_20 | OS_VAXVMS | OS_THINKC)
  303. /* stdio.h declares sprintf(); */
  304. #else
  305. char*    sprintf();        /* Berkeley 4.1 BSD style */
  306. #endif /* (IBM_PC_WIZARD | KCC_20 | OS_VAXVMS) */
  307.  
  308. char*    strcpy();
  309. char*    strcat();
  310. char*    strchr();        /* private version of this 4.2BSD function */
  311. int    strcm2();        /* local addition (used by inch()) */
  312. int    strcmp();
  313. int    strid2();        /* local addition (used by initglob()) */
  314. int    strncmp();
  315. char*    strncpy();
  316. char*    strrchr();        /* private version of this 4.2BSD function */
  317. long    time();
  318.  
  319. /***********************************************************************
  320. Note: Global procedures  are declared here  in alphabetical order,  with
  321. those which do not  return values typed "void".   Their bodies occur  in
  322. alphabetical order following the main()  procedure, usually in the  form
  323. of "#include" statements.   The names  are kept  unique in  the first  6
  324. characters for portability.
  325. ***********************************************************************/
  326.  
  327. void    abortrun();
  328. float    actfact();
  329. float    actfact_res();
  330. void    alldone();
  331. FILE*    FOPEN();
  332.  
  333. int    chargf();
  334. int    charpk();
  335. int    charpxl();
  336. void    clrrow();
  337.  
  338. #if    POSTSCRIPT
  339. void    cppsfile();
  340. #endif /* POSTSCRIPT */
  341.  
  342. void    dbgopen();
  343. void    devinit();
  344. void    devterm();
  345.  
  346. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  347. #else /* NOT (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  348. void    clrbmap();
  349. void    dispchar();
  350. #endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  351.  
  352. void    dvifile();
  353. void    dviinit();
  354. void    dviterm();
  355.  
  356. #if    POSTSCRIPT
  357. void    emitchar();
  358. #endif /* POSTSCRIPT */
  359.  
  360. #if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT)
  361. void    eopact();
  362. #endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT) */
  363.  
  364. void    fatal();
  365. void    fillrect();
  366. void    findpost();
  367. void    fontfile();
  368. BOOLEAN    fontsub();
  369. COORDINATE    fixpos();
  370. void    getbmap();
  371. void    getbytes();
  372. void    getfntdf();
  373. void    getpgtab();
  374.  
  375. #if    BBNBITGRAPH
  376. void    gotint();
  377. #endif /* BBNBITGRAPH */
  378.  
  379. float    inch();
  380. void    initglob();
  381.  
  382. #if    BBNBITGRAPH
  383. void    initterm();
  384. #endif /* BBNBITGRAPH */
  385.  
  386. #if    (CANON_A2 | HPJETPLUS)
  387. void    loadbmap();
  388. #endif /* (CANON_A2 | HPJETPLUS) */
  389.  
  390. void    loadchar();
  391.  
  392. #if    BBNBITGRAPH
  393. void    loadrast();
  394. #endif /* BBNBITGRAPH */
  395.  
  396. int    main();
  397.  
  398. #if    APPLEIMAGEWRITER
  399. char    makechar();
  400. #endif /* APPLEIMAGEWRITER */
  401.  
  402. #if    OKIDATA2410
  403. char    makechar();
  404. #endif /* OKIDATA2410 */
  405.  
  406. #if    HPJETPLUS
  407. void    makefont();
  408. #endif
  409.  
  410. void    movedown();
  411. void    moveover();
  412. void    moveto();
  413.  
  414. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  415. void    newfont();
  416. #endif
  417.  
  418. UNSIGN32    nosignex();
  419.  
  420. #if    BBNBITGRAPH
  421. #else /* NOT BBNBITGRAPH */
  422. void    outline();
  423. #endif /* BBNBITGRAPH */
  424.  
  425. #if    EPSON
  426. #if    HIRES
  427. void    outpaperfeed();
  428. #endif /* HIRES */
  429. #endif /* EPSON */
  430.  
  431. #if    HPJETPLUS
  432. void    outraster();
  433. #endif /* HPJETPLUS */
  434.  
  435. void    outrow();
  436. void    openfont();
  437. void    option();
  438.  
  439. #if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  440. #else /* NOT (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  441. void    prtbmap();
  442. #endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  443.  
  444. void    prtpage();
  445.  
  446. #if    POSTSCRIPT
  447. char*    putfontname();
  448. void    putname();
  449. #endif /* POSTSCRIPT */
  450.  
  451. #if    BBNBITGRAPH
  452. void    putout();
  453. #endif /* BBNBITGRAPH */
  454.  
  455. void    readfont();
  456. int    readgf();
  457. int    readpk();
  458. void    readpost();
  459. int    readpxl();
  460. void    reldfont();
  461.  
  462. #if    BBNBITGRAPH
  463. void    rsetterm();
  464. #endif /* BBNBITGRAPH */
  465.  
  466. COORDINATE    rulepxl();
  467. void    setchar();
  468. void    setfntnm();
  469.  
  470. #if    HPJETPLUS
  471. void    setfont();
  472. #endif
  473.  
  474. void    setrule();
  475.  
  476. #if    (HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
  477. void    setstr();
  478. #endif /* (HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
  479.  
  480. INT32    signex();
  481. void    skipfont();
  482. void    skgfspec();
  483. void    skpkspec();
  484. void    special();
  485. char*    tctos();
  486.  
  487. #if    POSTSCRIPT
  488. void    textchr();
  489. void    textflush();
  490. void    textnum();
  491. void    textstr();
  492. #endif /* POSTSCRIPT */
  493.  
  494. #if    BBNBITGRAPH
  495. void    unloadfonts();
  496. #endif
  497.  
  498. void    usage();
  499.  
  500. #if    VIRTUAL_FONTS
  501. void    virtfree();
  502. #endif
  503.  
  504. void    warning();
  505.  
  506. #if    FASTZERO
  507. void    zerom();
  508. #endif /* FASTZERO */
  509.  
  510. #endif /* ANSI_PROTOTYPES */
  511.