From 7dc065842be58c254672f0d453fe2dc963fcfc7d Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Sun, 14 Feb 2016 00:10:12 +0100 Subject: [PATCH] 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 --- tests/unit/test-common.h | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/tests/unit/test-common.h b/tests/unit/test-common.h index 59e72bc91..4bb3850df 100644 --- a/tests/unit/test-common.h +++ b/tests/unit/test-common.h @@ -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 */