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:
Akos Kiss 2016-02-14 00:10:12 +01:00
parent 7f3a10a29d
commit 7dc065842b

View File

@ -62,41 +62,4 @@ do \
srand (seed); \
} 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 */