From eb93325573c4e31fd5581a1184817be461967a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sat, 10 Mar 2012 14:32:37 +0000 Subject: [PATCH] [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 --- main/gbc/gbc_header.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/gbc/gbc_header.c b/main/gbc/gbc_header.c index 0b8a9784d..136d6ebe2 100644 --- a/main/gbc/gbc_header.c +++ b/main/gbc/gbc_header.c @@ -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++;