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