Displaying 4 results from an estimated 4 matches for "preadfd".
Did you mean:
readfd
2019 Jan 25
0
[klibc:update-dash] input: Move all input state into parsefile
...basepf.nleft = 0;
popallfiles();
}
#endif
@@ -131,8 +102,8 @@ RESET {
int
pgetc(void)
{
- if (--parsenleft >= 0)
- return (signed char)*parsenextc++;
+ if (--parsefile->nleft >= 0)
+ return (signed char)*parsefile->nextc++;
else
return preadbuffer();
}
@@ -158,7 +129,7 @@ preadfd(void)
{
int nr;
char *buf = parsefile->buf;
- parsenextc = buf;
+ parsefile->nextc = buf;
retry:
#ifndef SMALL
@@ -225,29 +196,32 @@ static int preadbuffer(void)
while (unlikely(parsefile->strpush)) {
if (
- parsenleft == -1 && parsefile->strpush->ap &&...
2020 Mar 28
0
[klibc:update-dash] dash: input: Move all input state into parsefile
...basepf.nleft = 0;
popallfiles();
}
#endif
@@ -131,8 +102,8 @@ RESET {
int
pgetc(void)
{
- if (--parsenleft >= 0)
- return (signed char)*parsenextc++;
+ if (--parsefile->nleft >= 0)
+ return (signed char)*parsefile->nextc++;
else
return preadbuffer();
}
@@ -158,7 +129,7 @@ preadfd(void)
{
int nr;
char *buf = parsefile->buf;
- parsenextc = buf;
+ parsefile->nextc = buf;
retry:
#ifndef SMALL
@@ -225,29 +196,32 @@ static int preadbuffer(void)
while (unlikely(parsefile->strpush)) {
if (
- parsenleft == -1 && parsefile->strpush->ap &&...
2019 Jan 25
0
[klibc:update-dash] input: Make preadbuffer static
...ut.h | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/usr/dash/input.c b/usr/dash/input.c
index f11ac842..aa5dcfcf 100644
--- a/usr/dash/input.c
+++ b/usr/dash/input.c
@@ -109,6 +109,7 @@ EditLine *el; /* cookie for editline package */
STATIC void pushfile(void);
static int preadfd(void);
static void setinputfd(int fd, int push);
+static int preadbuffer(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;
in...
2020 Mar 28
0
[klibc:update-dash] dash: input: Make preadbuffer static
...ut.h | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/usr/dash/input.c b/usr/dash/input.c
index f11ac842..aa5dcfcf 100644
--- a/usr/dash/input.c
+++ b/usr/dash/input.c
@@ -109,6 +109,7 @@ EditLine *el; /* cookie for editline package */
STATIC void pushfile(void);
static int preadfd(void);
static void setinputfd(int fd, int push);
+static int preadbuffer(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;
in...