@@ -561,6 +561,12 @@ typedef uint8_t ecma_char_t;
561
561
typedef uint16_t ecma_char_t ;
562
562
#endif /* CONFIG_ECMA_CHAR_ENCODING == CONFIG_ECMA_CHAR_UTF16 */
563
563
564
+ /**
565
+ * Description of an ecma-character pointer
566
+ */
567
+ typedef ecma_char_t * ecma_char_ptr_t ;
568
+
569
+
564
570
#if CONFIG_ECMA_NUMBER_TYPE == CONFIG_ECMA_NUMBER_FLOAT32
565
571
/**
566
572
* Description of an ecma-number
@@ -733,7 +739,8 @@ typedef enum
733
739
ECMA_STRING_CONTAINER_UINT32_IN_DESC , /**< actual data is UInt32-represeneted Number
734
740
stored locally in the string's descriptor */
735
741
ECMA_STRING_CONTAINER_CONCATENATION , /**< the ecma-string is concatenation of two specified ecma-strings */
736
- ECMA_STRING_CONTAINER_MAGIC_STRING /**< the ecma-string is equal to one of ECMA magic strings */
742
+ ECMA_STRING_CONTAINER_MAGIC_STRING , /**< the ecma-string is equal to one of ECMA magic strings */
743
+ ECMA_STRING_CONTAINER_MAGIC_STRING_EX /**< the ecma-string is equal to one of external magic strings */
737
744
} ecma_string_container_t ;
738
745
739
746
FIXME (Move to library that should define the type (literal .h /* ? */ ))
@@ -755,6 +762,11 @@ typedef enum
755
762
ECMA_MAGIC_STRING__COUNT /**< number of magic strings */
756
763
} ecma_magic_string_id_t ;
757
764
765
+ /**
766
+ * Identifiers of implementation-defined external magic string constants
767
+ */
768
+ typedef uint32_t ecma_magic_string_ex_id_t ;
769
+
758
770
/**
759
771
* ECMA string hash
760
772
*/
@@ -810,6 +822,9 @@ typedef struct ecma_string_t
810
822
/** Identifier of magic string */
811
823
ecma_magic_string_id_t magic_string_id ;
812
824
825
+ /** Identifier of external magic string */
826
+ ecma_magic_string_ex_id_t magic_string_ex_id ;
827
+
813
828
/** For zeroing and comparison in some cases */
814
829
uint32_t common_field ;
815
830
} u ;
0 commit comments