Fix undefined references build errors on Windows (#3004)
We should emit function symbols for ecma_date_day, ecma_is_value_string and ecma_number_is_nan inline functions, because they are used by unit tests: unit-core/test-date-helpers.c, test-literal-storage.c and test-string-to-number.c. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
committed by
Dániel Bátyai
parent
9c7511221f
commit
14a9a1a1f0
@@ -240,7 +240,7 @@ ecma_number_get_sign_field (ecma_number_t num) /**< ecma-number */
|
|||||||
fraction is filled with anything but not all zero bits,
|
fraction is filled with anything but not all zero bits,
|
||||||
* false - otherwise
|
* false - otherwise
|
||||||
*/
|
*/
|
||||||
inline bool JERRY_ATTR_ALWAYS_INLINE
|
extern inline bool JERRY_ATTR_ALWAYS_INLINE
|
||||||
ecma_number_is_nan (ecma_number_t num) /**< ecma-number */
|
ecma_number_is_nan (ecma_number_t num) /**< ecma-number */
|
||||||
{
|
{
|
||||||
bool is_nan = (num != num);
|
bool is_nan = (num != num);
|
||||||
|
|||||||
@@ -305,7 +305,7 @@ JERRY_STATIC_ASSERT ((ECMA_TYPE_STRING | 0x4) == ECMA_TYPE_DIRECT_STRING,
|
|||||||
* @return true - if the value contains ecma-string value,
|
* @return true - if the value contains ecma-string value,
|
||||||
* false - otherwise
|
* false - otherwise
|
||||||
*/
|
*/
|
||||||
inline bool JERRY_ATTR_CONST JERRY_ATTR_ALWAYS_INLINE
|
extern inline bool JERRY_ATTR_CONST JERRY_ATTR_ALWAYS_INLINE
|
||||||
ecma_is_value_string (ecma_value_t value) /**< ecma value */
|
ecma_is_value_string (ecma_value_t value) /**< ecma value */
|
||||||
{
|
{
|
||||||
return ((value & (ECMA_VALUE_TYPE_MASK - 0x4)) == ECMA_TYPE_STRING);
|
return ((value & (ECMA_VALUE_TYPE_MASK - 0x4)) == ECMA_TYPE_STRING);
|
||||||
|
|||||||
@@ -41,7 +41,7 @@
|
|||||||
*
|
*
|
||||||
* @return time value for day number
|
* @return time value for day number
|
||||||
*/
|
*/
|
||||||
inline ecma_number_t JERRY_ATTR_ALWAYS_INLINE
|
extern inline ecma_number_t JERRY_ATTR_ALWAYS_INLINE
|
||||||
ecma_date_day (ecma_number_t time) /**< time value */
|
ecma_date_day (ecma_number_t time) /**< time value */
|
||||||
{
|
{
|
||||||
JERRY_ASSERT (!ecma_number_is_nan (time));
|
JERRY_ASSERT (!ecma_number_is_nan (time));
|
||||||
|
|||||||
Reference in New Issue
Block a user