ChangeLog: 19990730-06:40 GMT+2
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
19990731-06:40 GMT+2 Ryszard Glaaab <rglab@imid.med.pl>
|
||||
*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 <info@szelvesz.hu>
|
||||
+ include/achoice.ch
|
||||
include/common.ch
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user