Changeset 1201 for trunk/src/kash/shinstance.h
- Timestamp:
- Oct 7, 2007, 1:57:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shinstance.h
r1199 r1201 27 27 #ifndef ___shinstance_h___ 28 28 #define ___shinstance_h___ 29 30 #include <stdio.h> /* BUFSIZ */ 29 31 30 32 #include "shtypes.h" … … 36 38 #include "var.h" 37 39 40 /* memalloc.c */ 38 41 #define MINSIZE 504 /* minimum size of a block */ 39 42 struct stack_block { … … 41 44 char space[MINSIZE]; 42 45 }; 46 47 /* input.c */ 48 struct strpush { 49 struct strpush *prev; /* preceding string on stack */ 50 char *prevstring; 51 int prevnleft; 52 int prevlleft; 53 struct alias *ap; /* if push was associated with an alias */ 54 }; 55 56 /* 57 * The parsefile structure pointed to by the global variable parsefile 58 * contains information about the current file being read. 59 */ 60 struct parsefile { 61 struct parsefile *prev; /* preceding file on stack */ 62 int linno; /* current line */ 63 int fd; /* file descriptor (or -1 if string) */ 64 int nleft; /* number of chars left in this line */ 65 int lleft; /* number of chars left in this buffer */ 66 char *nextc; /* next char in buffer */ 67 char *buf; /* input buffer */ 68 struct strpush *strpush; /* for pushing strings at this level */ 69 struct strpush basestrpush; /* so pushing one is fast */ 70 }; 71 43 72 44 73 … … 136 165 struct stackmark *markp; 137 166 138 139 167 /* jobs.h */ 140 168 pid_t backgndpid; /**< pid of last background process */ … … 142 170 143 171 /* input.h */ 144 int plinno ;172 int plinno/* = 1 */;/**< input line number */ 145 173 int parsenleft; /**< number of characters left in input buffer */ 146 174 char *parsenextc; /**< next character in input buffer */ 147 int init_editline; /**< 0 == not setup, 1 == OK, -1 == failed */ 175 int init_editline/* = 0 */; /**< 0 == not setup, 1 == OK, -1 == failed */ 176 177 /* input.c */ 178 int parselleft; /**< copy of parsefile->lleft */ 179 struct parsefile basepf; /**< top level input file */ 180 char basebuf[BUFSIZ];/**< buffer for top level input file */ 181 struct parsefile *parsefile/* = &basepf*/; /**< current input file */ 182 #ifndef SMALL 183 EditLine *el; /**< cookie for editline package */ 184 #endif 185 148 186 149 187 /* exec.h */
Note:
See TracChangeset
for help on using the changeset viewer.