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

moving globals into shinstance...

Location:
trunk/src/kash/generated
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/generated/arith.c

    r631 r1198  
    329329                         * concatenate arguments
    330330                         */
    331                         STARTSTACKSTR(concat);
     331                        STARTSTACKSTR(psh, concat);
    332332                        ap = argv + 2;
    333333                        for (;;) {
    334334                                while (*p)
    335                                         STPUTC(*p++, concat);
     335                                        STPUTC(psh, *p++, concat);
    336336                                if ((p = *ap++) == NULL)
    337337                                        break;
    338                                 STPUTC(' ', concat);
     338                                STPUTC(psh, ' ', concat);
    339339                        }
    340                         STPUTC('\0', concat);
    341                         p = grabstackstr(concat);
     340                        STPUTC(psh, '\0', concat);
     341                        p = grabstackstr(psh, concat);
    342342                }
    343343        } else
     
    382382#define YYERROR goto yyerrlab
    383383#ifdef __cplusplus
    384 extern "C" { 
     384extern "C" {
    385385char * getenv();
    386386int yylex();
  • trunk/src/kash/generated/init.c

    r631 r1198  
    4444#define DEFEDITOR       "ed"    /* default editor *should* be $EDITOR */
    4545#undef  editing
    46 #define editing (Eflag || Vflag)
     46#define editing (Eflag(psh) || Vflag(psh))
    4747#undef  EOF_NLEFT
    4848#define EOF_NLEFT -99           /* value of parsenleft when EOF pushed back */
Note: See TracChangeset for help on using the changeset viewer.