norberto wrote:Hi,
after this changelog :
2016-08-15 17:04 UTC-0400 Ron Pinkas <ron.pinkas/at/xharbour.com>
* bin/bld.bat
+ Added test for error level after prg compilation
* bin/bld_vc.bat
+ Added support for VS 2013 and 2015
* make_vc.bat
* More complete VS 2015 support and minor revision
* source/compiler/harbour.sly
* source/compiler/harbouryy.c
! Fixed GPF trap (hb_comp_BlocksList NULL after syntax error)
old function, like tdata from james dont compile :
Tdata\Tdata.prg(281) Error E0047 Code block contains both macro and declared symbol references
line of tdata :
::buildIndex( oMeter, oText, oDlg, @lEnd, cTag, cKey, cFile, nInterval, lUnique, bFor, lDescending ) },;
cMessage )
someone can contact xharbour team?
thanks
norberto wrote:Enrico, tdata is james bott class, i dont have permission to publish here, but in prevision revision of xharbour this error dont ocur.
regards
::Meter( { | oMeter, oText, oDlg, lEnd | ;
::buildIndex( oMeter, oText, oDlg, @lEnd, cTag, cKey, cFile, nInterval, lUnique, bFor, lDescending ) },;
cMessage )
FUNCTION MAIN()
LOCAL cTag, cKey, cFile, nInterval, lUnique, bFor, lDescending
LOCAL cMessage := ""
Meter( { | oMeter, oText, oDlg, lEnd | ;
buildIndex( oMeter, oText, oDlg, @lEnd, cTag, cKey, cFile, nInterval, lUnique, bFor, lDescending ) },;
cMessage )
RETURN NIL
/*
Purpose : Test compile to test error generated by new version of xHarbour
Author : James Bott, jbott@compuserve.com
Date : 8/28/2016
Company : Intellitech
Copyright: Copyright © 2016 Intellitech
Language : Fivewin/xHarbour
Updated :
Notes : Norberto tried compiling TData with this version of xHarbour
2016-08-15 17:04 UTC-0400 Ron Pinkas <ron.pinkas/at/xharbour.com>
And got this error:
Tdata\Tdata.prg(281) Error E0047 Code block contains both macro and declared symbol references
line of tdata :
::buildIndex( oMeter, oText, oDlg, @lEnd, cTag, cKey, cFile, nInterval, lUnique, bFor, lDescending ) },;
cMessage )
So I wrote a dummy TData class to test for the problem.
No errors were generated using my older version of xHarbour - J Bott
/
#include "fivewin.ch"
Function Main()
Return nil
Class TData
Data Meter
Method New()
Method BuildIndex()
Method Meter()
Method Reindex()
endclass
Method new() class TData
return self
Method Reindex() Class TData
Local oMeter,oText,oDlg,lEnd,cTag, cKey, cFile, nInterval, lUnique, bFor, lDescending, cMessage
::Meter( { | oMeter, oText, oDlg, lEnd | ;
::buildIndex( oMeter, oText, oDlg, @lEnd, cTag, cKey, cFile, nInterval, lUnique, bFor, lDescending ) },;
cMessage )
return nil
Method BuildIndex() Class TData
Return nil
Method Meter() Class TData
return nil
// EOF
#include "fivewin.ch"
Function Main()
Return nil
Class TData
Data Meter
Method New()
Method BuildIndex()
Method Meter()
Method Reindex()
endclass
Method new() class TData
return self
Method Reindex() Class TData
Local oMeter,oText,oDlg,lEnd,cTag, cKey, cFile, nInterval, lUnique, bFor:={|| .t.}, lDescending, cMessage
::Meter( { | oMeter, oText, oDlg, lEnd | ;
::buildIndex( oMeter, oText, oDlg, @lEnd, cTag, cKey, cFile, nInterval, lUnique, bFor, lDescending ) },;
cMessage )
return nil
Method BuildIndex() Class TData
Return nil
Method Meter() Class TData
return nil
// EOF
#include "fivewin.ch"
Function Main()
Return nil
Class TData
Method New()
Method BuildIndex()
Method Meter()
Method Reindex()
endclass
Method new() class TData
return self
Method Reindex() Class TData
Local cTag, cKey, cFile, nInterval, lUnique, bFor:={|| .t.}, lDescending, cMessage := ""
::Meter( { | oMeter, oText, oDlg, lEnd | ;
::buildIndex( oMeter, oText, oDlg, @lEnd, cTag, cKey, cFile, nInterval, lUnique, bFor, lDescending ) },;
cMessage )
return nil
Method BuildIndex() Class TData
Return nil
Method Meter() Class TData
return nil
test.prg(11) Warning W0019 Duplicate declaration of Method 'METER'
test.prg(28) Warning W0003 Variable: 'OMETER' declared but not used in function: 'TDATA_REINDEX(20)'
test.prg(28) Warning W0003 Variable: 'OTEXT' declared but not used in function: 'TDATA_REINDEX(20)'
test.prg(28) Warning W0003 Variable: 'ODLG' declared but not used in function: 'TDATA_REINDEX(20)'
test.prg(28) Warning W0003 Variable: 'LEND' declared but not used in function: 'TDATA_REINDEX(20)'
test.prg(28) Warning W0033 Variable 'CMESSAGE' is never assigned in function 'TDATA_REINDEX(20)'
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 97 guests