From 344e10628f42ef93a77d8b56b17d83c8fa2daf27 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Tue, 12 Jan 2016 10:30:56 +0000 Subject: [PATCH] Part two of more const casting, this time affecting argv instances. git-svn-id: https://svn.eduke32.com/eduke32@5552 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/include/baselayer.h | 2 +- polymer/eduke32/build/include/common.h | 2 +- polymer/eduke32/build/include/editor.h | 2 +- polymer/eduke32/build/src/build.c | 6 +++--- polymer/eduke32/build/src/common.c | 2 +- polymer/eduke32/build/src/sdlayer.c | 2 +- polymer/eduke32/source/astub.c | 4 ++-- polymer/eduke32/source/common.c | 2 +- polymer/eduke32/source/common_game.h | 2 +- polymer/eduke32/source/game.c | 4 ++-- polymer/eduke32/source/game.h | 1 - polymer/eduke32/source/sw/src/game.c | 8 ++++---- polymer/eduke32/source/testgame/src/bstub.c | 2 +- polymer/eduke32/source/testgame/src/game.c | 2 +- 14 files changed, 20 insertions(+), 21 deletions(-) diff --git a/polymer/eduke32/build/include/baselayer.h b/polymer/eduke32/build/include/baselayer.h index 173c5538e..faae51ecc 100644 --- a/polymer/eduke32/build/include/baselayer.h +++ b/polymer/eduke32/build/include/baselayer.h @@ -12,7 +12,7 @@ extern "C" { #endif -extern int32_t app_main(int32_t argc, const char **argv); +extern int32_t app_main(int32_t argc, char const * const * argv); extern const char* AppProperName; extern const char* AppTechnicalName; diff --git a/polymer/eduke32/build/include/common.h b/polymer/eduke32/build/include/common.h index 03fcc93eb..be80ee62c 100644 --- a/polymer/eduke32/build/include/common.h +++ b/polymer/eduke32/build/include/common.h @@ -88,7 +88,7 @@ static inline void realloc_copy(char **fn, const char *buf) int32_t getatoken(scriptfile *sf, const tokenlist *tl, int32_t ntokens); -int32_t G_CheckCmdSwitch(int32_t argc, const char **argv, const char *str); +int32_t G_CheckCmdSwitch(int32_t argc, char const * const * argv, const char *str); int32_t testkopen(const char *filename, char searchfirst); // full-blown kopen4load int32_t check_file_exist(const char *fn); // findfrompath with pathsearchmode=1 / search in zips diff --git a/polymer/eduke32/build/include/editor.h b/polymer/eduke32/build/include/editor.h index fe7fd9ab2..9b9bc1ad5 100644 --- a/polymer/eduke32/build/include/editor.h +++ b/polymer/eduke32/build/include/editor.h @@ -190,7 +190,7 @@ extern void clearkeys(void); extern const char *ExtGetVer(void); extern int32_t ExtInit(void); -extern int32_t ExtPreInit(int32_t argc,const char **argv); +extern int32_t ExtPreInit(int32_t argc,char const * const * argv); extern int32_t ExtPostStartupWindow(void); extern void ExtPostInit(void); extern void ExtUnInit(void); diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index 6cfd8f9e9..1d1dde85a 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -34,7 +34,7 @@ static char kensig[64]; static const char *CallExtGetVer(void); static int32_t CallExtInit(void); -static int32_t CallExtPreInit(int32_t argc,const char **argv); +static int32_t CallExtPreInit(int32_t argc,char const * const * argv); static int32_t CallExtPostStartupWindow(void); static void CallExtPostInit(void); static void CallExtUnInit(void); @@ -567,7 +567,7 @@ static void M32_FatalEngineError(void) exit(2); } -int32_t app_main(int32_t argc, const char **argv) +int32_t app_main(int32_t argc, char const * const * argv) { #ifdef STARTUP_SETUP_WINDOW char cmdsetup = 0; @@ -11026,7 +11026,7 @@ static int32_t CallExtInit(void) { return ExtInit(); } -static int32_t CallExtPreInit(int32_t argc,const char **argv) +static int32_t CallExtPreInit(int32_t argc,char const * const * argv) { return ExtPreInit(argc, argv); } diff --git a/polymer/eduke32/build/src/common.c b/polymer/eduke32/build/src/common.c index ac598d9a8..ab4a6c60b 100644 --- a/polymer/eduke32/build/src/common.c +++ b/polymer/eduke32/build/src/common.c @@ -88,7 +88,7 @@ int32_t getatoken(scriptfile *sf, const tokenlist *tl, int32_t ntokens) ////////// -int32_t G_CheckCmdSwitch(int32_t argc, const char **argv, const char *str) +int32_t G_CheckCmdSwitch(int32_t argc, char const * const * argv, const char *str) { int32_t i; for (i=0; i