summaryrefslogtreecommitdiff
path: root/dviware/beebe/src/gblprocs.h
blob: 6064441c497c33450b46abdf3cc9082af5bf6d00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
/* -*-C-*- gblprocs.h */
/*-->gblprocs*/
/**********************************************************************/
/****************************** gblprocs ******************************/
/**********************************************************************/

/**********************************************************************/
/*************************  Global Procedures  ************************/
/**********************************************************************/

#if    ANSI_PROTOTYPES
void	abortrun(int);
float	actfact(UNSIGN32);
void	alldone(void);

#if    ANSI_LIBRARY
double	atof(const char *);
int	atoi(const char *);
#else
double	atof(char *);
int	atoi(char *);
#endif /* ANSI_LIBRARY */

#if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT)
void	bopact();
#endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT) */

int	chargf(BYTE,void(*)());
int	charpk(BYTE,void(*)());
int	charpxl(BYTE,void(*)());

#if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
#else
void	clrbmap(void);
#endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */

void	clrrow(void);

#if    POSTSCRIPT
void	cppsfile(void);
#endif /* POSTSCRIPT */

#if    ANSI_LIBRARY
char*   ctime(const time_t *);
#else
char*	ctime(long *);
#endif /* ANSI_LIBRARY */

char*	cuserid(char *);
void	dbgopen(FILE*, char*, char*);
void	devinit(int, char *[]);
void	devterm(void);

#if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
#else
void	dispchar(BYTE);
#endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */

void	dvifile(int, char *[], char *);
void	dviinit(char *);
void	dviterm(void);

#if    POSTSCRIPT
void	emitchar(BYTE);
#endif /* POSTSCRIPT */

#if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT)
void	eopact();
#endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT) */

void	EXIT(int);
void	fatal(char *);
void	fillrect(COORDINATE, COORDINATE, COORDINATE, COORDINATE);
void	findpost(void);
COORDINATE	fixpos(COORDINATE, INT32, float);
void	fontfile(char *[MAXFORMATS],char *,char *,int);
BOOLEAN	fontsub(char *,int *,char *,int);

#if    ANSI_LIBRARY
void	free(void *);
#else
void	free(char *);
#endif /* ANSI_LIBRARY */

int	FSEEK(FILE *,long,int);
void	getbmap(void);
void	getbytes(FILE *, char *, BYTE);

#if    ANSI_LIBRARY
char*	GETENV(const char *);
#else
char*	GETENV(char *);
#endif /* ANSI_LIBRARY */

void	getfntdf(void);

#if    OS_VAXVMS
char*	getjpi(int);
#endif

char*	getlogin(void);
void	getpgtab(long);
void	initglob(void);
float	inch(char *);

#if    BBNBITGRAPH
void	initterm();
#endif /* BBNBITGRAPH */

#if    (CANON_A2 | HPJETPLUS)
void	loadbmap(BYTE);
#endif /* (CANON_A2 | HPJETPLUS) */

void	loadchar(BYTE);

#if    BBNBITGRAPH
void	loadrast(FILE *, COORDINATE, COORDINATE);
#endif /* BBNBITGRAPH */

int	main(int ,char *[]);

#if    ANSI_LIBRARY
void*	malloc(size_t);
#else
char*	malloc(unsigned);
#endif /* ANSI_LIBRARY */

#if    (APPLEIMAGEWRITER | OKIDATA2410)
char	makechar(UNSIGN32 *[],UNSIGN32);
#endif /* (APPLEIMAGEWRITER | OKIDATA2410) */

#if    HPJETPLUS
void	makefont(void);
#endif

void	movedown(INT32);
void	moveover(INT32);
void	moveto(COORDINATE, COORDINATE);

#if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
void	newfont(void);
#endif

UNSIGN32	nosignex(FILE *,BYTE);
void	openfont(char *);
void	option(char *);

#if    HPLASERJET
void	outline(UNSIGN32 *);
#else
void	outline(char *);
#endif /* HPLASERJET */

#if    EPSON
#if    HIRES
void	outpaperfeed(INT16);
#endif /* HIRES */
#endif /* EPSON */

#if    HPJETPLUS
void	outraster(BYTE,UNSIGN16);
#endif /* HPJETPLUS */

void	outrow(BYTE,UNSIGN16);

#if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
#else
void	prtbmap(void);
#endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */

void	prtpage(long);

#if    POSTSCRIPT
char*	putfontname(struct font_entry *);
void	putname(FILE *,struct font_entry *);
#endif /* POSTSCRIPT */

#if    BBNBITGRAPH
void	putout(INT16);
#endif /* BBNBITGRAPH */

void	readfont(INT32);
int	readgf(void);
int	readpk(void);
void	readpost(void);
int	readpxl(void);
void	reldfont(struct font_entry *);

#if    BBNBITGRAPH
void	rsetterm();
#endif /* BBNBITGRAPH */

COORDINATE	rulepxl(UNSIGN32,float);
void	setchar(BYTE,BOOLEAN);

#if    HPJETPLUS
void	setfont(void);
#endif

#if    (HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
void	setstr(BYTE);
#endif /* (HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */

void	setfntnm(INT32);
void	setrule(UNSIGN32, UNSIGN32, BOOLEAN);
INT32	signex(FILE *,BYTE);
void	skipfont(INT32);
void	skgfspec(void);
void	skpkspec(void);
void	special(char *);

#if    ANSI_LIBRARY
char*	strcat(char *,const char *);
char*	strchr(const char *,int);
char*	strcpy(char *,const char *);
size_t	strlen(const char *);
int	strncmp(const char *,const char *,size_t);
char*	strncpy(char *,const char *,size_t);
char*	strrchr(const char *,int);
#else /* NOT ANSI_LIBRARY conformant */
char*	strcat(char *,char *);
char*	strchr(char *,char);
char*	strcpy(char *,char *);
int	strlen(char *);
int	strncmp(char *,char *,int);
char*	strncpy(char *,char *,int);
char*	strrchr(char *,char);
#endif /* ANSI_LIBRARY */

int	strcm2(char *,char *);
int	strid2(char[],char[]);

char*	tctos(void);

#if    POSTSCRIPT
void	textchr(char);
void	textflush();
void	textnum(long);
void	textstr(char *);
#endif /* POSTSCRIPT */

#if    ANSI_LIBRARY
time_t	time(time_t *);
#else
long	time(long *);
#endif /* ANSI_LIBRARY */

#if    BBNBITGRAPH
void	unloadfonts();
#endif

void	usage(FILE *);

#if    VIRTUAL_FONTS
void	virtfree(FILE *);
#endif

void	warning(char *);

#if    FASTZERO
void	zerom(UNSIGN32 *,UNSIGN32);
#endif /* FASTZERO */

#else /* NOT ANSI_PROTOTYPES */
double	atof();
int	atoi();

#if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT)
void	bopact();
#endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | IMPRESS | POSTSCRIPT) */

char*	cuserid();
char*	ctime();
void	EXIT();
void	free();
int	FSEEK();
long	FTELL();
char*	GETENV();

#if    OS_VAXVMS
char*	getjpi();
#endif

char*	getlogin();
char*	malloc();

#if    (IBM_PC_WIZARD | KCC_20 | OS_VAXVMS)
/* stdio.h declares sprintf(); */
#else
char*	sprintf();		/* Berkeley 4.1 BSD style */
#endif /* (IBM_PC_WIZARD | KCC_20 | OS_VAXVMS) */

char*	strcpy();
char*	strcat();
char*	strchr();		/* private version of this 4.2BSD function */
int	strcm2();		/* local addition (used by inch()) */
int	strcmp();
int	strid2();		/* local addition (used by initglob()) */
int	strncmp();
char*	strncpy();
char*	strrchr();		/* private version of this 4.2BSD function */
long	time();

/***********************************************************************
Note: Global procedures  are declared here  in alphabetical order,  with
those which do not  return values typed "void".   Their bodies occur  in
alphabetical order following the main()  procedure, usually in the  form
of "#include" statements.   The names  are kept  unique in  the first  6
characters for portability.
***********************************************************************/

void	abortrun();
float	actfact();
void	alldone();
FILE*	FOPEN();

int	chargf();
int	charpk();
int	charpxl();
void	clrrow();

#if    POSTSCRIPT
void	cppsfile();
#endif /* POSTSCRIPT */

void	dbgopen();
void	devinit();
void	devterm();

#if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
#else /* NOT (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
void	clrbmap();
void	dispchar();
#endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */

void	dvifile();
void	dviinit();
void	dviterm();

#if    POSTSCRIPT
void	emitchar();
#endif /* POSTSCRIPT */

#if    (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT)
void	eopact();
#endif /* (BBNBITGRAPH | CANON_A2 | HPJETPLUS | POSTSCRIPT) */

void	fatal();
void	fillrect();
void	findpost();
void	fontfile();
BOOLEAN	fontsub();
COORDINATE	fixpos();
void	getbmap();
void	getbytes();
void	getfntdf();
void	getpgtab();

#if    BBNBITGRAPH
void	gotint();
#endif /* BBNBITGRAPH */

float	inch();
void	initglob();

#if    BBNBITGRAPH
void	initterm();
#endif /* BBNBITGRAPH */

#if    (CANON_A2 | HPJETPLUS)
void	loadbmap();
#endif /* (CANON_A2 | HPJETPLUS) */

void	loadchar();

#if    BBNBITGRAPH
void	loadrast();
#endif /* BBNBITGRAPH */

int	main();

#if    APPLEIMAGEWRITER
char	makechar();
#endif /* APPLEIMAGEWRITER */

#if    OKIDATA2410
char	makechar();
#endif /* OKIDATA2410 */

#if    HPJETPLUS
void	makefont();
#endif

void	movedown();
void	moveover();
void	moveto();

#if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
void	newfont();
#endif

UNSIGN32	nosignex();

#if    BBNBITGRAPH
#else /* NOT BBNBITGRAPH */
void	outline();
#endif /* BBNBITGRAPH */

#if    EPSON
#if    HIRES
void	outpaperfeed();
#endif /* HIRES */
#endif /* EPSON */

#if    HPJETPLUS
void	outraster();
#endif /* HPJETPLUS */

void	outrow();
void	openfont();
void	option();

#if    (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
#else /* NOT (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */
void	prtbmap();
#endif /* (BBNBITGRAPH | HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */

void	prtpage();

#if    POSTSCRIPT
char*	putfontname();
void	putname();
#endif /* POSTSCRIPT */

#if    BBNBITGRAPH
void	putout();
#endif /* BBNBITGRAPH */

void	readfont();
int	readgf();
int	readpk();
void	readpost();
int	readpxl();
void	reldfont();

#if    BBNBITGRAPH
void	rsetterm();
#endif /* BBNBITGRAPH */

COORDINATE	rulepxl();
void	setchar();
void	setfntnm();

#if    HPJETPLUS
void	setfont();
#endif

void	setrule();

#if    (HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2)
void	setstr();
#endif /* (HPJETPLUS | POSTSCRIPT | IMPRESS | CANON_A2) */

INT32	signex();
void	skipfont();
void	skgfspec();
void	skpkspec();
void	special();
char*	tctos();

#if    POSTSCRIPT
void	textchr();
void	textflush();
void	textnum();
void	textstr();
#endif /* POSTSCRIPT */

#if    BBNBITGRAPH
void	unloadfonts();
#endif

void	usage();

#if    VIRTUAL_FONTS
void	virtfree();
#endif

void	warning();

#if    FASTZERO
void	zerom();
#endif /* FASTZERO */

#endif /* ANSI_PROTOTYPES */