Ignore:
Timestamp:
Apr 21, 2007, 9:47:39 AM (18 years ago)
Author:
bird
Message:

hacking...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ash-messup/var.h

    r879 r880  
    100100 */
    101101
    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)
    106106#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])
    108108#else
    109 #define pathval()       (psh->vpath.text + 5)
     109#define pathval(psh)    ((psh)->vpath.text + 5)
    110110#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)
    115115#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)
    118118#endif
    119119
    120120#if ATTY
    121 #define attyset()       ((psh->vatty.flags & VUNSET) == 0)
     121#define attyset(psh)    (((psh)->vatty.flags & VUNSET) == 0)
    122122#endif
    123 #define mpathset()      ((psh->vmpath.flags & VUNSET) == 0)
     123#define mpathset(psh)   (((psh)->vmpath.flags & VUNSET) == 0)
    124124
    125125void initvar(struct shinstance *);
Note: See TracChangeset for help on using the changeset viewer.