Changeset 3475 for trunk/src/kash/exec.h


Ignore:
Timestamp:
Sep 16, 2020, 11:18:31 PM (5 years ago)
Author:
bird
Message:

kash: exec.c/h+eval.c: Fixed no-rehashing-needed optimizations so they work for windows and OS/2 as well (UNIX-specific abspath detection). Cache the suffix found by stat_pc_exec_exts so that we don't have to repeat it 2 microseconds after find_command called it. Use the specialized shfile_stat variants where possible. eval.c: Fixed double free of commandname in evalcommand_doit.

File:
1 edited

Legend:

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

    r3438 r3475  
    4747
    4848union param {
    49         int index;
     49        struct
     50        {
     51            int index;
     52            int suffix; /* PC suffix index */
     53        } n;
    5054        int (*bltin)(struct shinstance*, int, char**);
    5155        union node *func;
     
    7478void subshellinitexec(shinstance *, shinstance *);
    7579#endif
    76 SH_NORETURN_1 void shellexec(struct shinstance *, char **, char **, const char *, int) SH_NORETURN_2;
     80SH_NORETURN_1 void shellexec(struct shinstance *, char **, char **, const char *, int, int) SH_NORETURN_2;
    7781char *padvance(struct shinstance *, const char **, const char *);
    7882int hashcmd(struct shinstance *, int, char **);
Note: See TracChangeset for help on using the changeset viewer.