* Fatal error, called in cases of complete despair such as when
* malloc() has returned NULL.
*/
-void fatal(char *fmt, ...)
+void fatal(const char *fmt, ...)
{
char buf[512];
va_list ap;
js_error_box(buf);
}
-void debug_printf(char *fmt, ...)
+void debug_printf(const char *fmt, ...)
{
char buf[512];
va_list ap;
}
static void js_draw_text(void *handle, int x, int y, int fonttype,
- int fontsize, int align, int colour, char *text)
+ int fontsize, int align, int colour,
+ const char *text)
{
char fontstyle[80];
int halign;
js_canvas_end_draw();
}
-static void js_status_bar(void *handle, char *text)
+static void js_status_bar(void *handle, const char *text)
{
js_canvas_set_statusbar(text);
}