diff options
| author | Simon Tatham <anakin@pobox.com> | 2017-10-01 14:04:47 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2017-10-01 16:35:00 +0100 |
| commit | 3276376d1be74b66970b88c3e941dcedf8d22474 (patch) | |
| tree | 573461b9f6efc036d5017700d30c9336fee6d6dd /windows.c | |
| parent | b3243d75043cf1d70beb88d2a36eaebfe85c2c3f (diff) | |
| download | puzzles-3276376d1be74b66970b88c3e941dcedf8d22474.zip puzzles-3276376d1be74b66970b88c3e941dcedf8d22474.tar.gz puzzles-3276376d1be74b66970b88c3e941dcedf8d22474.tar.bz2 puzzles-3276376d1be74b66970b88c3e941dcedf8d22474.tar.xz | |
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.
Diffstat (limited to 'windows.c')
| -rw-r--r-- | windows.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -150,7 +150,7 @@ void dputs(char *buf) OutputDebugString(buf); } -void debug_printf(char *fmt, ...) +void debug_printf(const char *fmt, ...) { char buf[4096]; va_list ap; @@ -258,7 +258,7 @@ void frontend_free(frontend *fe) static void update_type_menu_tick(frontend *fe); static void update_copy_menu_greying(frontend *fe); -void fatal(char *fmt, ...) +void fatal(const char *fmt, ...) { char buf[2048]; va_list ap; @@ -304,7 +304,7 @@ void get_random_seed(void **randseed, int *randseedsize) *randseedsize = sizeof(SYSTEMTIME); } -static void win_status_bar(void *handle, char *text) +static void win_status_bar(void *handle, const char *text) { #ifdef _WIN32_WCE TCHAR wText[255]; @@ -556,7 +556,8 @@ static void win_unclip(void *handle) } static void win_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) { frontend *fe = (frontend *)handle; POINT xy; |