mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Assorted char * -> const char * API changes.
I went through all the char * parameters and return values I could see in puzzles.h by eye and spotted ones that surely ought to have been const all along.
This commit is contained in:
9
emcc.c
9
emcc.c
@ -122,7 +122,7 @@ void get_random_seed(void **randseed, int *randseedsize)
|
||||
* 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;
|
||||
@ -136,7 +136,7 @@ void fatal(char *fmt, ...)
|
||||
js_error_box(buf);
|
||||
}
|
||||
|
||||
void debug_printf(char *fmt, ...)
|
||||
void debug_printf(const char *fmt, ...)
|
||||
{
|
||||
char buf[512];
|
||||
va_list ap;
|
||||
@ -384,7 +384,8 @@ static void js_unclip(void *handle)
|
||||
}
|
||||
|
||||
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;
|
||||
@ -515,7 +516,7 @@ static void js_end_draw(void *handle)
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user