From ffb2c6f9754d60dff10bd0613433c3192ca6dfd2 Mon Sep 17 00:00:00 2001 From: Stefano Sanfilippo Date: Mon, 1 Dec 2014 09:55:06 +0100 Subject: [PATCH] Make in() static since it's not supposed to be used outside the lexer. --- Monicelli.lpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Monicelli.lpp b/Monicelli.lpp index b68d2e5..e7e4336 100644 --- a/Monicelli.lpp +++ b/Monicelli.lpp @@ -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; }