diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-09 15:41:38 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-09 15:41:38 +0100 |
commit | 953e0df86a7c9ae6ec6cedc20212dbd0b2a6e43f (patch) | |
tree | 82325345b78f65d25c394f180fbcb2daf796c367 /rsc | |
parent | 387a035d749ff7f00beca82f83e7aa5d8c5e9fcd (diff) |
New loplugin:externvar: rsc
Change-Id: Ifa9ead1325fdced36f189c5d5dcfd0e6d0ed63dd
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 ) { |