[COMPILER]
* BUG: Allow STATIC CONST again. I don't want to break existing code finally... git-svn-id: svn://localhost/gambas/trunk@4540 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
dc1c62e014
commit
eb93325573
1 changed files with 4 additions and 4 deletions
|
@ -443,7 +443,7 @@ static bool header_declaration(TRANS_DECL *decl)
|
|||
bool is_static = FALSE;
|
||||
bool is_public = FALSE;
|
||||
bool is_const = FALSE;
|
||||
bool has_static = FALSE;
|
||||
//bool has_static = FALSE;
|
||||
|
||||
/* static ! */
|
||||
|
||||
|
@ -454,7 +454,7 @@ static bool header_declaration(TRANS_DECL *decl)
|
|||
else if (PATTERN_is(*look, RS_STATIC))
|
||||
{
|
||||
is_static = TRUE;
|
||||
has_static = TRUE;
|
||||
//has_static = TRUE;
|
||||
look++;
|
||||
}
|
||||
|
||||
|
@ -466,8 +466,8 @@ static bool header_declaration(TRANS_DECL *decl)
|
|||
|
||||
if (PATTERN_is(*look, RS_CONST))
|
||||
{
|
||||
if (has_static)
|
||||
THROW("Unexpected &1", "STATIC");
|
||||
//if (has_static)
|
||||
// THROW("Unexpected &1", "STATIC");
|
||||
|
||||
is_const = TRUE;
|
||||
look++;
|
||||
|
|
Loading…
Reference in a new issue