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