Remove jerry_port_ functions from test-common.h
They are identical to the functions with the same name in jerry-port.cpp and cause duplicate symbol link errors on OS X. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -62,41 +62,4 @@ do \
|
|||||||
srand (seed); \
|
srand (seed); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/**
|
|
||||||
* Provide log message to filestream implementation for the engine.
|
|
||||||
*/
|
|
||||||
int jerry_port_logmsg (FILE *stream, /**< stream pointer */
|
|
||||||
const char *format, /**< format string */
|
|
||||||
...) /**< parameters */
|
|
||||||
{
|
|
||||||
va_list args;
|
|
||||||
int count;
|
|
||||||
va_start (args, format);
|
|
||||||
count = vfprintf (stream, format, args);
|
|
||||||
va_end (args);
|
|
||||||
return count;
|
|
||||||
} /* jerry_port_logmsg */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Provide error message to console implementation for the engine.
|
|
||||||
*/
|
|
||||||
int jerry_port_errormsg (const char *format, /**< format string */
|
|
||||||
...) /**< parameters */
|
|
||||||
{
|
|
||||||
va_list args;
|
|
||||||
int count;
|
|
||||||
va_start (args, format);
|
|
||||||
count = vfprintf (stderr, format, args);
|
|
||||||
va_end (args);
|
|
||||||
return count;
|
|
||||||
} /* jerry_port_errormsg */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Provide output character to console implementation for the engine.
|
|
||||||
*/
|
|
||||||
int jerry_port_putchar (int c) /**< character to put */
|
|
||||||
{
|
|
||||||
return putchar (c);
|
|
||||||
} /* jerry_port_putchar */
|
|
||||||
|
|
||||||
#endif /* TEST_COMMON_H */
|
#endif /* TEST_COMMON_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user