Add new coding style rules and fix appeared issues.

JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
Andrey Shitov
2015-05-12 19:17:07 +03:00
parent ca12c16607
commit 9763a93df3
89 changed files with 1152 additions and 626 deletions
+3 -6
View File
@@ -76,8 +76,7 @@ typedef enum __attr_packed___
KW_WHILE,
KW_WITH,
KW_YIELD
}
keyword;
} keyword;
/* Type of tokens. */
@@ -152,8 +151,7 @@ typedef enum __attr_packed___
TOK_DIV, // /
TOK_DIV_EQ, // /=
TOK_EMPTY,
}
token_type;
} token_type;
typedef size_t locus;
@@ -163,8 +161,7 @@ typedef struct
locus loc;
token_type type;
literal_index_t uid;
}
token;
} token;
void lexer_init (const char *, size_t, bool);
void lexer_free (void);