From dd1d1b31b34bd95a1c64ac9f3fa7126c57753dc5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 11 Apr 2016 15:06:09 +0200 Subject: Avoid reserved identifier Change-Id: Id89697b602508446be0c9578b49532de6c22be9f --- l10ntools/inc/tokens.h | 2 +- l10ntools/source/export.cxx | 2 +- l10ntools/source/srclex.l | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/l10ntools/inc/tokens.h b/l10ntools/inc/tokens.h index 1ec57a425afc..95370cf70a7e 100644 --- a/l10ntools/inc/tokens.h +++ b/l10ntools/inc/tokens.h @@ -52,7 +52,7 @@ #define RSCDEFINE 515 /* #define MY_TEXT */ #define RSCDEFINELEND 516 /* */ #define PRAGMA 519 /* #pragma ... */ -#define _LISTTEXT 521 /* { "Text" ... } */ +#define LISTTEXT_ 521 /* { "Text" ... } */ #define NORMDEFINE 524 /* #define ... */ /*------------------------------------------------------ */ /*------------------------------------------------------ */ diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index d8dbaaea2e8d..98e6a64b2f84 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -564,7 +564,7 @@ void Export::Execute( int nToken, const char * pToken ) } break; case TEXT: - case _LISTTEXT: + case LISTTEXT_: case LISTTEXT: { // this is an entry for a List if ( nList ) diff --git a/l10ntools/source/srclex.l b/l10ntools/source/srclex.l index 9caf0441c37b..8fbb58361319 100644 --- a/l10ntools/source/srclex.l +++ b/l10ntools/source/srclex.l @@ -203,8 +203,8 @@ void YYWarning(); } "{"?[ \t]*\".*\"[ \t]*";"[ \t]*"}" { -/* _LISTTEXT */ - WorkOnTokenSet( _LISTTEXT, yytext ); +/* LISTTEXT_ */ + WorkOnTokenSet( LISTTEXT_, yytext ); } %% -- cgit