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/shinstance.c

    r883 r1198  
    3030/**
    3131 * Creates a root shell instance.
    32  * 
     32 *
    3333 * @param   inherit     The shell to inherit from. If NULL inherit from environment and such.
    3434 * @param   argc        The argument count.
    3535 * @param   argv        The argument vector.
    36  * 
     36 *
    3737 * @returns pointer to root shell on success, NULL on failure.
    3838 */
     
    4545    {
    4646        memset(psh, 0, sizeof(*psh));
    47         psh->
     47
     48        /* memalloc.c */
     49        psh->stacknleft = MINSIZE;
     50        psh->herefd = -1;
     51        psh->stackp = &psh->stackbase;
     52        psh->stacknxt = psh->stackbase.space;
     53
    4854    }
    4955    return psh;
Note: See TracChangeset for help on using the changeset viewer.