main
display.h
1#ifndef DISPLAY_H
2#define DISPLAY_H
3
4#define MINPAGESIZE 5
5
6extern int pagesize;
7extern int maxpagesize;
8extern int scrollsize;
9
10struct scr_info {
11 struct linelist {
12 int cnt;
13 long line;
14#define firstline head->line
15#define lastline tail->line
16 struct linelist *next;
17 struct linelist *prev;
18 } *tail, *head;
19 int nf;
20 int currentpos;
21 struct linelist ssaavv;
22#define savfirst ssaavv.line
23#define savnf ssaavv.cnt
24};
25
26extern struct scr_info scr_info;
27extern int status;
28
29#define EOFILE 01
30#define START 02
31
32void redraw(int flag);
33int display(long first_line, int nodispl, int nlines, int really);
34int scrollf(int nlines, int really);
35int scrollb(int nlines, int really);
36int tomark(long cnt);
37int setmark(long cnt);
38int exgmark(long cnt);
39void d_clean(void);
40
41#endif