Add uppercase-markup
[ccbib.git] / psutils / psspec.h
blobce796f5407a1e5de4dee3288bf9c890eeb787a87
1 /* psspec.h
2 * Copyright (C) Angus J. C. Duggan 1991-1995
3 * See file LICENSE for details.
5 * routines for page rearrangement specs
6 */
8 /* pagespec flags */
9 #define ADD_NEXT (0x01)
10 #define ROTATE (0x02)
11 #define SCALE (0x04)
12 #define OFFSET (0x08)
13 #define GSAVE (ROTATE|SCALE|OFFSET)
15 typedef struct pagespec {
16 int reversed, pageno, flags, rotate;
17 double xoff, yoff, scale;
18 struct pagespec *next;
19 } PageSpec ;
21 extern double width, height;
23 extern PageSpec *newspec(void);
24 extern int parseint(char **sp, void (*errorfn)(void));
25 extern double parsedouble(char **sp, void (*errorfn)(void));
26 extern double parsedimen(char **sp, void (*errorfn)(void));
27 extern double singledimen(char *str, void (*errorfn)(void),
28 void (*usagefn)(void));
29 extern void pstops(int modulo, int pps, int nobind, PageSpec *specs,
30 double draw);