Changeset 879 for trunk/src/ash-messup/var.h
- Timestamp:
- Apr 21, 2007, 8:33:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ash-messup/var.h
r637 r879 71 71 }; 72 72 73 73 /* 74 74 struct localvar *localvars; 75 75 … … 92 92 extern struct var vhistsize; 93 93 #endif 94 */ 94 95 95 96 /* … … 99 100 */ 100 101 101 #define ifsval() ( vifs.text + 4)102 #define ifsset() (( vifs.flags & VUNSET) == 0)103 #define mailval() ( vmail.text + 5)104 #define mpathval() ( vmpath.text + 9)102 #define ifsval() (psh->vifs.text + 4) 103 #define ifsset() ((psh->vifs.flags & VUNSET) == 0) 104 #define mailval() (psh->vmail.text + 5) 105 #define mpathval() (psh->vmpath.text + 9) 105 106 #ifdef _MSC_VER 106 #define pathval() ( vpath.text[5] ? &vpath.text[5] : &vpath2.text[5])107 #define pathval() (psh->vpath.text[5] ? &psh->vpath.text[5] : &psh->vpath2.text[5]) 107 108 #else 108 #define pathval() ( vpath.text + 5)109 #define pathval() (psh->vpath.text + 5) 109 110 #endif 110 #define ps1val() ( vps1.text + 4)111 #define ps2val() ( vps2.text + 4)112 #define ps4val() ( vps4.text + 4)113 #define optindval() ( voptind.text + 7)111 #define ps1val() (psh->vps1.text + 4) 112 #define ps2val() (psh->vps2.text + 4) 113 #define ps4val() (psh->vps4.text + 4) 114 #define optindval() (psh->voptind.text + 7) 114 115 #ifndef SMALL 115 #define histsizeval() ( vhistsize.text + 9)116 #define termval() ( vterm.text + 5)116 #define histsizeval() (psh->vhistsize.text + 9) 117 #define termval() (psh->vterm.text + 5) 117 118 #endif 118 119 119 120 #if ATTY 120 #define attyset() (( vatty.flags & VUNSET) == 0)121 #define attyset() ((psh->vatty.flags & VUNSET) == 0) 121 122 #endif 122 #define mpathset() (( vmpath.flags & VUNSET) == 0)123 #define mpathset() ((psh->vmpath.flags & VUNSET) == 0) 123 124 124 void initvar( void);125 void setvar( const char *, const char *, int);126 void setvareq( char *, int);125 void initvar(struct shinstance *); 126 void setvar(struct shinstance *, const char *, const char *, int); 127 void setvareq(struct shinstance *, char *, int); 127 128 struct strlist; 128 void listsetvar(struct s trlist *, int);129 char *lookupvar( const char *);130 char *bltinlookup( const char *, int);131 char **environment( void);132 void shprocvar( void);133 int showvars( const char *, int, int);134 int exportcmd( int, char **);135 int localcmd( int, char **);136 void mklocal( const char *, int);137 void listmklocal(struct s trlist *, int);138 void poplocalvars( void);139 int setvarcmd( int, char **);140 int unsetcmd( int, char **);141 int unsetvar( const char *, int);142 int setvarsafe( const char *, const char *, int);143 void print_quoted( const char *);129 void listsetvar(struct shinstance *, struct strlist *, int); 130 char *lookupvar(struct shinstance *, const char *); 131 char *bltinlookup(struct shinstance *, const char *, int); 132 char **environment(struct shinstance *); 133 void shprocvar(struct shinstance *); 134 int showvars(struct shinstance *, const char *, int, int); 135 int exportcmd(struct shinstance *, int, char **); 136 int localcmd(struct shinstance *, int, char **); 137 void mklocal(struct shinstance *, const char *, int); 138 void listmklocal(struct shinstance *, struct strlist *, int); 139 void poplocalvars(struct shinstance *); 140 int setvarcmd(struct shinstance *, int, char **); 141 int unsetcmd(struct shinstance *, int, char **); 142 int unsetvar(struct shinstance *, const char *, int); 143 int setvarsafe(struct shinstance *, const char *, const char *, int); 144 void print_quoted(struct shinstance *, const char *);
Note:
See TracChangeset
for help on using the changeset viewer.