Expand PMF_FN_* macros.
[netbsd-mini2440.git] / usr.bin / tn3270 / general / globals.h
blobf42bf76d37b1ccb732cfd851a71de795e7356fab
1 /* $NetBSD: globals.h,v 1.5 2002/06/13 23:41:20 wiz Exp $ */
3 /*-
4 * Copyright (c) 1988 The Regents of the University of California.
5 * All rights reserved.
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. Neither the name of the University nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
19 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
31 * from: @(#)globals.h 4.2 (Berkeley) 4/26/91
35 * This file contains all the globals used by tn3270.
37 * Since various files may want to reference this file,
38 * and since they may only want subsets of the globals,
39 * we assume they have #include'd all the other .h files
40 * first, and we only give those globals relevant to
41 * the #include'd .h files.
45 #if defined(DEFINING_INSTANCES)
46 #define EXTERN
47 #else
48 #define EXTERN extern
49 #endif
52 EXTERN int
54 * shell_active ==>
55 * 1. Don't do input.
56 * 2. Don't do output.
57 * 3. Don't block in select.
58 * 4. When nothing to do, call shell_continue()
60 shell_active;
63 #if defined(INCLUDED_OPTIONS)
64 EXTERN int OptHome; /* where home should send us */
66 EXTERN int OptLeftMargin; /* where new line should send us */
68 EXTERN char OptColTabs[80]; /* local tab stops */
70 EXTERN int OptAPLmode;
72 EXTERN int OptNullProcessing; /* improved null processing */
74 EXTERN int OptZonesMode; /* zones mode off */
76 EXTERN int OptEnterNL; /* regular enter/new line keys */
78 EXTERN int OptColFieldTab; /* regular column/field tab keys */
80 EXTERN int OptPacing; /* do pacing */
82 EXTERN int OptAlphaInNumeric; /* allow alpha in numeric fields */
84 EXTERN int OptHome;
86 EXTERN int OptLeftMargin;
88 EXTERN int OptWordWrap;
89 #endif
91 #if defined(INCLUDED_SCREEN)
92 EXTERN ScreenImage
93 Host[MAXSCREENSIZE]; /* host view of screen */
95 EXTERN char Orders[256]; /* Non-zero for orders */
97 /* Run-time screen geometry */
98 EXTERN int
99 MaxNumberLines, /* How many rows the 3270 COULD have */
100 MaxNumberColumns, /* How many columns the 3270 COULD have */
101 NumberLines, /* How many lines the 3270 screen contains */
102 NumberColumns, /* How many columns the 3270 screen contains */
103 ScreenSize;
105 EXTERN int CursorAddress; /* where cursor is */
106 EXTERN int BufferAddress; /* where writes are going */
108 EXTERN int Lowest, Highest;
110 extern char CIABuffer[];
112 EXTERN int UnLocked; /* is the keyboard unlocked */
113 EXTERN int AidByte;
115 #endif
117 #if defined(INCLUDED_STATE)
118 #endif
120 void init_system(void);
122 #if defined(INCLUDED_OIA)
124 EXTERN OIA OperatorInformationArea;
126 EXTERN int
127 oia_modified, /* Has the oia been modified */
128 ps_modified; /* Has the presentation space been modified */
130 #endif /* defined(INCLUDED_OIA) */