1 | /* This is the file more.h for the Xmore, a file browsing utility |
---|
2 | * built upon Xlib and the XToolkit. |
---|
3 | * It Contains: Lots of good defintions. |
---|
4 | * |
---|
5 | * Created: October 22, 1987 |
---|
6 | * By: Chris D. Peterson |
---|
7 | * |
---|
8 | * $Id: more.h,v 1.5 1999-01-22 23:15:45 ghudson Exp $ |
---|
9 | * |
---|
10 | * Copyright 1987, 1988 by the Massachusetts Institute of Technology. |
---|
11 | * |
---|
12 | * For further information on copyright and distribution |
---|
13 | * see the file mit-copyright.h |
---|
14 | */ |
---|
15 | |
---|
16 | /* Std system and C include files */ |
---|
17 | |
---|
18 | #include <stdio.h> |
---|
19 | #include <X11/Xos.h> |
---|
20 | #ifdef POSIX |
---|
21 | #include <dirent.h> |
---|
22 | #else |
---|
23 | #include <sys/dir.h> |
---|
24 | #endif |
---|
25 | #include <sys/stat.h> |
---|
26 | |
---|
27 | /* X include files */ |
---|
28 | |
---|
29 | #include <X11/X.h> |
---|
30 | #include <X11/Xatom.h> |
---|
31 | #include <X11/StringDefs.h> |
---|
32 | |
---|
33 | /* X toolkit Include files */ |
---|
34 | |
---|
35 | #include <X11/Intrinsic.h> |
---|
36 | #if XtSpecificationRelease < 4 |
---|
37 | #include <X11/AsciiText.h> |
---|
38 | #include <X11/Command.h> |
---|
39 | #include <X11/Form.h> |
---|
40 | #include <X11/VPaned.h> |
---|
41 | #else |
---|
42 | #include <X11/Xaw/AsciiText.h> |
---|
43 | #include <X11/Xaw/Command.h> |
---|
44 | #include <X11/Xaw/Form.h> |
---|
45 | #include <X11/Xaw/Paned.h> |
---|
46 | #endif |
---|
47 | #include <X11/Shell.h> |
---|
48 | |
---|
49 | /* program specific include files */ |
---|
50 | |
---|
51 | #include "ScrollByLine.h" |
---|
52 | #include "mit-copyright.h" |
---|
53 | #include "defs.h" |
---|
54 | |
---|
55 | typedef void (*fcall)(); /* function pointer typedef. */ |
---|
56 | |
---|
57 | typedef struct _Fonts { |
---|
58 | XFontStruct * normal, /* The normal text for the man pages. */ |
---|
59 | * italic; /* The italic text for the man pages. */ |
---|
60 | } Fonts; |
---|
61 | |
---|
62 | /* |
---|
63 | * The structure with the information about the file |
---|
64 | */ |
---|
65 | |
---|
66 | typedef struct _MemoryStruct { |
---|
67 | char * top_of_page; /* a pointer to the top of the page. */ |
---|
68 | char ** top_line; /* a pointer to the top of the list of |
---|
69 | lines in the file. */ |
---|
70 | } MemoryStruct; |
---|
71 | |
---|