linux.cf: always use bison
[oweals/cde.git] / cde / programs / dtksh / variables.c
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: variables.c /main/3 1995/11/01 15:57:22 rswiston $ */
24 /***************************************************************
25 *                                                              *
26 *                      AT&T - PROPRIETARY                      *
27 *                                                              *
28 *        THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF        *
29 *                    AT&T BELL LABORATORIES                    *
30 *         AND IS NOT TO BE DISCLOSED OR USED EXCEPT IN         *
31 *            ACCORDANCE WITH APPLICABLE AGREEMENTS             *
32 *                                                              *
33 *          Copyright (c) 1993 AT&T Bell Laboratories           *
34 *              Unpublished & Not for Publication               *
35 *                     All Rights Reserved                      *
36 *                                                              *
37 *       The copyright notice above does not evidence any       *
38 *      actual or intended publication of such source code      *
39 *                                                              *
40 *               This software was created by the               *
41 *           Advanced Software Technology Department            *
42 *                    AT&T Bell Laboratories                    *
43 *                                                              *
44 *               For further information contact                *
45 *                    {ulysses,attmail}!dgk                     *
46 *                     dgk@ulysses.att.com                      *
47 *                   David Korn 908-582-7975                    *
48 *                                                              *
49 ***************************************************************/
50
51 /* : : generated by proto : : */
52
53 #line 1
54
55 #if !defined(__PROTO__)
56 #if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
57 #if defined(__cplusplus)
58 #define __MANGLE__      "C"
59 #else
60 #define __MANGLE__
61 #endif
62 #define __STDARG__
63 #define __PROTO__(x)    x
64 #define __OTORP__(x)
65 #define __PARAM__(n,o)  n
66 #if !defined(__STDC__) && !defined(__cplusplus)
67 #if !defined(c_plusplus)
68 #define const
69 #endif
70 #define signed
71 #define void            int
72 #define volatile
73 #define __V_            char
74 #else
75 #define __V_            void
76 #endif
77 #else
78 #define __PROTO__(x)    ()
79 #define __OTORP__(x)    x
80 #define __PARAM__(n,o)  o
81 #define __MANGLE__
82 #define __V_            char
83 #define const
84 #define signed
85 #define void            int
86 #define volatile
87 #endif
88 #if defined(__cplusplus) || defined(c_plusplus)
89 #define __VARARG__      ...
90 #else
91 #define __VARARG__
92 #endif
93 #define __VOID__        __V_
94 #if defined(__STDARG__)
95 #define __VA_START__(p,a)       va_start(p,a)
96 #else
97 #define __VA_START__(p,a)       va_start(p)
98 #endif
99 #endif
100
101 #line 3
102 #define mount   _AST__mount
103 #include        <ast.h>
104 #include        "FEATURE/options"
105 #include        "FEATURE/dynamic"
106 #include        <shell.h>
107 #include        "shtable.h"
108 #include        "name.h"
109 #include        "exextra.h"
110 #include        "docall.h"
111 #include        "msgs.h"
112
113
114 /*
115  * This is the list of built-in shell variables and default values
116  * and default attributes.
117  */
118
119 const struct shtable2 shtab_variables[] =
120 {
121         "PATH",         0,                              (char*)0,
122         "PS1",          0,                              (char*)0,
123         "PS2",          NV_NOFREE,                      "> ",
124         "IFS",          NV_NOFREE,                      " \t\n",
125         "PWD",          0,                              (char*)0,
126         "HOME",         0,                              (char*)0,
127         "MAIL",         0,                              (char*)0,
128         "REPLY",        0,                              (char*)0,
129         "SHELL",        NV_NOFREE,                      "/bin/sh",
130         "EDITOR",       0,                              (char*)0,
131         "MAILCHECK",    NV_NOFREE|NV_INTEGER,           (char*)0,
132         "RANDOM",       NV_NOFREE|NV_INTEGER,           (char*)0,
133         "ENV",          0,                              (char*)0,
134         "HISTFILE",     0,                              (char*)0,
135         "HISTSIZE",     0,                              (char*)0,
136         "HISTEDIT",     NV_NOFREE,                      (char*)0,
137         "HISTCMD",      NV_NOFREE|NV_INTEGER,           (char*)0,
138         "FCEDIT",       NV_NOFREE,                      "/bin/ed",
139         "CDPATH",       0,                              (char*)0,
140         "MAILPATH",     0,                              (char*)0,
141         "PS3",          NV_NOFREE,                      "#? ",
142         "OLDPWD",       0,                              (char*)0,
143         "VISUAL",       0,                              (char*)0,
144         "COLUMNS",      0,                              (char*)0,
145         "LINES",        0,                              (char*)0,
146         "PPID",         NV_NOFREE|NV_INTEGER,           (char*)0,
147         "_",            NV_EXPORT,                      (char*)0,
148         "TMOUT",        NV_NOFREE|NV_INTEGER,           (char*)0,
149         "SECONDS",      NV_NOFREE|NV_INTEGER|NV_DOUBLE, (char*)0,
150         "LINENO",       NV_NOFREE|NV_INTEGER,           (char*)0,
151         "OPTARG",       0,                              (char*)0,
152         "OPTIND",       NV_NOFREE|NV_INTEGER,           (char*)0,
153         "PS4",          0,                              (char*)0,
154         "FPATH",        0,                              (char*)0,
155         "LANG",         0,                              (char*)0,
156         "LC_CTYPE",     0,                              (char*)0,
157         "FIGNORE",      0,                              (char*)0,
158         ".sh",          0,                              (char*)0,
159         ".sh.edchar",   0,                              (char*)0,
160         ".sh.edcol",    0,                              (char*)0,
161         ".sh.edtext",   0,                              (char*)0,
162         ".sh.edmode",   0,                              (char*)0,
163         ".sh.name",     0,                              (char*)0,
164         ".sh.subscript",0,                              (char*)0,
165         ".sh.value",    0,                              (char*)0,
166         ".sh.version",  NV_NOFREE,                      (char*)(&e_version[5]),
167 #ifdef SHOPT_FS_3D
168         "VPATH",        0,                              (char*)0,
169 #endif /* SHOPT_FS_3D */
170 #ifdef SHOPT_VPIX
171         "DOSPATH",      0,                              (char*)0,
172         "VPIXDIR",      0,                              (char*)0,
173 #endif  /* SHOPT_VPIX */
174 #ifdef MULTIBYTE
175         "CSWIDTH",      0,                              (char*)0,
176 #endif /* MULTIBYTE */
177 EXKSH_EXTRA_VAR
178         "",     0,                                      (char*)0
179 };
180