Ignore:
Timestamp:
Sep 13, 2020, 1:17:09 PM (5 years ago)
Author:
bird
Message:

kash: Eliminate the 'temp' node field in nfile so we can share node trees later.

File:
1 edited

Legend:

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

    r3447 r3449  
    131131        int inquotes;           /* search for nul bytes only */
    132132};
     133
     134/* redir.c / bird */
     135/**
     136 * This is a replacement for temporary node field nfile.expfname.
     137 * Uses stack allocator, created by expredir(), duplicated by
     138 * subshellinitredir() and popped (but not freed) by expredircleanup().
     139 */
     140typedef struct redirexpfnames
     141{
     142    struct redirexpfnames *prev;        /**< Previous record. */
     143    unsigned            depth;          /**< Nesting depth. */
     144    unsigned            count;          /**< Number of expanded filenames in the array. */
     145    char               *names[1];       /**< Variable size. */
     146} redirexpfnames;
    133147
    134148
     
    311325    struct redirtab    *redirlist;
    312326    int                 fd0_redirected/* = 0*/;
     327    redirexpfnames     *expfnames;      /**< Expanded filenames for current redirection setup. */
    313328
    314329    /* show.c */
Note: See TracChangeset for help on using the changeset viewer.