File: psspec.h

package info (click to toggle)
psutils 1.17.dfsg-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 796 kB
  • ctags: 605
  • sloc: ansic: 6,567; sh: 756; perl: 705; makefile: 639; lisp: 74
file content (34 lines) | stat: -rw-r--r-- 1,054 bytes parent folder | download | duplicates (3)
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
/* psspec.h
 * Copyright (C) Angus J. C. Duggan 1991-1995
 * See file LICENSE for details.
 *
 * routines for page rearrangement specs
 */

/* pagespec flags */
#define ADD_NEXT (0x01)
#define ROTATE   (0x02)
#define HFLIP    (0x04)
#define VFLIP    (0x08)
#define SCALE    (0x10)
#define OFFSET   (0x20)
#define GSAVE    (ROTATE|HFLIP|VFLIP|SCALE|OFFSET)

typedef struct pagespec {
   int reversed, pageno, flags, rotate, hflip, vflip;
   double xoff, yoff, scale;
   struct pagespec *next;
} PageSpec ;

extern double width, height;

extern PageSpec *newspec(void);
extern int parseint(char **sp, void (*errorfn)(void));
extern double parsedouble(char **sp, void (*errorfn)(void));
extern double parsedimen(char **sp, void (*errorfn)(void));
extern double singledimen(char *str, void (*errorfn)(void),
			  void (*usagefn)(void));
extern void pstops(int modulo, int pps, int nobind, PageSpec *specs,
		   double draw);
extern void pstops_write(int modulo, int pps, int nobind, PageSpec *specs,
                         double draw, off_t *ignorelist);