mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-13 06:21:29 -10:00
some const stuff, useful for the sounds patch
This commit is contained in:
1 parent
b1f32b5087
commit
fcbf33aeab
2 files changed
+5
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user