Rename ECMA_CHAR_NULL to LIT_CHAR_NULL, move it to jerry-core/lit/lit-char-helpers.h.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
Ruben Ayrapetyan 2015-07-02 16:39:35 +03:00
parent 2a78d24fce
commit e8659f373c
5 changed files with 8 additions and 7 deletions

View File

@ -202,6 +202,11 @@ extern bool lit_char_is_unicode_connector_punctuation (ecma_char_t);
#define LIT_CHAR_ASCII_DIGITS_BEGIN LIT_CHAR_0 /* decimal digits range */
#define LIT_CHAR_ASCII_DIGITS_END LIT_CHAR_9
/**
* Null character
*/
#define LIT_CHAR_NULL ((ecma_char_t) '\0')
/*
* Part of IsWordChar abstract operation (ECMA-262 v5, 15.10.2.6, step 3)
*/

View File

@ -73,11 +73,6 @@
*/
typedef uint16_t ecma_char_t;
/**
* Null character
*/
#define ECMA_CHAR_NULL ((ecma_char_t) '\0')
/**
* Description of a collection's/string's length
*/

View File

@ -253,7 +253,7 @@ lit_utf8_iterator_read_code_unit_and_increment (lit_utf8_iterator_t *buf_iter_p)
}
JERRY_ASSERT (false);
return ECMA_CHAR_NULL;
return LIT_CHAR_NULL;
} /* lit_utf8_iterator_read_code_unit_and_increment */
/**

View File

@ -17,6 +17,7 @@
#define LIT_UNICODE_HELPERS_H
#include "jrt.h"
#include "lit-char-helpers.h"
#include "lit-globals.h"
/**

View File

@ -226,7 +226,7 @@ re_count_num_of_groups (re_parser_ctx_t *parser_ctx_p) /**< RegExp parser contex
parser_ctx_p->num_of_groups = 0;
ch1 = get_ecma_char (&pattern_p);
while (ch1 != ECMA_CHAR_NULL)
while (ch1 != LIT_CHAR_NULL)
{
ecma_char_t ch0 = ch1;
ch1 = get_ecma_char (&pattern_p);