1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Remove duplicate error message

e_badnum from streval.h and e_number from shell.h are both defined
as "%s: bad number". We only need one. Remove the one that is used
only once: e_badnum.
This commit is contained in:
Martijn Dekker 2021-11-15 09:40:45 +01:00
parent ef1f53b5b2
commit d9cd49c6d7
3 changed files with 1 additions and 3 deletions

View file

@ -86,7 +86,6 @@ const char strval_states[64] =
const char e_argcount[] = "%s: function has wrong number of arguments"; const char e_argcount[] = "%s: function has wrong number of arguments";
const char e_badnum[] = "%s: bad number";
const char e_moretokens[] = "%s: more tokens expected"; const char e_moretokens[] = "%s: more tokens expected";
const char e_paren[] = "%s: unbalanced parenthesis"; const char e_paren[] = "%s: unbalanced parenthesis";
const char e_badcolon[] = "%s: invalid use of :"; const char e_badcolon[] = "%s: invalid use of :";

View file

@ -178,7 +178,6 @@ extern const char strval_states[64];
extern const char e_moretokens[]; extern const char e_moretokens[];
extern const char e_argcount[]; extern const char e_argcount[];
extern const char e_paren[]; extern const char e_paren[];
extern const char e_badnum[];
extern const char e_badcolon[]; extern const char e_badcolon[];
extern const char e_recursive[]; extern const char e_recursive[];
extern const char e_divzero[]; extern const char e_divzero[];

View file

@ -664,7 +664,7 @@ again:
lvalue.flag = 0; lvalue.flag = 0;
stakpush(vp,lvalue.flag,short); stakpush(vp,lvalue.flag,short);
if(vp->nextchr==0) if(vp->nextchr==0)
ERROR(vp,e_badnum); ERROR(vp,e_number);
if(!(strval_precedence[op]&SEQPOINT)) if(!(strval_precedence[op]&SEQPOINT))
lvalue.value = 0; lvalue.value = 0;
invalid = 0; invalid = 0;