Improve const-correctness.
This avoids some pedantic compiler warnings and also removes any
non-shared data from the squirrel core.
Before:
size --totals sqstdlib/*.o squirrel/*.o
text data bss dec hex filename
261270 3776 0 265046 40b56 (TOTALS)
After:
size --totals sqstdlib/*.o squirrel/*.o
text data bss dec hex filename
265046 0 0 265046 40b56 (TOTALS)
This commit is contained in:
@@ -118,7 +118,7 @@ static SQInteger _system_date(HSQUIRRELVM v)
|
||||
|
||||
|
||||
#define _DECL_FUNC(name,nparams,pmask) {_SC(#name),_system_##name,nparams,pmask}
|
||||
static SQRegFunction systemlib_funcs[]={
|
||||
static const SQRegFunction systemlib_funcs[]={
|
||||
_DECL_FUNC(getenv,2,_SC(".s")),
|
||||
_DECL_FUNC(system,2,_SC(".s")),
|
||||
_DECL_FUNC(clock,0,NULL),
|
||||
|
||||
Reference in New Issue
Block a user