diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-08 07:19:29 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-08 07:19:29 -0600 |
commit | 390d535328ad15d7858d38b5ec482220ea14881d (patch) | |
tree | c5202d77e329a52822c6ed18810424842946a3ee | |
parent | b3274d227e0847da9b52c547b38acab69fd4eddc (diff) | |
download | nuttx-390d535328ad15d7858d38b5ec482220ea14881d.tar.gz nuttx-390d535328ad15d7858d38b5ec482220ea14881d.tar.bz2 nuttx-390d535328ad15d7858d38b5ec482220ea14881d.zip |
Cosmetic
-rw-r--r-- | apps/interpreters/bas/statement.c | 6 | ||||
-rw-r--r-- | 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 <stddef.h> #include <stdlib.h> #include <string.h> +#include <termios.h> #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: { |