Release 4.1
[unix-history] / usr / src / usr.bin / tn3270 / general / globals.c
CommitLineData
ece54d17 1/*
584449f4
KB
2 * Copyright (c) 1988 Regents of the University of California.
3 * All rights reserved.
ece54d17 4 *
584449f4 5 * Redistribution and use in source and binary forms are permitted
b36fc510
KB
6 * provided that the above copyright notice and this paragraph are
7 * duplicated in all such forms and that any documentation,
8 * advertising materials, and other materials related to such
9 * distribution and use acknowledge that the software was developed
10 * by the University of California, Berkeley. The name of the
11 * University may not be used to endorse or promote products derived
12 * from this software without specific prior written permission.
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
ece54d17
GM
16 */
17
584449f4 18#ifndef lint
d43d1075 19static char sccsid[] = "@(#)globals.c 4.1 (Berkeley) %G%";
584449f4 20#endif /* not lint */
ece54d17
GM
21
22/*
23 * Do the defining instances for the globals of tn3270.
24 */
25
26#include "../ctlr/hostctlr.h"
f5c3cf83 27#include "../ctlr/oia.h"
ece54d17
GM
28#include "../ctlr/options.h"
29#include "../ctlr/screen.h"
ece54d17
GM
30
31
32#define DEFINING_INSTANCES
33
34#include "globals.h"
19003317 35
7a8dddcf 36#include "../general/general.h"
19003317
GM
37
38/*
39 * init_system()
40 *
41 * Initialize the global values in case of a restart.
42 */
43
44void
45init_system()
46{
47 OptHome = OptLeftMargin = OptAPLmode = OptNullProcessing = 0;
48 OptZonesMode = OptEnterNL = OptColFieldTab = OptPacing = 0;
49 OptAlphaInNumeric = OptHome = OptLeftMargin = OptWordWrap = 0;
50
51 ClearArray(Host);
19003317
GM
52 CursorAddress = BufferAddress = 0;
53
54 Lowest = Highest = 0;
55
56 UnLocked = AidByte = 0;
57
58}