From 1b81b29746249ceabb93e4e65081dc45fed51172 Mon Sep 17 00:00:00 2001 From: Ryszard Glab Date: Sat, 31 Jul 1999 04:53:34 +0000 Subject: [PATCH] ChangeLog: 19990730-06:40 GMT+2 --- harbour/ChangeLog | 5 +++++ harbour/source/compiler/harbour.y | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index b528908fe9..7fecbafa80 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,8 @@ +19990731-06:40 GMT+2 Ryszard Glaaab + *source/compiler/harbour.y + * PUBLIC and PRIVATE variables referenced inside a codeblock + can be used to initiialize a staatic variables + 19990731-06:00 CET Victor Szel + include/achoice.ch include/common.ch diff --git a/harbour/source/compiler/harbour.y b/harbour/source/compiler/harbour.y index 917c90fb39..eaff0bf870 100644 --- a/harbour/source/compiler/harbour.y +++ b/harbour/source/compiler/harbour.y @@ -3658,7 +3658,7 @@ void PushId( char * szVarName ) /* generates the pcode to push a variable value { int iVar; - if( iVarScope == VS_STATIC ) + if( iVarScope == VS_STATIC && functions.pLast->szName ) { /* Reffering to any variable is not allowed during initialization * of static variable @@ -3700,7 +3700,7 @@ void PushIdByRef( char * szVarName ) /* generates the pcode to push a variable b { WORD iVar; - if( iVarScope == VS_STATIC ) + if( iVarScope == VS_STATIC && functions.pLast->szName ) { /* Reffering to any variable is not allowed during initialization * of static variable