Skip to content

Commit 7dc0658

Browse files
committed
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 [email protected]
1 parent 7f3a10a commit 7dc0658

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

tests/unit/test-common.h

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -62,41 +62,4 @@ do \
6262
srand (seed); \
6363
} while (0)
6464

65-
/**
66-
* Provide log message to filestream implementation for the engine.
67-
*/
68-
int jerry_port_logmsg (FILE *stream, /**< stream pointer */
69-
const char *format, /**< format string */
70-
...) /**< parameters */
71-
{
72-
va_list args;
73-
int count;
74-
va_start (args, format);
75-
count = vfprintf (stream, format, args);
76-
va_end (args);
77-
return count;
78-
} /* jerry_port_logmsg */
79-
80-
/**
81-
* Provide error message to console implementation for the engine.
82-
*/
83-
int jerry_port_errormsg (const char *format, /**< format string */
84-
...) /**< parameters */
85-
{
86-
va_list args;
87-
int count;
88-
va_start (args, format);
89-
count = vfprintf (stderr, format, args);
90-
va_end (args);
91-
return count;
92-
} /* jerry_port_errormsg */
93-
94-
/**
95-
* Provide output character to console implementation for the engine.
96-
*/
97-
int jerry_port_putchar (int c) /**< character to put */
98-
{
99-
return putchar (c);
100-
} /* jerry_port_putchar */
101-
10265
#endif /* TEST_COMMON_H */

0 commit comments

Comments
 (0)