Make in() static since it's not supposed to be used outside the lexer.
This commit is contained in:
parent
d031031e4e
commit
ffb2c6f975
|
@ -30,7 +30,7 @@ typedef Parser::token token;
|
|||
|
||||
#define YY_USER_ACTION location->begin.columns(yyleng);
|
||||
|
||||
inline
|
||||
static inline
|
||||
bool in(const char *sub, const std::string &str) {
|
||||
return str.find(sub) != std::string::npos;
|
||||
}
|
||||
|
|
Reference in New Issue
Block a user