Displaying 4 results from an estimated 4 matches for "9e533a47".
2019 Jan 25
0
[klibc:update-dash] [INPUT] Kill pgetc_macro
...rbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/input.c | 7 +++++--
usr/dash/input.h | 3 ---
usr/dash/parser.c | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/usr/dash/input.c b/usr/dash/input.c
index d31c45bb..9e533a47 100644
--- a/usr/dash/input.c
+++ b/usr/dash/input.c
@@ -134,7 +134,10 @@ RESET {
int
pgetc(void)
{
- return pgetc_macro();
+ if (--parsenleft >= 0)
+ return (signed char)*parsenextc++;
+ else
+ return preadbuffer();
}
@@ -147,7 +150,7 @@ pgetc2()
{
int c;
do {
- c = pgetc_macro(...
2019 Jan 25
0
[klibc:update-dash] [INPUT] Replace open-coded flushall in preadbuffer
...e open-coded flushall in preadbuffer
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/input.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/usr/dash/input.c b/usr/dash/input.c
index 9e533a47..f11ac842 100644
--- a/usr/dash/input.c
+++ b/usr/dash/input.c
@@ -245,10 +245,7 @@ preadbuffer(void)
}
if (unlikely(parsenleft == EOF_NLEFT || parsefile->buf == NULL))
return PEOF;
- flushout(&output);
-#ifdef FLUSHERR
- flushout(&errout);
-#endif
+ flushall();
more = parsell...
2020 Mar 28
0
[klibc:update-dash] dash: [INPUT] Kill pgetc_macro
...rbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/input.c | 7 +++++--
usr/dash/input.h | 3 ---
usr/dash/parser.c | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/usr/dash/input.c b/usr/dash/input.c
index d31c45bb..9e533a47 100644
--- a/usr/dash/input.c
+++ b/usr/dash/input.c
@@ -134,7 +134,10 @@ RESET {
int
pgetc(void)
{
- return pgetc_macro();
+ if (--parsenleft >= 0)
+ return (signed char)*parsenextc++;
+ else
+ return preadbuffer();
}
@@ -147,7 +150,7 @@ pgetc2()
{
int c;
do {
- c = pgetc_macro(...
2020 Mar 28
0
[klibc:update-dash] dash: [INPUT] Replace open-coded flushall in preadbuffer
...3f6424e801ccddda8894aad04d24333f82 ]
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/dash/input.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/usr/dash/input.c b/usr/dash/input.c
index 9e533a47..f11ac842 100644
--- a/usr/dash/input.c
+++ b/usr/dash/input.c
@@ -245,10 +245,7 @@ preadbuffer(void)
}
if (unlikely(parsenleft == EOF_NLEFT || parsefile->buf == NULL))
return PEOF;
- flushout(&output);
-#ifdef FLUSHERR
- flushout(&errout);
-#endif
+ flushall();
more = parsell...