Fixes ENABLE_AMALGAM need FORCE set to ON when building with MSVC (#4392)
JerryScript-DCO-1.0-Signed-off-by: Yonggang Luo luoyonggang@gmail.com
This commit is contained in:
@@ -38,7 +38,7 @@ re_initialize_regexp_bytecode (re_compiler_ctx_t *re_ctx_p) /**< RegExp bytecode
|
||||
re_ctx_p->bytecode_size = initial_size;
|
||||
} /* re_initialize_regexp_bytecode */
|
||||
|
||||
inline uint32_t JERRY_ATTR_ALWAYS_INLINE
|
||||
extern inline uint32_t JERRY_ATTR_ALWAYS_INLINE
|
||||
re_bytecode_size (re_compiler_ctx_t *re_ctx_p) /**< RegExp bytecode context */
|
||||
{
|
||||
return (uint32_t) re_ctx_p->bytecode_size;
|
||||
@@ -101,7 +101,7 @@ re_insert_byte (re_compiler_ctx_t *re_ctx_p, /**< RegExp bytecode context */
|
||||
/**
|
||||
* Get a single byte and icnrease bytecode position.
|
||||
*/
|
||||
inline uint8_t JERRY_ATTR_ALWAYS_INLINE
|
||||
extern inline uint8_t JERRY_ATTR_ALWAYS_INLINE
|
||||
re_get_byte (const uint8_t **bc_p) /**< pointer to bytecode start */
|
||||
{
|
||||
return *((*bc_p)++);
|
||||
@@ -110,7 +110,7 @@ re_get_byte (const uint8_t **bc_p) /**< pointer to bytecode start */
|
||||
/**
|
||||
* Append a RegExp opcode
|
||||
*/
|
||||
inline void JERRY_ATTR_ALWAYS_INLINE
|
||||
extern inline void JERRY_ATTR_ALWAYS_INLINE
|
||||
re_append_opcode (re_compiler_ctx_t *re_ctx_p, /**< RegExp bytecode context */
|
||||
const re_opcode_t opcode) /**< input opcode */
|
||||
{
|
||||
@@ -120,7 +120,7 @@ re_append_opcode (re_compiler_ctx_t *re_ctx_p, /**< RegExp bytecode context */
|
||||
/**
|
||||
* Insert a RegExp opcode
|
||||
*/
|
||||
inline void JERRY_ATTR_ALWAYS_INLINE
|
||||
extern inline void JERRY_ATTR_ALWAYS_INLINE
|
||||
re_insert_opcode (re_compiler_ctx_t *re_ctx_p, /**< RegExp bytecode context */
|
||||
const uint32_t offset, /**< distance from the start of the container */
|
||||
const re_opcode_t opcode) /**< input opcode */
|
||||
@@ -133,7 +133,7 @@ re_insert_opcode (re_compiler_ctx_t *re_ctx_p, /**< RegExp bytecode context */
|
||||
*
|
||||
* @return current RegExp opcode
|
||||
*/
|
||||
inline re_opcode_t JERRY_ATTR_ALWAYS_INLINE
|
||||
extern inline re_opcode_t JERRY_ATTR_ALWAYS_INLINE
|
||||
re_get_opcode (const uint8_t **bc_p) /**< pointer to bytecode start */
|
||||
{
|
||||
return (re_opcode_t) re_get_byte (bc_p);
|
||||
@@ -196,7 +196,7 @@ re_decode_u32 (const uint8_t *src_p) /**< source */
|
||||
*
|
||||
* @return encoded value size
|
||||
*/
|
||||
inline static size_t JERRY_ATTR_ALWAYS_INLINE
|
||||
static inline size_t JERRY_ATTR_ALWAYS_INLINE
|
||||
re_get_encoded_value_size (uint32_t value) /**< value */
|
||||
{
|
||||
if (JERRY_LIKELY (value <= RE_VALUE_1BYTE_MAX))
|
||||
@@ -254,7 +254,7 @@ re_insert_value (re_compiler_ctx_t *re_ctx_p, /**< RegExp bytecode context */
|
||||
*
|
||||
* @return decoded value
|
||||
*/
|
||||
inline uint32_t JERRY_ATTR_ALWAYS_INLINE
|
||||
extern inline uint32_t JERRY_ATTR_ALWAYS_INLINE
|
||||
re_get_value (const uint8_t **bc_p) /** refence to bytecode pointer */
|
||||
{
|
||||
uint32_t value = *(*bc_p)++;
|
||||
@@ -330,7 +330,7 @@ re_insert_char (re_compiler_ctx_t *re_ctx_p, /**< RegExp bytecode context */
|
||||
*
|
||||
* @return decoded character
|
||||
*/
|
||||
inline lit_code_point_t JERRY_ATTR_ALWAYS_INLINE
|
||||
extern inline lit_code_point_t JERRY_ATTR_ALWAYS_INLINE
|
||||
re_get_char (const uint8_t **bc_p, /**< reference to bytecode pointer */
|
||||
bool unicode) /**< full unicode mode */
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user