Remove character pointer typedefs (#2492)
The `[jerry|ecma]_char_ptr_t` types are some old legacy that are used quite inconsistently. Their `[jerry|ecma]_char_t *` variants are used a lot more often, so it's better to stick to one form throughout the code base. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -414,7 +414,7 @@ lit_char_get_utf8_length (ecma_char_t chr) /**< EcmaScript character */
|
||||
bool
|
||||
lit_read_code_unit_from_hex (const lit_utf8_byte_t *buf_p, /**< buffer with characters */
|
||||
lit_utf8_size_t number_of_characters, /**< number of characters to be read */
|
||||
ecma_char_ptr_t out_code_unit_p) /**< [out] decoded result */
|
||||
ecma_char_t *out_code_unit_p) /**< [out] decoded result */
|
||||
{
|
||||
ecma_char_t code_unit = LIT_CHAR_NULL;
|
||||
|
||||
|
||||
@@ -220,7 +220,7 @@ size_t lit_char_get_utf8_length (ecma_char_t chr);
|
||||
|
||||
/* read a hex encoded code point from a zero terminated buffer */
|
||||
bool lit_read_code_unit_from_hex (const lit_utf8_byte_t *buf_p, lit_utf8_size_t number_of_characters,
|
||||
ecma_char_ptr_t out_code_unit_p);
|
||||
ecma_char_t *out_code_unit_p);
|
||||
|
||||
/**
|
||||
* Null character
|
||||
|
||||
@@ -78,11 +78,6 @@ typedef uint16_t ecma_char_t;
|
||||
*/
|
||||
typedef uint32_t ecma_length_t;
|
||||
|
||||
/**
|
||||
* Description of an ecma-character pointer
|
||||
*/
|
||||
typedef ecma_char_t *ecma_char_ptr_t;
|
||||
|
||||
/**
|
||||
* Max bytes needed to represent a code unit (utf-16 char) via utf-8 encoding
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user