From 390d535328ad15d7858d38b5ec482220ea14881d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 8 Nov 2014 07:19:29 -0600 Subject: Cosmetic --- apps/interpreters/bas/statement.c | 6 ++---- apps/interpreters/bas/token.l | 5 +++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/apps/interpreters/bas/statement.c b/apps/interpreters/bas/statement.c index f7b2b7e17..8ed0256e9 100644 --- a/apps/interpreters/bas/statement.c +++ b/apps/interpreters/bas/statement.c @@ -907,8 +907,7 @@ struct Value *stmt_DIM(struct Value *value) return value; } - if (pass == INTERPRET && value->u.integer < optionbase) /* error - */ + if (pass == INTERPRET && value->u.integer < optionbase) /* error */ { Value_destroy(value); Value_new_ERROR(value, OUTOFRANGE, _("dimension")); @@ -2840,8 +2839,7 @@ struct Value *stmt_IF_ELSEIFIF(struct Value *value) { pushLabel(L_IF, &ifpc); } - else /* compile single line IF THEN ELSE recursively - */ + else /* compile single line IF THEN ELSE recursively */ { if (statements(value)->type == V_ERROR) { diff --git a/apps/interpreters/bas/token.l b/apps/interpreters/bas/token.l index ec88ffc21..d9ae7b873 100644 --- a/apps/interpreters/bas/token.l +++ b/apps/interpreters/bas/token.l @@ -11,6 +11,7 @@ #include #include #include +#include #include "auto.h" #include "token.h" @@ -1173,7 +1174,7 @@ end[ \t]+function { { cur->statement=stmt_QUOTE_REM; strcpy(cur->u.rem=malloc(strlen(yytext+1)+1),yytext+1); - } + } return T_QUOTE; } {LINEINPUT} { @@ -1740,7 +1741,7 @@ struct String *Token_toString(struct Token *token, struct Token *spaceto, struct ++thisnotindent; ++nextindent; } break; - } + } case T_SELECTCASE: thisnotindent+=2; nextindent+=2; break; case T_EQ: { -- cgit v1.2.3