Change locus type from size_t to lit_utf8_iterator_pos_t.

JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
Andrey Shitov
2015-07-05 23:13:12 +03:00
committed by Ruben Ayrapetyan
parent 7dd1d01541
commit 146ac15b5f
7 changed files with 177 additions and 139 deletions
+3 -2
View File
@@ -17,6 +17,7 @@
#define LEXER_H
#include "lit-literal.h"
#include "lit-strings.h"
#define INVALID_VALUE 255
#define EVAL_RET_VALUE 128
@@ -155,7 +156,7 @@ typedef enum __attr_packed___
TOK_REGEXP, // RegularExpressionLiteral (/.../gim)
} token_type;
typedef size_t locus;
typedef lit_utf8_iterator_pos_t locus;
/* Represents the contents of a token. */
typedef struct
@@ -168,7 +169,7 @@ typedef struct
/**
* Initializer for empty token
*/
#define TOKEN_EMPTY_INITIALIZER {0, TOK_EMPTY, 0}
#define TOKEN_EMPTY_INITIALIZER {LIT_ITERATOR_POS_ZERO, TOK_EMPTY, 0}
void lexer_init (const jerry_api_char_t *, size_t, bool);