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:
Akos Kiss
2016-04-23 22:50:50 +02:00
parent 0c7d3fb705
commit 33a1203d6b
8 changed files with 0 additions and 69 deletions
-8
View File
@@ -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 */
-10
View File
@@ -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);
-8
View File
@@ -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);
}
-8
View File
@@ -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);
}