Changeset 1203 for trunk/src/kash/shinstance.h
- Timestamp:
- Oct 7, 2007, 3:39:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shinstance.h
r1201 r1203 36 36 #include "options.h" 37 37 38 #include "expand.h" 39 #include "exec.h" 38 40 #include "var.h" 39 41 … … 70 72 }; 71 73 74 /* exec.c */ 75 #define CMDTABLESIZE 31 /* should be prime */ 76 #define ARB 1 /* actual size determined at run time */ 77 78 struct 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 */ 91 struct 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 }; 72 97 73 98 … … 91 116 struct jmploc *handler; 92 117 int exception; 93 int exerrno ;118 int exerrno/* = 0 */; /**< Last exec error */ 94 119 int volatile suppressint; 95 120 int volatile intpending; … … 188 213 const char *pathopt; /**< set by padvance */ 189 214 215 /* exec.c */ 216 struct tblentry *cmdtable[CMDTABLESIZE]; 217 int builtinloc/* = -1*/; /**< index in path of %builtin, or -1 */ 218 219 190 220 /* eval.h */ 191 221 char *commandname; /**< currently executing command */ … … 215 245 /* eval.c */ 216 246 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. */ 217 255 218 256 /* mail.c */ … … 259 297 int sh_sysconf_clk_tck(void); 260 298 261 /* wait */299 /* wait / process */ 262 300 #ifdef _MSC_VER 263 301 # include <process.h> … … 284 322 pid_t sh_waitpid(shinstance *, pid_t, int *, int); 285 323 void sh__exit(shinstance *, int); 286 287 288 #endif 324 int sh_execve(shinstance *, const char *, const char * const*, const char * const *); 325 326 #endif
Note:
See TracChangeset
for help on using the changeset viewer.