Changeset 880 for trunk/src/ash-messup/var.h
- Timestamp:
- Apr 21, 2007, 9:47:39 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/ash-messup/var.h
r879 r880 100 100 */ 101 101 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)102 #define ifsval(psh) ((psh)->vifs.text + 4) 103 #define ifsset(psh) (((psh)->vifs.flags & VUNSET) == 0) 104 #define mailval(psh) ((psh)->vmail.text + 5) 105 #define mpathval(psh) ((psh)->vmpath.text + 9) 106 106 #ifdef _MSC_VER 107 #define pathval( ) (psh->vpath.text[5] ? &psh->vpath.text[5] : &psh->vpath2.text[5])107 #define pathval(psh) ((psh)->vpath.text[5] ? &(psh)->vpath.text[5] : &(psh)->vpath2.text[5]) 108 108 #else 109 #define pathval( ) (psh->vpath.text + 5)109 #define pathval(psh) ((psh)->vpath.text + 5) 110 110 #endif 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)111 #define ps1val(psh) ((psh)->vps1.text + 4) 112 #define ps2val(psh) ((psh)->vps2.text + 4) 113 #define ps4val(psh) ((psh)->vps4.text + 4) 114 #define optindval(psh) ((psh)->voptind.text + 7) 115 115 #ifndef SMALL 116 #define histsizeval( ) (psh->vhistsize.text + 9)117 #define termval( ) (psh->vterm.text + 5)116 #define histsizeval(psh) ((psh)->vhistsize.text + 9) 117 #define termval(psh) ((psh)->vterm.text + 5) 118 118 #endif 119 119 120 120 #if ATTY 121 #define attyset( ) ((psh->vatty.flags & VUNSET) == 0)121 #define attyset(psh) (((psh)->vatty.flags & VUNSET) == 0) 122 122 #endif 123 #define mpathset( ) ((psh->vmpath.flags & VUNSET) == 0)123 #define mpathset(psh) (((psh)->vmpath.flags & VUNSET) == 0) 124 124 125 125 void initvar(struct shinstance *);
Note:
See TracChangeset
for help on using the changeset viewer.