aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miscutils/bc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 0d81e13cf..2bde51521 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -189,7 +189,7 @@ typedef enum BcStatus {
189 BC_STATUS_PARSE_BAD_PRINT, 189 BC_STATUS_PARSE_BAD_PRINT,
190 BC_STATUS_PARSE_BAD_FUNC, 190 BC_STATUS_PARSE_BAD_FUNC,
191 BC_STATUS_PARSE_BAD_ASSIGN, 191 BC_STATUS_PARSE_BAD_ASSIGN,
192 BC_STATUS_PARSE_NO_AUTO, 192// BC_STATUS_PARSE_NO_AUTO,
193 BC_STATUS_PARSE_DUPLICATE_LOCAL, 193 BC_STATUS_PARSE_DUPLICATE_LOCAL,
194 BC_STATUS_PARSE_NO_BLOCK_END, 194 BC_STATUS_PARSE_NO_BLOCK_END,
195 195
@@ -261,7 +261,7 @@ static const char *const bc_err_msgs[] = {
261 "bad function definition", 261 "bad function definition",
262 "bad assignment: left side must be scale, ibase, " 262 "bad assignment: left side must be scale, ibase, "
263 "obase, last, var, or array element", 263 "obase, last, var, or array element",
264 "no auto variable found", 264// "no auto variable found",
265 "function parameter or auto var has the same name as another", 265 "function parameter or auto var has the same name as another",
266 "block end could not be found", 266 "block end could not be found",
267 267
@@ -4509,7 +4509,7 @@ static BcStatus bc_parse_auto(BcParse *p)
4509 } 4509 }
4510 4510
4511 if (comma) return BC_STATUS_PARSE_BAD_FUNC; 4511 if (comma) return BC_STATUS_PARSE_BAD_FUNC;
4512 if (!one) return BC_STATUS_PARSE_NO_AUTO; 4512 if (!one) return bc_error("no auto variable found");
4513 4513
4514 if (p->l.t.t != BC_LEX_NLINE && p->l.t.t != BC_LEX_SCOLON) 4514 if (p->l.t.t != BC_LEX_NLINE && p->l.t.t != BC_LEX_SCOLON)
4515 return BC_STATUS_PARSE_BAD_TOKEN; 4515 return BC_STATUS_PARSE_BAD_TOKEN;