some const stuff, useful for the sounds patch

This commit is contained in:
Goober5000 committed 2012-07-26 07:46:35 +00:00
1 parent b1f32b5087
commit fcbf33aeab
2 files changed
+5 -6

No files matched your search

+3 -4
View File
@@ -519,7 +519,7 @@ int check_for_eoln()
// similar to optional_string, but just checks if next token is a match.
// It doesn't advance Mp except to skip past white space.
int check_for_string(char *pstr)
int check_for_string(const char *pstr)
{
ignore_white_space();
@@ -530,11 +530,10 @@ int check_for_string(char *pstr)
}
// like check for string, but doesn't skip past any whitespace
int check_for_string_raw(char *pstr)
int check_for_string_raw(const char *pstr)
{
if (!strnicmp(pstr, Mp, strlen(pstr))){
if (!strnicmp(pstr, Mp, strlen(pstr)))
return 1;
}
return 0;
}
+2 -2
View File
@@ -164,8 +164,8 @@ extern void stuff_parenthesized_vec3d(vec3d *vp);
extern void stuff_boolean(int *i, bool a_to_eol=true);
extern void stuff_boolean(bool *b, bool a_to_eol=true);
extern void stuff_boolean_flag(int *i, int flag, bool a_to_eol=true);
extern int check_for_string(char *pstr);
extern int check_for_string_raw(char *pstr);
extern int check_for_string(const char *pstr);
extern int check_for_string_raw(const char *pstr);
extern int check_for_eof();
extern int check_for_eoln();