search for: 90ff6c33

Displaying 4 results from an estimated 4 matches for "90ff6c33".

2019 Jan 25
0
[klibc:update-dash] input: Make preadbuffer static
...r(void); #ifdef mkinit INCLUDE <stdio.h> @@ -222,8 +223,7 @@ retry: * 4) Process input up to the next newline, deleting nul characters. */ -int -preadbuffer(void) +static int preadbuffer(void) { char *q; int more; diff --git a/usr/dash/input.h b/usr/dash/input.h index 775291b8..90ff6c33 100644 --- a/usr/dash/input.h +++ b/usr/dash/input.h @@ -52,7 +52,6 @@ extern char *parsenextc; /* next character in input buffer */ int pgetc(void); int pgetc2(void); -int preadbuffer(void); void pungetc(void); void pushstring(char *, void *); void popstring(void);
2020 Mar 28
0
[klibc:update-dash] dash: input: Make preadbuffer static
...r(void); #ifdef mkinit INCLUDE <stdio.h> @@ -222,8 +223,7 @@ retry: * 4) Process input up to the next newline, deleting nul characters. */ -int -preadbuffer(void) +static int preadbuffer(void) { char *q; int more; diff --git a/usr/dash/input.h b/usr/dash/input.h index 775291b8..90ff6c33 100644 --- a/usr/dash/input.h +++ b/usr/dash/input.h @@ -52,7 +52,6 @@ extern char *parsenextc; /* next character in input buffer */ int pgetc(void); int pgetc2(void); -int preadbuffer(void); void pungetc(void); void pushstring(char *, void *); void popstring(void);
2019 Jan 25
0
[klibc:update-dash] input: Move all input state into parsefile
...@ -486,10 +457,6 @@ popfile(void) popstring(); parsefile = pf->prev; ckfree(pf); - parsenleft = parsefile->nleft; - parselleft = parsefile->lleft; - parsenextc = parsefile->nextc; - plinno = parsefile->linno; INTON; } diff --git a/usr/dash/input.h b/usr/dash/input.h index 90ff6c33..ad8b463d 100644 --- a/usr/dash/input.h +++ b/usr/dash/input.h @@ -41,14 +41,41 @@ enum { INPUT_NOFILE_OK = 2, }; +struct alias; + +struct strpush { + struct strpush *prev; /* preceding string on stack */ + char *prevstring; + int prevnleft; + struct alias *ap; /* if push was associated with a...
2020 Mar 28
0
[klibc:update-dash] dash: input: Move all input state into parsefile
...@ -486,10 +457,6 @@ popfile(void) popstring(); parsefile = pf->prev; ckfree(pf); - parsenleft = parsefile->nleft; - parselleft = parsefile->lleft; - parsenextc = parsefile->nextc; - plinno = parsefile->linno; INTON; } diff --git a/usr/dash/input.h b/usr/dash/input.h index 90ff6c33..ad8b463d 100644 --- a/usr/dash/input.h +++ b/usr/dash/input.h @@ -41,14 +41,41 @@ enum { INPUT_NOFILE_OK = 2, }; +struct alias; + +struct strpush { + struct strpush *prev; /* preceding string on stack */ + char *prevstring; + int prevnleft; + struct alias *ap; /* if push was associated with a...