diff options
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/parser/rsclex.cxx | 9 | ||||
-rw-r--r-- | rsc/source/parser/rscyacc.y | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx index 5d6040edd235..0725d8d97ccf 100644 --- a/rsc/source/parser/rsclex.cxx +++ b/rsc/source/parser/rsclex.cxx @@ -49,8 +49,8 @@ const char* StringContainer::putString( const char* pString ) return aInsert.first->getStr(); } -int c; -bool bLastInclude;// true, if last symbol was INCLUDE +static int c; +static bool bLastInclude;// true, if last symbol was INCLUDE RscFileInst* pFI; RscTypCont* pTC; RscExpression * pExp; @@ -58,8 +58,9 @@ struct KeyVal { int nKeyWord; YYSTYPE aYYSType; -} aKeyVal[ 1 ]; -bool bTargetDefined; +}; +static KeyVal aKeyVal[ 1 ]; +static bool bTargetDefined; StringContainer* pStringContainer = nullptr; diff --git a/rsc/source/parser/rscyacc.y b/rsc/source/parser/rscyacc.y index c0fd67d054dd..b3bdf5673dca 100644 --- a/rsc/source/parser/rscyacc.y +++ b/rsc/source/parser/rscyacc.y @@ -39,8 +39,8 @@ #include <rsclex.hxx> ObjectStack S; -RscTop * pCurClass; -char szErrBuf[ 100 ]; +static RscTop * pCurClass; +static char szErrBuf[ 100 ]; RSCINST GetVarInst( const RSCINST & rInst, const char * pVarName ) { |