Symbol: parsefile
bin/sh/eval.c
900
struct parsefile *volatile savetopfile;
bin/sh/input.c
105
MKINIT struct parsefile basepf; /* top level input file */
bin/sh/input.c
107
struct parsefile *parsefile = &basepf; /* current input file */
bin/sh/input.c
189
char *buf = parsefile->buf;
bin/sh/input.c
194
if (parsefile->fd == 0 && el) {
bin/sh/input.c
216
nr = read(parsefile->fd, buf, BUFSIZ - 8);
bin/sh/input.c
223
if (parsefile->fd == 0 && errno == EWOULDBLOCK) {
bin/sh/input.c
260
while (parsefile->strpush) {
bin/sh/input.c
261
if (parsenleft == -1 && parsefile->strpush->ap != NULL)
bin/sh/input.c
267
if (parsenleft == EOF_NLEFT || parsefile->buf == NULL)
bin/sh/input.c
278
parsefile->nskip = 0;
bin/sh/input.c
282
parsenextc += parsefile->nskip;
bin/sh/input.c
283
parsefile->nskip = 0;
bin/sh/input.c
286
p = parsefile->buf + (parsenextc - parsefile->buf);
bin/sh/input.c
302
parsefile->nskip++;
bin/sh/input.c
322
if (parsefile->nskip)
bin/sh/input.c
343
if (parsefile->fd == 0 && hist && (something || whichprompt == 2)) {
bin/sh/input.c
376
struct strpush *sp = parsefile->strpush;
bin/sh/input.c
397
if (parsenleft == EOF_NLEFT || parsefile->buf == NULL)
bin/sh/input.c
434
if (parsefile->strpush) {
bin/sh/input.c
436
sp->prev = parsefile->strpush;
bin/sh/input.c
437
parsefile->strpush = sp;
bin/sh/input.c
439
sp = parsefile->strpush = &(parsefile->basestrpush);
bin/sh/input.c
455
struct strpush *sp = parsefile->strpush;
bin/sh/input.c
475
parsefile->strpush = sp->prev;
bin/sh/input.c
476
if (sp != &(parsefile->basestrpush))
bin/sh/input.c
538
struct parsefile *pf;
bin/sh/input.c
540
pf = parsefile;
bin/sh/input.c
563
if (parsefile->fd > 0)
bin/sh/input.c
564
sh_close(parsefile->fd);
bin/sh/input.c
565
parsefile->fd = fd;
bin/sh/input.c
566
if (parsefile->buf == NULL)
bin/sh/input.c
567
parsefile->buf = ckmalloc(BUFSIZ);
bin/sh/input.c
608
struct parsefile *pf;
bin/sh/input.c
612
parsefile->fd, parsefile->buf, parsenleft, parselleft,
bin/sh/input.c
615
parsefile->nleft = parsenleft;
bin/sh/input.c
616
parsefile->lleft = parselleft;
bin/sh/input.c
617
parsefile->nextc = parsenextc;
bin/sh/input.c
618
parsefile->linno = plinno;
bin/sh/input.c
619
pf = (struct parsefile *)ckmalloc(sizeof (struct parsefile));
bin/sh/input.c
620
pf->prev = parsefile;
bin/sh/input.c
625
parsefile = pf;
bin/sh/input.c
632
struct parsefile *pf = parsefile;
bin/sh/input.c
641
parsefile = pf->prev;
bin/sh/input.c
643
parsenleft = parsefile->nleft;
bin/sh/input.c
644
parselleft = parsefile->lleft;
bin/sh/input.c
645
parsenextc = parsefile->nextc;
bin/sh/input.c
649
parsefile->fd, parsefile->buf, parsenleft, parselleft,
bin/sh/input.c
650
parsenleft, parsenextc, plinno, parsefile->linno));
bin/sh/input.c
652
plinno = parsefile->linno;
bin/sh/input.c
660
struct parsefile *
bin/sh/input.c
663
return parsefile;
bin/sh/input.c
674
popfilesupto(struct parsefile *file)
bin/sh/input.c
676
while (parsefile != file && parsefile != &basepf)
bin/sh/input.c
678
if (parsefile != file)
bin/sh/input.c
690
while (parsefile != &basepf)
bin/sh/input.c
716
if (parsefile->fd > 0) {
bin/sh/input.c
717
sh_close(parsefile->fd);
bin/sh/input.c
718
parsefile->fd = 0;
bin/sh/input.c
88
struct parsefile *prev; /* preceding file on stack */
bin/sh/input.h
51
struct parsefile;
bin/sh/input.h
64
struct parsefile *getcurrentfile(void);
bin/sh/input.h
65
void popfilesupto(struct parsefile *);
bin/sh/parser.c
1408
struct parsefile *const savetopfile = getcurrentfile();
bin/sh/parser.c
2689
struct parsefile *const savetopfile = getcurrentfile();