Changeset 1198 for trunk/src/kash/var.c


Ignore:
Timestamp:
Oct 6, 2007, 11:19:19 PM (18 years ago)
Author:
bird
Message:

moving globals into shinstance...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/var.c

    r888 r1198  
    228228            if (i > 0)
    229229            {
    230                 psz[0] = psz[1] = psz[2] = psz[3] = '\0'; 
     230                psz[0] = psz[1] = psz[2] = psz[3] = '\0';
    231231                rc = DosQueryExtLIBPATH(psz, i);
    232232            }
     
    365365        int nlen;
    366366
    367         if (aflag)
     367        if (aflag(psh))
    368368                flags |= VEXPORT;
    369369        vp = find_var(s, &vpp, &nlen);
     
    501501                                nenv++;
    502502        }
    503         ep = env = stalloc((nenv + 1) * sizeof *env);
     503        ep = env = stalloc(psh, (nenv + 1) * sizeof *env);
    504504        for (vpp = vartab ; vpp < vartab + VTABSIZE ; vpp++) {
    505505                for (vp = *vpp ; vp ; vp = vp->next)
     
    706706        char *name;
    707707
    708         if (! in_function())
     708        if (! in_function(psh))
    709709                error("Not in a function");
    710710        while ((name = *argptr++) != NULL) {
Note: See TracChangeset for help on using the changeset viewer.