Rev 193 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 193 | Rev 259 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | This file is part of a common library |
2 | This file is part of a common library |
3 | Copyright (C) 1990-2009 Toby Thain, toby@telegraphics.com.au |
3 | Copyright (C) 1990-2009 Toby Thain, toby@telegraphics.com.au |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, |
10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. |
13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License |
15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software |
16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | */ |
18 | */ |
19 | 19 | ||
20 | #include <stdio.h> |
20 | #include <stdio.h> |
21 | 21 | ||
22 | typedef unsigned long ulong; |
22 | typedef unsigned long ulong; |
23 | typedef unsigned short ushort; |
23 | typedef unsigned short ushort; |
24 | 24 | ||
25 | #define get1 fgetc |
25 | #define get1 fgetc |
26 | int get2(FILE*f); |
26 | int get2(FILE*f); |
27 | long get3(FILE*f); |
27 | long get3(FILE*f); |
28 | ulong get4(FILE*f); |
28 | ulong get4(FILE*f); |
29 | int get1s(FILE*f); |
29 | int get1s(FILE*f); |
30 | int get2s(FILE*f); |
30 | int get2s(FILE*f); |
31 | long get3s(FILE*f); |
31 | long get3s(FILE*f); |
32 | long get4s(FILE*f); |
32 | long get4s(FILE*f); |
33 | 33 | ||
34 | dvi_interpret(FILE *dvi); |
34 | dvi_interpret(FILE *dvi); |
35 | 35 | ||
36 | /* supplied by caller */ |
36 | /* supplied by caller */ |
37 | 37 | ||
38 | dvi_set_char(ulong c); |
38 | dvi_set_char(ulong c); |
39 | dvi_set_rule(long a,long b); |
39 | dvi_set_rule(long a,long b); |
40 | dvi_put_char(ulong c); |
40 | dvi_put_char(ulong c); |
41 | dvi_put_rule(long a,long b); |
41 | dvi_put_rule(long a,long b); |
42 | int dvi_bop(long c[],long p); |
42 | int dvi_bop(long c[],long p); |
43 | dvi_eop(); |
43 | dvi_eop(); |
44 | dvi_push(); |
44 | dvi_push(); |
45 | dvi_pop(); |
45 | dvi_pop(); |
46 | dvi_right(long b); |
46 | dvi_right(long b); |
47 | dvi_w0(); |
47 | dvi_w0(); |
48 | dvi_w(long b); |
48 | dvi_w(long b); |
49 | dvi_x0(); |
49 | dvi_x0(); |
50 | dvi_x(long b); |
50 | dvi_x(long b); |
51 | dvi_down(long a); |
51 | dvi_down(long a); |
52 | dvi_y0(); |
52 | dvi_y0(); |
53 | dvi_y(long b); |
53 | dvi_y(long b); |
54 | dvi_z0(); |
54 | dvi_z0(); |
55 | dvi_z(long b); |
55 | dvi_z(long b); |
56 | dvi_fnt(long k); |
56 | dvi_fnt(long k); |
57 | dvi_xxx(ulong k,FILE *dvi); |
57 | dvi_xxx(ulong k,FILE *dvi); |
58 | dvi_fnt_def(long k,FILE *dvi); |
58 | dvi_fnt_def(long k,FILE *dvi); |
59 | dvi_pre(ulong num,ulong den,ulong mag,short i,char*comment); |
59 | dvi_pre(ulong num,ulong den,ulong mag,short i,char*comment); |
60 | dvi_post(long p,ulong num,ulong den,ulong mag, |
60 | dvi_post(long p,ulong num,ulong den,ulong mag, |
61 | ulong l,ulong u,ushort s,ushort t); |
61 | ulong l,ulong u,ushort s,ushort t); |
62 | dvi_post_post(); |
62 | dvi_post_post(); |
63 | 63 |