X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=ragel%2Frlparse.kh;h=e840f8af0ef411247fc1ff3d887f3bd077a98a62;hb=b56b3456c109e2c836a4e6ace69cca9186eec4cb;hp=a829d78592046b5da9e91c421257cefc51d43de3;hpb=2d324635c66714d017f49a4491776e5da1811de2;p=external%2Fragel.git diff --git a/ragel/rlparse.kh b/ragel/rlparse.kh index a829d78..e840f8a 100644 --- a/ragel/rlparse.kh +++ b/ragel/rlparse.kh @@ -36,11 +36,11 @@ /* This is used for tracking the include files/machine pairs. */ struct IncludeHistoryItem { - IncludeHistoryItem( char *fileName, char *sectionName ) + IncludeHistoryItem( const char *fileName, const char *sectionName ) : fileName(fileName), sectionName(sectionName) {} - char *fileName; - char *sectionName; + const char *fileName; + const char *sectionName; }; typedef Vector IncludeHistory; @@ -106,11 +106,13 @@ struct Parser void init(); int parseLangEl( int type, const Token *token ); - Parser( char *fileName, char *sectionName, InputLoc §ionLoc ) + Parser( const char *fileName, char *sectionName, InputLoc §ionLoc ) : sectionName(sectionName) { pd = new ParseData( fileName, sectionName, sectionLoc ); exportContext.append( false ); + includeHistory.append( IncludeHistoryItem( + fileName, sectionName ) ); } int token( InputLoc &loc, int tokId, char *tokstart, int toklen );