home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / DVI_MGR / dvimgr_s.lzh / dvimgr / gblprocs.h < prev    next >
Text File  |  1993-08-06  |  10KB  |  509 lines

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