Displaying 2 results from an estimated 2 matches for "d31c45bb".
Did you mean:
3d145bb
2019 Jan 25
0
[klibc:update-dash] [INPUT] Kill pgetc_macro
...Xu <herbert 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 = pg...
2020 Mar 28
0
[klibc:update-dash] dash: [INPUT] Kill pgetc_macro
...Xu <herbert 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 = pg...