Make two structures static and add some const

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@757 4a71c877-e1ca-e34f-864e-861f7616d084
master
Stefan Huehner 2006-09-24 19:18:19 +00:00
parent 30f6dc392e
commit c74f654310
2 changed files with 3 additions and 3 deletions

View File

@ -8,11 +8,11 @@
typedef struct _cheat_entry typedef struct _cheat_entry
{ {
STRING *pName; const char *pName;
void (*function)(void); // pointer to void* function void (*function)(void); // pointer to void* function
} CHEAT_ENTRY; } CHEAT_ENTRY;
CHEAT_ENTRY cheatCodes[] = static CHEAT_ENTRY cheatCodes[] =
{ {
// {"VQKZMY^\\Z",kf_ToggleOverlays},//interface // {"VQKZMY^\\Z",kf_ToggleOverlays},//interface
// {"LWPH R^OOVQXL",kf_ShowMappings},//show mappings // {"LWPH R^OOVQXL",kf_ShowMappings},//show mappings

View File

@ -15,7 +15,7 @@
/* The fixed id buffer for the string resource system /* The fixed id buffer for the string resource system
* This just tells it what the keywords are for the fixed strings * This just tells it what the keywords are for the fixed strings
*/ */
STR_ID asFixedID[STR_MAX_ID] = static STR_ID asFixedID[STR_MAX_ID] =
{ {
// Default string // Default string
{STR_DEFAULT, "DEFAULT"}, {STR_DEFAULT, "DEFAULT"},