From 4b3b573aee86e4efae35cd5edaa848e9f7191eab Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Thu, 3 Sep 2009 12:02:22 +0000 Subject: [PATCH] 2009-09-03 14:02 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/compiler/hbmain.c ! added missing pFunc initialization in symbol structure. It was causing GPF when C code was attached to .prg file using HB_INLINE() {} or #pragma BEGIN/ENDDUMP with HB_FUNC_STATIC() inside. Many thanks to Andi for information about the problem. --- harbour/ChangeLog | 7 +++++++ harbour/source/compiler/hbmain.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 5c3b552cca..019b8313b7 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,13 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-09-03 14:02 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/compiler/hbmain.c + ! added missing pFunc initialization in symbol structure. + It was causing GPF when C code was attached to .prg file using + HB_INLINE() {} or #pragma BEGIN/ENDDUMP with HB_FUNC_STATIC() + inside. Many thanks to Andi for information about the problem. + 2009-09-03 08:25 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbwin/axcore.c + added alternative method to look for connection point if diff --git a/harbour/source/compiler/hbmain.c b/harbour/source/compiler/hbmain.c index f1630dd9be..d188a20055 100644 --- a/harbour/source/compiler/hbmain.c +++ b/harbour/source/compiler/hbmain.c @@ -262,8 +262,9 @@ static PCOMSYMBOL hb_compSymbolAdd( HB_COMP_DECL, const char * szSymbolName, USH pSym->szName = szSymbolName; pSym->cScope = 0; - pSym->pNext = NULL; pSym->iFunc = bFunction ? HB_COMP_PARAM->iModulesCount : 0; + pSym->pFunc = NULL; + pSym->pNext = NULL; if( ! HB_COMP_PARAM->symbols.iCount ) {