variables.h revision 1
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe/***********************************************************************
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* This software is part of the ast package *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* Copyright (c) 1982-2011 AT&T Intellectual Property *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* and is licensed under the *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* Common Public License, Version 1.0 *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* by AT&T Intellectual Property *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* A copy of the License is available at *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* http://www.opensource.org/licenses/cpl1.0.txt *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov* *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* Information and Software Systems Research *
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov* AT&T Research *
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi* Florham Park NJ *
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov* *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe* David Korn <dgk@research.att.com> *
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov* *
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe***********************************************************************/
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov#pragma prototyped
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#ifndef SH_VALNOD
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#include <option.h>
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#include "FEATURE/options"
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#include "FEATURE/dynamic"
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi/* The following defines are coordinated with data in data/variables.c */
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define PATHNOD (shgd->bltin_nodes)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define PS1NOD (shgd->bltin_nodes+1)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define PS2NOD (shgd->bltin_nodes+2)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define IFSNOD (shgd->bltin_nodes+3)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define PWDNOD (shgd->bltin_nodes+4)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define HOME (shgd->bltin_nodes+5)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define MAILNOD (shgd->bltin_nodes+6)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define REPLYNOD (shgd->bltin_nodes+7)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SHELLNOD (shgd->bltin_nodes+8)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define EDITNOD (shgd->bltin_nodes+9)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define MCHKNOD (shgd->bltin_nodes+10)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define RANDNOD (shgd->bltin_nodes+11)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define ENVNOD (shgd->bltin_nodes+12)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define HISTFILE (shgd->bltin_nodes+13)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define HISTSIZE (shgd->bltin_nodes+14)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define HISTEDIT (shgd->bltin_nodes+15)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define HISTCUR (shgd->bltin_nodes+16)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define FCEDNOD (shgd->bltin_nodes+17)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define CDPNOD (shgd->bltin_nodes+18)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define MAILPNOD (shgd->bltin_nodes+19)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define PS3NOD (shgd->bltin_nodes+20)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define OLDPWDNOD (shgd->bltin_nodes+21)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define VISINOD (shgd->bltin_nodes+22)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define COLUMNS (shgd->bltin_nodes+23)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define LINES (shgd->bltin_nodes+24)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define PPIDNOD (shgd->bltin_nodes+25)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define L_ARGNOD (shgd->bltin_nodes+26)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define TMOUTNOD (shgd->bltin_nodes+27)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SECONDS (shgd->bltin_nodes+28)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define LINENO (shgd->bltin_nodes+29)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define OPTARGNOD (shgd->bltin_nodes+30)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define OPTINDNOD (shgd->bltin_nodes+31)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define PS4NOD (shgd->bltin_nodes+32)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define FPATHNOD (shgd->bltin_nodes+33)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define LANGNOD (shgd->bltin_nodes+34)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define LCALLNOD (shgd->bltin_nodes+35)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define LCCOLLNOD (shgd->bltin_nodes+36)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define LCTYPENOD (shgd->bltin_nodes+37)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define LCMSGNOD (shgd->bltin_nodes+38)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define LCNUMNOD (shgd->bltin_nodes+39)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define FIGNORENOD (shgd->bltin_nodes+40)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define VERSIONNOD (shgd->bltin_nodes+41)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define JOBMAXNOD (shgd->bltin_nodes+42)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define DOTSHNOD (shgd->bltin_nodes+43)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define ED_CHRNOD (shgd->bltin_nodes+44)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define ED_COLNOD (shgd->bltin_nodes+45)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define ED_TXTNOD (shgd->bltin_nodes+46)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define ED_MODENOD (shgd->bltin_nodes+47)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_NAMENOD (shgd->bltin_nodes+48)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_SUBSCRNOD (shgd->bltin_nodes+49)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_VALNOD (shgd->bltin_nodes+50)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_VERSIONNOD (shgd->bltin_nodes+51)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_DOLLARNOD (shgd->bltin_nodes+52)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_MATCHNOD (shgd->bltin_nodes+53)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_COMMANDNOD (shgd->bltin_nodes+54)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_PATHNAMENOD (shgd->bltin_nodes+55)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_FUNNAMENOD (shgd->bltin_nodes+56)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_SUBSHELLNOD (shgd->bltin_nodes+57)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_LEVELNOD (shgd->bltin_nodes+58)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_LINENO (shgd->bltin_nodes+59)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_STATS (shgd->bltin_nodes+60)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_MATHNOD (shgd->bltin_nodes+61)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SH_JOBPOOL (shgd->bltin_nodes+62)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#define SHLVL (shgd->bltin_nodes+63)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#if SHOPT_FS_3D
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi# define VPATHNOD (shgd->bltin_nodes+64)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi# define NFS_3D 1
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#else
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi# define NFS_3D 0
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#endif /* SHOPT_FS_3D */
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#if SHOPT_VPIX
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi# define DOSPATHNOD (shgd->bltin_nodes+64+NFS_3D)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi# define VPIXNOD (shgd->bltin_nodes+65+NFS_3D)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi# define NVPIX (NFS_3D+2)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#else
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi# define NVPIX NFS_3D
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#endif /* SHOPT_VPIX */
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#ifdef apollo
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi# define SYSTYPENOD (shgd->bltin_nodes+63+NVPIX)
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#endif /* apollo */
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi#endif /* SH_VALNOD */
43051d2742bbe5911de73322064cb573b6aff975Robert Mustacchi