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:
Simon Tatham
2017-10-01 14:04:47 +01:00
parent b3243d7504
commit 3276376d1b
16 changed files with 83 additions and 65 deletions

View File

@ -71,7 +71,7 @@ void drawing_free(drawing *dr)
}
void draw_text(drawing *dr, int x, int y, int fonttype, int fontsize,
int align, int colour, char *text)
int align, int colour, const char *text)
{
dr->api->draw_text(dr->handle, x, y, fonttype, fontsize, align,
colour, text);
@ -190,7 +190,7 @@ char *text_fallback(drawing *dr, const char *const *strings, int nstrings)
return NULL; /* placate optimiser */
}
void status_bar(drawing *dr, char *text)
void status_bar(drawing *dr, const char *text)
{
char *rewritten;