2010-09-30 10:10 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/src/compiler/hbmain.c
    + added support to compile code not encapsulated in function using
      HB_COMPILEFROMBUF() with -n2 switch
This commit is contained in:
Przemyslaw Czerpak
2010-09-30 08:10:40 +00:00
parent 6337d56e83
commit 4e55b4a133
2 changed files with 10 additions and 1 deletions

View File

@@ -16,6 +16,11 @@
The license applies to all entries newer than 2009-04-28.
*/
2010-09-30 10:10 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/src/compiler/hbmain.c
+ added support to compile code not encapsulated in function using
HB_COMPILEFROMBUF() with -n2 switch
2010-09-29 23:59 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/qtcore/hbqt_pointer.cpp
* contrib/hbqt/qtcore/hbqt_misc.prg

View File

@@ -4155,7 +4155,11 @@ static int hb_compCompile( HB_COMP_DECL, const char * szPrg, const char * szBuff
HB_COMP_PARAM->szFile = HB_COMP_PARAM->currModule;
if( szBuffer )
hb_compFunctionAdd( HB_COMP_PARAM, "", 0, FUN_PROCEDURE | FUN_FILE_FIRST | FUN_FILE_DECL );
/* Generate the starting procedure frame, lower letters used
* intentionally to not create name conflicts when -n2 switch
* is used and we compile code not encapsulated in function.
*/
hb_compFunctionAdd( HB_COMP_PARAM, "__hbInit", 0, FUN_PROCEDURE | FUN_FILE_FIRST | FUN_FILE_DECL );
else
{
if( ! HB_COMP_PARAM->fQuiet )