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:
@@ -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_BEGIN LIT_CHAR_0 /* decimal digits range */
|
||||||
#define LIT_CHAR_ASCII_DIGITS_END LIT_CHAR_9
|
#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)
|
* Part of IsWordChar abstract operation (ECMA-262 v5, 15.10.2.6, step 3)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -73,11 +73,6 @@
|
|||||||
*/
|
*/
|
||||||
typedef uint16_t ecma_char_t;
|
typedef uint16_t ecma_char_t;
|
||||||
|
|
||||||
/**
|
|
||||||
* Null character
|
|
||||||
*/
|
|
||||||
#define ECMA_CHAR_NULL ((ecma_char_t) '\0')
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description of a collection's/string's length
|
* Description of a collection's/string's length
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ lit_utf8_iterator_read_code_unit_and_increment (lit_utf8_iterator_t *buf_iter_p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
JERRY_ASSERT (false);
|
JERRY_ASSERT (false);
|
||||||
return ECMA_CHAR_NULL;
|
return LIT_CHAR_NULL;
|
||||||
} /* lit_utf8_iterator_read_code_unit_and_increment */
|
} /* lit_utf8_iterator_read_code_unit_and_increment */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
#define LIT_UNICODE_HELPERS_H
|
#define LIT_UNICODE_HELPERS_H
|
||||||
|
|
||||||
#include "jrt.h"
|
#include "jrt.h"
|
||||||
|
#include "lit-char-helpers.h"
|
||||||
#include "lit-globals.h"
|
#include "lit-globals.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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;
|
parser_ctx_p->num_of_groups = 0;
|
||||||
|
|
||||||
ch1 = get_ecma_char (&pattern_p);
|
ch1 = get_ecma_char (&pattern_p);
|
||||||
while (ch1 != ECMA_CHAR_NULL)
|
while (ch1 != LIT_CHAR_NULL)
|
||||||
{
|
{
|
||||||
ecma_char_t ch0 = ch1;
|
ecma_char_t ch0 = ch1;
|
||||||
ch1 = get_ecma_char (&pattern_p);
|
ch1 = get_ecma_char (&pattern_p);
|
||||||
|
|||||||
Reference in New Issue
Block a user