Displaying 9 results from an estimated 9 matches for "arinest".
2019 Jan 25
0
[klibc:update-dash] parser: Add syntax stack for recursive parsing
...k_pop(struct synstack **stack)
+{
+ *stack = (*stack)->next;
+}
+
/*
@@ -870,24 +897,15 @@ readtoken1(int firstc, char const *syntax, char *eofmark, int striptabs)
size_t len;
struct nodelist *bqlist;
int quotef;
- int dblquote;
- int varnest; /* levels of variables expansion */
- int arinest; /* levels of arithmetic expansion */
- int parenlevel; /* levels of parens in arithmetic */
- int dqvarnest; /* levels of variables expansion within double quotes */
int oldstyle;
- /* syntax before arithmetic */
- char const *uninitialized_var(prevsyntax);
+ /* syntax stack */
+ struct synstack...
2020 Mar 28
0
[klibc:update-dash] dash: parser: Add syntax stack for recursive parsing
...k_pop(struct synstack **stack)
+{
+ *stack = (*stack)->next;
+}
+
/*
@@ -870,24 +897,15 @@ readtoken1(int firstc, char const *syntax, char *eofmark, int striptabs)
size_t len;
struct nodelist *bqlist;
int quotef;
- int dblquote;
- int varnest; /* levels of variables expansion */
- int arinest; /* levels of arithmetic expansion */
- int parenlevel; /* levels of parens in arithmetic */
- int dqvarnest; /* levels of variables expansion within double quotes */
int oldstyle;
- /* syntax before arithmetic */
- char const *uninitialized_var(prevsyntax);
+ /* syntax stack */
+ struct synstack...
2010 Mar 22
1
[git pull] dash, sh4, README's
...process group on exit
[klibc] [SHELL] Move flushall to the point just before _exit
[klibc] [EXPAND] Do not quote back slashes in parameter expansions outside quotes
[klibc] [EXPAND] Perform tilde expansion in all parameter expansion words
[klibc] [PARSER] Remove superfluous arinest test in CENDQUOTE
[klibc] [PARSER] Remove superfluous arinest test for dqvarnest
[klibc] [PARSER] Remove superfluous dblquote settings when ending arith
[klibc] [PARSER] Remove arithmetic expansion collapsing at parse time
[klibc] [EXPAND] Do not expand tilde in parameter ex...
2010 Apr 16
0
[git pull v4] dash, sh4, ipconfig, dprintf, fstype, README's
...process group on exit
[klibc] [SHELL] Move flushall to the point just before _exit
[klibc] [EXPAND] Do not quote back slashes in parameter expansions outside quotes
[klibc] [EXPAND] Perform tilde expansion in all parameter expansion words
[klibc] [PARSER] Remove superfluous arinest test in CENDQUOTE
[klibc] [PARSER] Remove superfluous arinest test for dqvarnest
[klibc] [PARSER] Remove superfluous dblquote settings when ending arith
[klibc] [PARSER] Remove arithmetic expansion collapsing at parse time
[klibc] [EXPAND] Do not expand tilde in parameter ex...
2010 Apr 16
0
[PATCH] pull faccessat() system call
...process group on exit
[klibc] [SHELL] Move flushall to the point just before _exit
[klibc] [EXPAND] Do not quote back slashes in parameter expansions outside quotes
[klibc] [EXPAND] Perform tilde expansion in all parameter expansion words
[klibc] [PARSER] Remove superfluous arinest test in CENDQUOTE
[klibc] [PARSER] Remove superfluous arinest test for dqvarnest
[klibc] [PARSER] Remove superfluous dblquote settings when ending arith
[klibc] [PARSER] Remove arithmetic expansion collapsing at parse time
[klibc] [EXPAND] Do not expand tilde in parameter ex...
2010 Mar 28
1
[git pull v3] dash, sh4, ipconfig, dprintf, fstype, README's
...process group on exit
[klibc] [SHELL] Move flushall to the point just before _exit
[klibc] [EXPAND] Do not quote back slashes in parameter expansions outside quotes
[klibc] [EXPAND] Perform tilde expansion in all parameter expansion words
[klibc] [PARSER] Remove superfluous arinest test in CENDQUOTE
[klibc] [PARSER] Remove superfluous arinest test for dqvarnest
[klibc] [PARSER] Remove superfluous dblquote settings when ending arith
[klibc] [PARSER] Remove arithmetic expansion collapsing at parse time
[klibc] [EXPAND] Do not expand tilde in parameter ex...
2006 Jan 08
2
[mips] pipe doesn't work in dash
...gjmp' or 'vfork'
dash/parser.c:843: warning: variable 'dblquote' might be clobbered by 'longjmp' or 'vfork'
dash/parser.c:844: warning: variable 'varnest' might be clobbered by 'longjmp' or 'vfork'
dash/parser.c:845: warning: variable 'arinest' might be clobbered by 'longjmp' or 'vfork'
dash/parser.c:846: warning: variable 'parenlevel' might be clobbered by 'longjmp' or 'vfork'
dash/parser.c:847: warning: variable 'dqvarnest' might be clobbered by 'longjmp' or 'vfork'
da...
2019 Jan 25
0
[klibc:update-dash] parser: use pgetc_eatbnl() in more places
...'\n') {
- nlprompt();
} else {
if (
dblquote &&
@@ -997,7 +989,7 @@ quotemark:
USTPUTC(c, out);
--parenlevel;
} else {
- if (pgetc() == ')') {
+ if (pgetc_eatbnl() == ')') {
USTPUTC(CTLENDARI, out);
if (!--arinest)
syntax = prevsyntax;
@@ -1025,7 +1017,7 @@ quotemark:
USTPUTC(c, out);
}
}
- c = pgetc();
+ c = syntax == SQSYNTAX ? pgetc() : pgetc_eatbnl();
}
}
endword:
@@ -1132,7 +1124,7 @@ parseredir: {
np = (union node *)stalloc(sizeof (struct nfile));
if (c == '>...
2020 Mar 28
0
[klibc:update-dash] dash: parser: use pgetc_eatbnl() in more places
...'\n') {
- nlprompt();
} else {
if (
dblquote &&
@@ -997,7 +989,7 @@ quotemark:
USTPUTC(c, out);
--parenlevel;
} else {
- if (pgetc() == ')') {
+ if (pgetc_eatbnl() == ')') {
USTPUTC(CTLENDARI, out);
if (!--arinest)
syntax = prevsyntax;
@@ -1025,7 +1017,7 @@ quotemark:
USTPUTC(c, out);
}
}
- c = pgetc();
+ c = syntax == SQSYNTAX ? pgetc() : pgetc_eatbnl();
}
}
endword:
@@ -1132,7 +1124,7 @@ parseredir: {
np = (union node *)stalloc(sizeof (struct nfile));
if (c == '>...