Revision: 11006
http://harbour-project.svn.sourceforge.net/harbour-project/?rev=11006&view=rev
Author: druzus
Date: 2009-05-07 14:44:36 +0000 (Thu, 07 May 2009)
Log Message:
-----------
2009-05-07 16:52 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbcompdf.h
* harbour/source/compiler/harbour.y
* harbour/source/compiler/harbour.yyc
+ added compile time optimization for switch statements with constant
values, i.e. for code like:
proc main()
local x := 0
switch 3
case 1; x += 100; exit
case 2; x += 200
case 3; x += 300
case 4; x += 400; exit
case 5; x += 505; exit
case 6; x += 606
otherwise; x += 1000
endswitch
? x
return
Modified Paths:
--------------
trunk/harbour/ChangeLog
trunk/harbour/include/hbcompdf.h
trunk/harbour/source/compiler/harbour.y
trunk/harbour/source/compiler/harbour.yyc
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour