Symbol: parsefile
bin/sh/eval.c
836
struct parsefile *savetopfile;
bin/sh/input.c
100
static struct parsefile basepf = { /* top level input file */
bin/sh/input.c
104
static struct parsefile *parsefile = &basepf; /* current input file */
bin/sh/input.c
136
parsenextc = parsefile->buf;
bin/sh/input.c
140
if (parsefile->fd == 0 && el) {
bin/sh/input.c
154
memcpy(parsefile->buf, rl_cp, nr);
bin/sh/input.c
163
nr = read(parsefile->fd, parsefile->buf, BUFSIZ);
bin/sh/input.c
169
if (parsefile->fd == 0 && errno == EWOULDBLOCK) {
bin/sh/input.c
201
while (parsefile->strpush) {
bin/sh/input.c
207
if (parsenleft == -1 && parsefile->strpush->ap != NULL)
bin/sh/input.c
213
if (parsenleft == EOF_NLEFT || parsefile->buf == NULL)
bin/sh/input.c
224
p = parsefile->buf + (parsenextc - parsefile->buf);
bin/sh/input.c
255
if (parsefile->fd == 0 && hist &&
bin/sh/input.c
285
if (parsefile->strpush)
bin/sh/input.c
287
if (parsenleft == EOF_NLEFT || parsefile->buf == NULL)
bin/sh/input.c
315
if (parsefile->strpush) {
bin/sh/input.c
317
sp->prev = parsefile->strpush;
bin/sh/input.c
318
parsefile->strpush = sp;
bin/sh/input.c
320
sp = parsefile->strpush = &(parsefile->basestrpush);
bin/sh/input.c
335
struct strpush *sp = parsefile->strpush;
bin/sh/input.c
348
parsefile->strpush = sp->prev;
bin/sh/input.c
349
if (sp != &(parsefile->basestrpush))
bin/sh/input.c
397
parsefile->buf = ckmalloc(BUFSIZ + 1);
bin/sh/input.c
399
if (parsefile->fd > 0)
bin/sh/input.c
400
close(parsefile->fd);
bin/sh/input.c
401
parsefile->fd = fd;
bin/sh/input.c
402
if (parsefile->buf == NULL)
bin/sh/input.c
403
parsefile->buf = ckmalloc(BUFSIZ + 1);
bin/sh/input.c
421
parsefile->buf = NULL;
bin/sh/input.c
436
struct parsefile *pf;
bin/sh/input.c
438
parsefile->nleft = parsenleft;
bin/sh/input.c
439
parsefile->lleft = parselleft;
bin/sh/input.c
440
parsefile->nextc = parsenextc;
bin/sh/input.c
441
parsefile->linno = plinno;
bin/sh/input.c
442
pf = (struct parsefile *)ckmalloc(sizeof (struct parsefile));
bin/sh/input.c
443
pf->prev = parsefile;
bin/sh/input.c
447
parsefile = pf;
bin/sh/input.c
454
struct parsefile *pf = parsefile;
bin/sh/input.c
463
parsefile = pf->prev;
bin/sh/input.c
465
parsenleft = parsefile->nleft;
bin/sh/input.c
466
parselleft = parsefile->lleft;
bin/sh/input.c
467
parsenextc = parsefile->nextc;
bin/sh/input.c
468
plinno = parsefile->linno;
bin/sh/input.c
477
struct parsefile *
bin/sh/input.c
480
return parsefile;
bin/sh/input.c
491
popfilesupto(struct parsefile *file)
bin/sh/input.c
493
while (parsefile != file && parsefile != &basepf)
bin/sh/input.c
495
if (parsefile != file)
bin/sh/input.c
506
while (parsefile != &basepf)
bin/sh/input.c
521
if (parsefile->fd > 0) {
bin/sh/input.c
522
close(parsefile->fd);
bin/sh/input.c
523
parsefile->fd = 0;
bin/sh/input.c
83
struct parsefile *prev; /* preceding file on stack */
bin/sh/input.h
48
struct parsefile;
bin/sh/input.h
60
struct parsefile *getcurrentfile(void);
bin/sh/input.h
61
void popfilesupto(struct parsefile *);
bin/sh/parser.c
1099
struct parsefile *const savetopfile = getcurrentfile();
bin/sh/parser.c
2168
struct parsefile *const savetopfile = getcurrentfile();