From 9768614ed179fb4ad1bac659551a231d3accc26e Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 26 Aug 2008 10:50:29 +0000 Subject: [PATCH] 2008-08-26 12:50 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/compiler/hbmain.c ! reset class and functions static declarations to avoid GPF when more then one file is compiled with -w3 switch NOTE: Whole this code will have to be removed and written from scratch --- harbour/ChangeLog | 7 +++++++ harbour/source/compiler/hbmain.c | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 45f5cc13b4..fde1ccd428 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,13 @@ 2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2008-08-26 12:50 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/compiler/hbmain.c + ! reset class and functions static declarations to avoid GPF + when more then one file is compiled with -w3 switch + NOTE: Whole this code will have to be removed and written + from scratch + 2008-08-26 11:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/compiler/hbmain.c ! fixed GPF when more then one file was compiled with -w3 switch diff --git a/harbour/source/compiler/hbmain.c b/harbour/source/compiler/hbmain.c index 872e77cb4a..7c9a3a37dc 100644 --- a/harbour/source/compiler/hbmain.c +++ b/harbour/source/compiler/hbmain.c @@ -1506,12 +1506,19 @@ static void hb_compDeclaredInit( HB_COMP_DECL ) /* ------- */ + /* reset to previous state */ + s_001.pNext = NULL; + + /* ------- */ + /* First (bottom) Method */ s_ERROR.pMethod = &s_ERROR_14; /* Last (top) Method. */ s_ERROR.pLastMethod = &s_ERROR_01; /* Next class definition pointer */ s_ERROR.pNext = NULL; + /* reset to previous state */ + s_ERROR_01.pNext = NULL; /* ------- */ @@ -1521,6 +1528,8 @@ static void hb_compDeclaredInit( HB_COMP_DECL ) s_GET.pLastMethod = &s_GET_01; /* Next class definition pointer */ s_GET.pNext = &s_ERROR; + /* reset to previous state */ + s_GET_01.pNext = NULL; /* ------- */ @@ -1530,6 +1539,8 @@ static void hb_compDeclaredInit( HB_COMP_DECL ) s_TBCOLUMN.pLastMethod = &s_TBCOLUMN_01; /* Next class definition pointer */ s_TBCOLUMN.pNext = &s_GET; + /* reset to previous state */ + s_TBCOLUMN_01.pNext = NULL; /* ------- */