logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/
commit: 74d8771f7067513fe240fc5a38d6c8905753383e
parent 3a97f0953c995b29f8ad75b2ddc3ae32e2fd1272
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu,  1 Jan 2026 21:42:33 +0100

cmd/test: EOI -> TOK_EOI to avoid potential future conflicts with errno

Diffstat:

Mcmd/test.c6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/test.c b/cmd/test.c @@ -69,7 +69,7 @@ enum token_types enum token { - EOI, + TOK_EOI, OPERAND, FILRD = UNOP + 1, FILWR, @@ -287,7 +287,7 @@ primary(enum token n) enum token nn; int res; - if(n == EOI) return 0; /* missing expression */ + if(n == TOK_EOI) return 0; /* missing expression */ if(n == LPAREN) { parenlevel++; @@ -467,7 +467,7 @@ t_lex(char *s) { enum token tok; - if(s == NULL) return EOI; + if(s == NULL) return TOK_EOI; tok = find_op(s); if(((TOKEN_TYPE(tok) == UNOP || TOKEN_TYPE(tok) == BUNOP) && isunopoperand()) ||