Skip to content

Commit 4eae760

Browse files
ossy-szegeddbatyai
authored andcommitted
Fix undefined references build error on Windows (x64) (#3168)
We should emit function symbols for these jerry-core functions: - ecma_compare_ecma_strings is used by test-stringbuilder.c - ecma_is_value_number is used by test-literal-storage.c - ecma_date_time_within_day is used by test-date-helpers.c - jmem_heap_alloc_block is used by test-jmem.c - jmem_heap_free_block is used by test-jmem.c - jmem_pools_alloc is used by test-poolman.c - jmem_pools_free is used by test-poolman.c JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác [email protected]
1 parent 2b3faf6 commit 4eae760

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

jerry-core/ecma/base/ecma-helpers-string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ ecma_compare_ecma_strings_longpath (const ecma_string_t *string1_p, /**< ecma-st
17601760
* @return true - if strings are equal;
17611761
* false - otherwise
17621762
*/
1763-
inline bool JERRY_ATTR_ALWAYS_INLINE
1763+
extern inline bool JERRY_ATTR_ALWAYS_INLINE
17641764
ecma_compare_ecma_strings (const ecma_string_t *string1_p, /**< ecma-string */
17651765
const ecma_string_t *string2_p) /**< ecma-string */
17661766
{

jerry-core/ecma/base/ecma-helpers-value.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ ecma_is_value_float_number (ecma_value_t value) /**< ecma value */
289289
* @return true - if the value contains ecma-number value,
290290
* false - otherwise
291291
*/
292-
inline bool JERRY_ATTR_CONST JERRY_ATTR_ALWAYS_INLINE
292+
extern inline bool JERRY_ATTR_CONST JERRY_ATTR_ALWAYS_INLINE
293293
ecma_is_value_number (ecma_value_t value) /**< ecma value */
294294
{
295295
return (ecma_is_value_integer_number (value)

jerry-core/ecma/builtin-objects/ecma-builtin-helpers-date.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ecma_date_day (ecma_number_t time) /**< time value */
5757
*
5858
* @return time value within the day
5959
*/
60-
inline ecma_number_t JERRY_ATTR_ALWAYS_INLINE
60+
extern inline ecma_number_t JERRY_ATTR_ALWAYS_INLINE
6161
ecma_date_time_within_day (ecma_number_t time) /**< time value */
6262
{
6363
JERRY_ASSERT (!ecma_number_is_nan (time));

jerry-core/jmem/jmem-heap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ jmem_heap_alloc_block_internal (const size_t size) /**< required memory size */
321321
* @return NULL, if the required memory is 0
322322
* pointer to allocated memory block, otherwise
323323
*/
324-
inline void * JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
324+
extern inline void * JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
325325
jmem_heap_alloc_block (const size_t size) /**< required memory size */
326326
{
327327
void *block_p = jmem_heap_gc_and_alloc_block (size, JMEM_PRESSURE_FULL);
@@ -666,7 +666,7 @@ jmem_heap_realloc_block (void *ptr, /**< memory region to reallocate */
666666
/**
667667
* Free memory block
668668
*/
669-
inline void JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
669+
extern inline void JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
670670
jmem_heap_free_block (void *ptr, /**< pointer to beginning of data space of the block */
671671
const size_t size) /**< size of allocated region */
672672
{

jerry-core/jmem/jmem-poolman.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jmem_pools_finalize (void)
5555
* @return pointer to allocated chunk, if allocation was successful,
5656
* or NULL - if not enough memory.
5757
*/
58-
inline void * JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
58+
extern inline void * JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
5959
jmem_pools_alloc (size_t size) /**< size of the chunk */
6060
{
6161
#if ENABLED (JERRY_MEM_GC_BEFORE_EACH_ALLOC)
@@ -115,7 +115,7 @@ jmem_pools_alloc (size_t size) /**< size of the chunk */
115115
/**
116116
* Free the chunk
117117
*/
118-
inline void JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
118+
extern inline void JERRY_ATTR_HOT JERRY_ATTR_ALWAYS_INLINE
119119
jmem_pools_free (void *chunk_p, /**< pointer to the chunk */
120120
size_t size) /**< size of the chunk */
121121
{

0 commit comments

Comments
 (0)