Ignore:
Timestamp:
Oct 7, 2007, 3:39:01 AM (18 years ago)
Author:
bird
Message:

converted a few more files.

File:
1 edited

Legend:

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

    r1201 r1203  
    3636#include "options.h"
    3737
     38#include "expand.h"
     39#include "exec.h"
    3840#include "var.h"
    3941
     
    7072};
    7173
     74/* exec.c */
     75#define CMDTABLESIZE 31         /* should be prime */
     76#define ARB 1                   /* actual size determined at run time */
     77
     78struct tblentry {
     79        struct tblentry *next;  /* next entry in hash chain */
     80        union param param;      /* definition of builtin function */
     81        short cmdtype;          /* index identifying command */
     82        char rehash;            /* if set, cd done since entry created */
     83        char cmdname[ARB];      /* name of command */
     84};
     85
     86/* expand.c */
     87/*
     88 * Structure specifying which parts of the string should be searched
     89 * for IFS characters.
     90 */
     91struct ifsregion {
     92        struct ifsregion *next; /* next region in list */
     93        int begoff;             /* offset of start of region */
     94        int endoff;             /* offset of end of region */
     95        int inquotes;           /* search for nul bytes only */
     96};
    7297
    7398
     
    91116    struct jmploc      *handler;
    92117    int                 exception;
    93     int                 exerrno;
     118    int                 exerrno/* = 0 */; /**< Last exec error */
    94119    int volatile        suppressint;
    95120    int volatile        intpending;
     
    188213    const char         *pathopt;        /**< set by padvance */
    189214
     215    /* exec.c */
     216    struct tblentry    *cmdtable[CMDTABLESIZE];
     217    int                 builtinloc/* = -1*/;    /**< index in path of %builtin, or -1 */
     218
     219
    190220    /* eval.h */
    191221    char               *commandname;    /**< currently executing command */
     
    215245    /* eval.c */
    216246    int                 vforked;
     247
     248    /* expand.c */
     249    char               *expdest;        /**< output of current string */
     250    struct nodelist    *argbackq;       /**< list of back quote expressions */
     251    struct ifsregion    ifsfirst;       /**< first struct in list of ifs regions */
     252    struct ifsregion   *ifslastp;       /**< last struct in list */
     253    struct arglist      exparg;         /**< holds expanded arg list */
     254    char               *expdir;         /**< Used by expandmeta. */
    217255
    218256    /* mail.c */
     
    259297int sh_sysconf_clk_tck(void);
    260298
    261 /* wait */
     299/* wait / process */
    262300#ifdef _MSC_VER
    263301#   include <process.h>
     
    284322pid_t sh_waitpid(shinstance *, pid_t, int *, int);
    285323void sh__exit(shinstance *, int);
    286 
    287 
    288 #endif
     324int sh_execve(shinstance *, const char *, const char * const*, const char * const *);
     325
     326#endif
Note: See TracChangeset for help on using the changeset viewer.