mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
scriplib: attach const qualifiers to appropriate function input arguments.
git-svn-id: https://svn.eduke32.com/eduke32@3531 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1606c17a77
commit
5a5368a567
3 changed files with 17 additions and 17 deletions
|
@ -152,7 +152,7 @@ ScriptLineType * SCRIPT_AddLine
|
||||||
ScriptSectionType * SCRIPT_SectionExists
|
ScriptSectionType * SCRIPT_SectionExists
|
||||||
(
|
(
|
||||||
int32_t scripthandle,
|
int32_t scripthandle,
|
||||||
char * sectionname
|
const char * sectionname
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -162,7 +162,7 @@ ScriptSectionType * SCRIPT_SectionExists
|
||||||
=
|
=
|
||||||
==============
|
==============
|
||||||
*/
|
*/
|
||||||
ScriptSectionType * SCRIPT_AddSection( int32_t scripthandle, char * sectionname );
|
ScriptSectionType * SCRIPT_AddSection( int32_t scripthandle, const char * sectionname );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
==============
|
==============
|
||||||
|
@ -174,7 +174,7 @@ ScriptSectionType * SCRIPT_AddSection( int32_t scripthandle, char * sectionname
|
||||||
ScriptEntryType * SCRIPT_EntryExists
|
ScriptEntryType * SCRIPT_EntryExists
|
||||||
(
|
(
|
||||||
ScriptSectionType * section,
|
ScriptSectionType * section,
|
||||||
char * entryname
|
const char * entryname
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -187,9 +187,9 @@ ScriptEntryType * SCRIPT_EntryExists
|
||||||
void SCRIPT_AddEntry
|
void SCRIPT_AddEntry
|
||||||
(
|
(
|
||||||
int32_t scripthandle,
|
int32_t scripthandle,
|
||||||
char * sectionname,
|
const char * sectionname,
|
||||||
char * entryname,
|
const char * entryname,
|
||||||
char * entryvalue
|
const char * entryvalue
|
||||||
);
|
);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -138,7 +138,7 @@ void SCRIPT_FreeSection(ScriptSectionType * section)
|
||||||
(e)->preventry = (e); \
|
(e)->preventry = (e); \
|
||||||
}
|
}
|
||||||
|
|
||||||
ScriptSectionType * SCRIPT_SectionExists(int32_t scripthandle, char * sectionname)
|
ScriptSectionType * SCRIPT_SectionExists(int32_t scripthandle, const char * sectionname)
|
||||||
{
|
{
|
||||||
ScriptSectionType *s, *ls=NULL;
|
ScriptSectionType *s, *ls=NULL;
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ ScriptSectionType * SCRIPT_SectionExists(int32_t scripthandle, char * sectionnam
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ScriptSectionType * SCRIPT_AddSection(int32_t scripthandle, char * sectionname)
|
ScriptSectionType * SCRIPT_AddSection(int32_t scripthandle, const char * sectionname)
|
||||||
{
|
{
|
||||||
ScriptSectionType *s,*s2;
|
ScriptSectionType *s,*s2;
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ ScriptSectionType * SCRIPT_AddSection(int32_t scripthandle, char * sectionname)
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
ScriptEntryType * SCRIPT_EntryExists(ScriptSectionType * section, char * entryname)
|
ScriptEntryType * SCRIPT_EntryExists(ScriptSectionType * section, const char * entryname)
|
||||||
{
|
{
|
||||||
ScriptEntryType *e,*le=NULL;
|
ScriptEntryType *e,*le=NULL;
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ ScriptEntryType * SCRIPT_EntryExists(ScriptSectionType * section, char * entryna
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SCRIPT_AddEntry(int32_t scripthandle, char * sectionname, char * entryname, char * entryvalue)
|
void SCRIPT_AddEntry(int32_t scripthandle, const char * sectionname, const char * entryname, const char * entryvalue)
|
||||||
{
|
{
|
||||||
ScriptSectionType *s;
|
ScriptSectionType *s;
|
||||||
ScriptEntryType *e,*e2;
|
ScriptEntryType *e,*e2;
|
||||||
|
@ -738,7 +738,7 @@ breakme:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t SCRIPT_GetNumber(int32_t scripthandle, char * sectionname, char * entryname, int32_t * number)
|
int32_t SCRIPT_GetNumber(int32_t scripthandle, const char * sectionname, const char * entryname, int32_t * number)
|
||||||
{
|
{
|
||||||
ScriptSectionType *s;
|
ScriptSectionType *s;
|
||||||
ScriptEntryType *e;
|
ScriptEntryType *e;
|
||||||
|
@ -899,8 +899,8 @@ void SCRIPT_PutDoubleString
|
||||||
void SCRIPT_PutNumber
|
void SCRIPT_PutNumber
|
||||||
(
|
(
|
||||||
int32_t scripthandle,
|
int32_t scripthandle,
|
||||||
char * sectionname,
|
const char * sectionname,
|
||||||
char * entryname,
|
const char * entryname,
|
||||||
int32_t number,
|
int32_t number,
|
||||||
int32_t hexadecimal,
|
int32_t hexadecimal,
|
||||||
int32_t defaultvalue
|
int32_t defaultvalue
|
||||||
|
|
|
@ -162,8 +162,8 @@ int32_t SCRIPT_GetDoubleString
|
||||||
int32_t SCRIPT_GetNumber
|
int32_t SCRIPT_GetNumber
|
||||||
(
|
(
|
||||||
int32_t scripthandle,
|
int32_t scripthandle,
|
||||||
char * sectionname,
|
const char * sectionname,
|
||||||
char * entryname,
|
const char * entryname,
|
||||||
int32_t * number
|
int32_t * number
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -247,8 +247,8 @@ void SCRIPT_PutDoubleString
|
||||||
void SCRIPT_PutNumber
|
void SCRIPT_PutNumber
|
||||||
(
|
(
|
||||||
int32_t scripthandle,
|
int32_t scripthandle,
|
||||||
char * sectionname,
|
const char * sectionname,
|
||||||
char * entryname,
|
const char * entryname,
|
||||||
int32_t number,
|
int32_t number,
|
||||||
int32_t hexadecimal,
|
int32_t hexadecimal,
|
||||||
int32_t defaultvalue
|
int32_t defaultvalue
|
||||||
|
|
Loading…
Reference in a new issue