Ignore:
Timestamp:
Sep 15, 2020, 2:55:26 PM (5 years ago)
Author:
bird
Message:

kash: Cache one pstack_block since parsecmd seems to be called for each statement line in a script. Also, mark pstack blocks as 'done' before returning from parsecmd and prevent them from becoming current (curpstack) again upon popping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/memalloc.h

    r3458 r3461  
    9494unsigned pstackretainpush(struct shinstance *, struct pstack_block *);
    9595struct pstack_block *pstackallocpush(struct shinstance *);
     96void pstackmarkdone(struct pstack_block *);
    9697#endif
    9798void *pstalloc(struct shinstance *, size_t);
Note: See TracChangeset for help on using the changeset viewer.