Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 86 lines (77 sloc) 2.6 kB
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
1 /* display2.h */
2 /* Copyright 1995 by Steve Kirkendall */
3
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
4 /* Define DISPLAY_ANYMARKUP if any markup modes are used */
5 #ifndef DISPLAY_ANYMARKUP
6 # if defined(DISPLAY_HTML) || defined(DISPLAY_MAN) || defined(DISPLAY_TEX)
7 # define DISPLAY_ANYMARKUP
8 # endif
9 #endif
10
11 /* Define DISPLAY_ANYDESCR if any markup or syntax modes are used */
12 #ifndef DISPLAY_ANYDESCR
13 # if defined(DISPLAY_SYNTAX) || defined(DISPLAY_ANYMARKUP)
14 # define DISPLAY_ANYDESCR
15 # endif
16 #endif
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
17
18 struct dispmode_s
19 {
20 char *name;
21 char *desc;
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
22 ELVBOOL canopt;
23 ELVBOOL wordwrap;
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
24 int nwinopts;
25 OPTDESC *winoptd;
26 int nglobopts;
27 OPTDESC *globoptd;
28 OPTVAL *globoptv;
29 DMINFO *(*init) P_((WINDOW win));
30 void (*term) P_((DMINFO *info));
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
31 long (*mark2col) P_((WINDOW w, MARK mark, ELVBOOL cmd));
32 MARK (*move) P_((WINDOW w, MARK from, long linedelta, long column, ELVBOOL cmd));
33 MARK (*wordmove) P_((MARK from, long count, ELVBOOL backward, ELVBOOL whitespace));
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
34 MARK (*setup) P_((WINDOW w, MARK top, long cursor, MARK bottom, DMINFO *info));
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
35 MARK (*image) P_((WINDOW w, MARK line, DMINFO *info,
36 void (*draw)(CHAR *p, long qty, _char_ font, long offset)));
37 void (*header) P_((WINDOW w, int pagenum, DMINFO *info,
38 void (*draw)(CHAR *p, long qty, _char_ font, long offset)));
39 void (*indent) P_((WINDOW w, MARK line, long linedelta));
40 CHAR *(*tagatcursor) P_((WINDOW win, MARK cursor));
41 MARK (*tagload) P_((CHAR *tagname, MARK from));
42 MARK (*tagnext) P_((MARK cursor));
43 };
44
45 extern DISPMODE dmnormal;
46 #ifdef DISPLAY_HEX
47 extern DISPMODE dmhex;
48 #endif
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
49 #ifdef DISPLAY_HTML
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
50 extern DISPMODE dmhtml;
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
51 #endif
52 #ifdef DISPLAY_MAN
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
53 extern DISPMODE dmman;
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
54 #endif
55 #ifdef DISPLAY_TEX
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
56 extern DISPMODE dmtex;
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
57 #endif
58 #ifdef DISPLAY_SYNTAX
59 extern DISPMODE dmsyntax;
60 #endif
61 extern DISPMODE *allmodes[];
62
63 BEGIN_EXTERNC
64 extern void displist P_((WINDOW win));
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
65 extern ELVBOOL dispset P_((WINDOW win, char *newmode));
66 extern void dispinit P_((ELVBOOL before));
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
67 extern void dispoptions P_((DISPMODE *mode, DMINFO *info));
68 extern MARK dispmove P_((WINDOW win, long linedelta, long wantcol));
69 extern long dispmark2col P_((WINDOW win));
70 extern void dispindent P_((WINDOW w, MARK line, long linedelta));
71
3a9bb55 @mbert Import Elvis 2.1_3 (written by Steve Kirkendall)
authored
72 #ifdef DISPLAY_ANYMARKUP
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
73 extern void dmmuadjust P_((MARK from, MARK to, long delta));
74 #endif
75 #ifdef DISPLAY_SYNTAX
8d1ac0c @mbert Import Elvis 2.1 (written by Steve Kirkendall)
authored
76 extern CHAR dmspreprocessor P_((WINDOW win));
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
77 extern ELVBOOL dmskeyword P_((WINDOW win, CHAR *word));
78 # ifdef FEATURE_SMARTARGS
79 extern void dmssmartargs P_((WINDOW win));
80 # endif
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
81 #endif
9f1c6f0 @mbert Import Elvis 2.2_0 (written by Steve Kirkendall)
authored
82 extern int dmnlistchars P_((_CHAR_ ch, long offset, long col, short *tabstop, void(*draw)(CHAR *p, long qty, _char_ font, long offset)));
83
84
cf92e3b @mbert Import Elvis 2.0 (written by Steve Kirkendall)
authored
85 END_EXTERNC
Something went wrong with that request. Please try again.