Drop jerry_port_putchar
Recent changes eliminate the need for `jerry_port_putchar`. As port API discussions don't make it likely that it will ever be needed again, this patch removes its declaration from jerry-port.h and its implementations from the port(s). The related code in jerry-libc is not needed either: whatever `putc` (and `puts`) can do, `printf` can do as well. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
@@ -45,11 +45,3 @@ int jerry_port_errormsg (const char *format, /**< format string */
|
||||
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 ((unsigned char) c);
|
||||
} /* jerry_port_putchar */
|
||||
|
||||
@@ -46,16 +46,6 @@ int jerry_port_errormsg (const char* format, ...)
|
||||
return count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provide output character to console implementation for the engine.
|
||||
*/
|
||||
int jerry_port_putchar (int c)
|
||||
{
|
||||
printf ("%c", (char)c);
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
void exit (int status)
|
||||
{
|
||||
printf ("!!!! EXIT: %d\n", status);
|
||||
|
||||
@@ -43,11 +43,3 @@ int jerry_port_errormsg (const char* format, ...)
|
||||
va_end (args);
|
||||
return count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provide output character to console implementation for the engine.
|
||||
*/
|
||||
int jerry_port_putchar (int c)
|
||||
{
|
||||
return putchar(c);
|
||||
}
|
||||
|
||||
@@ -276,11 +276,3 @@ int jerry_port_errormsg (const char* format, ...)
|
||||
va_end (args);
|
||||
return count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provide output character to console implementation for the engine.
|
||||
*/
|
||||
int jerry_port_putchar (int c)
|
||||
{
|
||||
return putchar(c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user