search for: unot

Displaying 18 results from an estimated 18 matches for "unot".

Did you mean: not
2017 Mar 16
4
Support for user defined unary functions
...============================================================== --- src/main/gram.y (revision 72358) +++ src/main/gram.y (working copy) @@ -357,6 +357,7 @@ | '+' expr %prec UMINUS { $$ = xxunary($1,$2); setId( $$, @$); } | '!' expr %prec UNOT { $$ = xxunary($1,$2); setId( $$, @$); } | '~' expr %prec TILDE { $$ = xxunary($1,$2); setId( $$, @$); } + | SPECIAL expr { $$ = xxunary($1,$2); setId( $$, @$); } | '?' expr {...
2019 Jan 25
0
[klibc:update-dash] [BUILTIN] Fixed argument parsing crash in test
...10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/usr/dash/bltin/test.c b/usr/dash/bltin/test.c index 90135e14..baa91a57 100644 --- a/usr/dash/bltin/test.c +++ b/usr/dash/bltin/test.c @@ -268,9 +268,13 @@ aexpr(enum token n) static int nexpr(enum token n) { - if (n == UNOT) - return !nexpr(t_lex(++t_wp)); - return primary(n); + if (n != UNOT) + return primary(n); + + n = t_lex(t_wp + 1); + if (n != EOI) + t_wp++; + return !nexpr(n); } static int
2020 Mar 28
0
[klibc:update-dash] dash: [BUILTIN] Fixed argument parsing crash in test
...10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/usr/dash/bltin/test.c b/usr/dash/bltin/test.c index 90135e14..baa91a57 100644 --- a/usr/dash/bltin/test.c +++ b/usr/dash/bltin/test.c @@ -268,9 +268,13 @@ aexpr(enum token n) static int nexpr(enum token n) { - if (n == UNOT) - return !nexpr(t_lex(++t_wp)); - return primary(n); + if (n != UNOT) + return primary(n); + + n = t_lex(t_wp + 1); + if (n != EOI) + t_wp++; + return !nexpr(n); } static int
2017 Mar 16
2
Support for user defined unary functions
...======== >> --- src/main/gram.y (revision 72358) >> +++ src/main/gram.y (working copy) >> @@ -357,6 +357,7 @@ >> | '+' expr %prec UMINUS { $$ = xxunary($1,$2); >> setId( $$, @$); } >> | '!' expr %prec UNOT { $$ = xxunary($1,$2); >> setId( $$, @$); } >> | '~' expr %prec TILDE { $$ = xxunary($1,$2); >> setId( $$, @$); } >> + | SPECIAL expr { $$ = xxunary($1,$2); >> setId( $$, @$); } >>...
2017 Mar 16
2
Support for user defined unary functions
...ion 72358) > >>> +++ src/main/gram.y (working copy) > >>> @@ -357,6 +357,7 @@ > >>> | '+' expr %prec UMINUS { $$ = xxunary($1,$2); > >>> setId( $$, @$); } > >>> | '!' expr %prec UNOT { $$ = xxunary($1,$2); > >>> setId( $$, @$); } > >>> | '~' expr %prec TILDE { $$ = xxunary($1,$2); > >>> setId( $$, @$); } > >>> + | SPECIAL expr { $$ = > xxunary($...
2017 Mar 16
0
Support for user defined unary functions
...================================ > --- src/main/gram.y (revision 72358) > +++ src/main/gram.y (working copy) > @@ -357,6 +357,7 @@ > | '+' expr %prec UMINUS { $$ = xxunary($1,$2); > setId( $$, @$); } > | '!' expr %prec UNOT { $$ = xxunary($1,$2); > setId( $$, @$); } > | '~' expr %prec TILDE { $$ = xxunary($1,$2); > setId( $$, @$); } > + | SPECIAL expr { $$ = xxunary($1,$2); > setId( $$, @$); } > | '?'...
2017 Mar 16
0
Support for user defined unary functions
...================================ > --- src/main/gram.y (revision 72358) > +++ src/main/gram.y (working copy) > @@ -357,6 +357,7 @@ > | '+' expr %prec UMINUS { $$ = xxunary($1,$2); > setId( $$, @$); } > | '!' expr %prec UNOT { $$ = xxunary($1,$2); > setId( $$, @$); } > | '~' expr %prec TILDE { $$ = xxunary($1,$2); > setId( $$, @$); } > + | SPECIAL expr { $$ = xxunary($1,$2); > setId( $$, @$); } > | '?'...
2017 Mar 16
2
Support for user defined unary functions
...src/main/gram.y (working copy) > >> >>> @@ -357,6 +357,7 @@ > >> >>> | '+' expr %prec UMINUS { $$ = xxunary($1,$2); > >> >>> setId( $$, @$); } > >> >>> | '!' expr %prec UNOT { $$ = xxunary($1,$2); > >> >>> setId( $$, @$); } > >> >>> | '~' expr %prec TILDE { $$ = xxunary($1,$2); > >> >>> setId( $$, @$); } > >> >>> + | SPECIAL expr...
2017 Mar 16
0
Support for user defined unary functions
...rc/main/gram.y (revision 72358) >>> +++ src/main/gram.y (working copy) >>> @@ -357,6 +357,7 @@ >>> | '+' expr %prec UMINUS { $$ = xxunary($1,$2); >>> setId( $$, @$); } >>> | '!' expr %prec UNOT { $$ = xxunary($1,$2); >>> setId( $$, @$); } >>> | '~' expr %prec TILDE { $$ = xxunary($1,$2); >>> setId( $$, @$); } >>> + | SPECIAL expr { $$ = xxunary($1,$2); >>> s...
2017 Mar 17
3
Support for user defined unary functions
...py) >>> >> >>> @@ -357,6 +357,7 @@ >>> >> >>> | '+' expr %prec UMINUS { $$ = xxunary($1,$2); >>> >> >>> setId( $$, @$); } >>> >> >>> | '!' expr %prec UNOT { $$ = xxunary($1,$2); >>> >> >>> setId( $$, @$); } >>> >> >>> | '~' expr %prec TILDE { $$ = xxunary($1,$2); >>> >> >>> setId( $$, @$); } >>> >> >>> +...
2017 Mar 16
0
Support for user defined unary functions
...>>> +++ src/main/gram.y (working copy) >> >>> @@ -357,6 +357,7 @@ >> >>> | '+' expr %prec UMINUS { $$ = xxunary($1,$2); >> >>> setId( $$, @$); } >> >>> | '!' expr %prec UNOT { $$ = xxunary($1,$2); >> >>> setId( $$, @$); } >> >>> | '~' expr %prec TILDE { $$ = xxunary($1,$2); >> >>> setId( $$, @$); } >> >>> + | SPECIAL expr { $$...
2017 Mar 16
0
Support for user defined unary functions
...(working copy) >> >> >>> @@ -357,6 +357,7 @@ >> >> >>> | '+' expr %prec UMINUS { $$ = xxunary($1,$2); >> >> >>> setId( $$, @$); } >> >> >>> | '!' expr %prec UNOT { $$ = xxunary($1,$2); >> >> >>> setId( $$, @$); } >> >> >>> | '~' expr %prec TILDE { $$ = xxunary($1,$2); >> >> >>> setId( $$, @$); } >> >> >>> + | S...
2017 Mar 17
2
Support for user defined unary functions
...7 @@ >> >>> >> >>> | '+' expr %prec UMINUS { $$ = >> >>> >> xxunary($1,$2); >> >>> >> >>> setId( $$, @$); } >> >>> >> >>> | '!' expr %prec UNOT { $$ = >> >>> >> xxunary($1,$2); >> >>> >> >>> setId( $$, @$); } >> >>> >> >>> | '~' expr %prec TILDE { $$ = >> >>> >> xxunary($1,$2); >> >>...
2017 Mar 17
2
Support for user defined unary functions
...7 @@ >> >>> >> >>> | '+' expr %prec UMINUS { $$ = >> >>> >> xxunary($1,$2); >> >>> >> >>> setId( $$, @$); } >> >>> >> >>> | '!' expr %prec UNOT { $$ = >> >>> >> xxunary($1,$2); >> >>> >> >>> setId( $$, @$); } >> >>> >> >>> | '~' expr %prec TILDE { $$ = >> >>> >> xxunary($1,$2); >> >>...
2017 Mar 17
0
Support for user defined unary functions
...;> >>> @@ -357,6 +357,7 @@ > >>> >> >>> | '+' expr %prec UMINUS { $$ = > xxunary($1,$2); > >>> >> >>> setId( $$, @$); } > >>> >> >>> | '!' expr %prec UNOT { $$ = > xxunary($1,$2); > >>> >> >>> setId( $$, @$); } > >>> >> >>> | '~' expr %prec TILDE { $$ = > xxunary($1,$2); > >>> >> >>> setId( $$, @$); } > >>&g...
2017 Mar 17
2
Support for user defined unary functions
...>> >>> | '+' expr %prec UMINUS { $$ = >> >> >>> >> xxunary($1,$2); >> >> >>> >> >>> setId( $$, @$); } >> >> >>> >> >>> | '!' expr %prec UNOT { $$ = >> >> >>> >> xxunary($1,$2); >> >> >>> >> >>> setId( $$, @$); } >> >> >>> >> >>> | '~' expr %prec TILDE { $$ = >> >> >>> >&g...
2017 Mar 17
0
Support for user defined unary functions
...gt;>> >> >>> | '+' expr %prec UMINUS { $$ = > >> >>> >> xxunary($1,$2); > >> >>> >> >>> setId( $$, @$); } > >> >>> >> >>> | '!' expr %prec UNOT { $$ = > >> >>> >> xxunary($1,$2); > >> >>> >> >>> setId( $$, @$); } > >> >>> >> >>> | '~' expr %prec TILDE { $$ = > >> >>> >> xxunary($1,$2...
2017 Mar 17
0
Support for user defined unary functions
...t;>> | '+' expr %prec UMINUS { $$ = > >> >> >>> >> xxunary($1,$2); > >> >> >>> >> >>> setId( $$, @$); } > >> >> >>> >> >>> | '!' expr %prec UNOT { $$ = > >> >> >>> >> xxunary($1,$2); > >> >> >>> >> >>> setId( $$, @$); } > >> >> >>> >> >>> | '~' expr %prec TILDE { $$ = > >> >>...