2009-04-27 17:00 UTC+0700 Andi Jahja <xharbour/AT/telkom/net/id> * source/common/hbstr.c + attached a note on function hb_stripOutComments()
* source/compiler/genc.c ! reinstated the use of hb_stripOutComments() when analyzing static functions under "pragma begindump/enddump" (yet to be improved), so that a "dirty" code like below is now compiled correctly: proc main() ? YEAR( DATE() ), MONTH( DATE() ), DAY( DATE() ), TEST() return #pragma begindump #include "hbapi.h" /* are comments stripped? If not then HB_FUNC_STATIC( DATE ) in comment can create troubles. */ // HB_FUNC_STATIC( YEAR ) just like this one in C++ comments #define MYHB_FUNC_STATIC( fun ) #fun // to test whole word tokens /* COMMENT */HB_FUNC_STATIC( TEST ) { hb_retc( "HB_FUNC_STATIC( DAY )->" MYHB_FUNC_STATIC( MONTH ) ); } #pragma enddump -- Andi ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ xHarbour-developers mailing list xHarbour-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xharbour-developers