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:
parent
ef1f53b5b2
commit
d9cd49c6d7
3 changed files with 1 additions and 3 deletions
|
@ -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 :";
|
||||||
|
|
|
@ -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[];
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue