2009-04-28 06:30 UTC+0700 Andi Jahja <xharbour/AT/telkom/net/id>
  * source/compiler/genc.c
    ! minor fix in parsing function name (yet to be improved) so that
      a more "dirty" code like below is now compiled fine.
      (Thanks to Przemek for pointing it out)

        proc main()
           ? YEAR( DATE() ), MONTH( DATE() ), DAY( DATE() ), TEST()
           ? T1(), T2()
        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
        #define HB_FUNC_STATIC_STR( fun )  #fun // to test whole word tokens
        /* COMMENT */HB_FUNC_STATIC( TEST )
        {
           hb_retc( " HB_FUNC_STATIC( DAY )\n{ ... }\n" HB_FUNC_STATIC_STR( 
MONTH ) );
        }
        #pragma enddump

        #pragma begindump
        HB_FUNC_STATIC(T1){hb_retc("T1");}HB_FUNC_STATIC(T2){hb_retc("T2");}
        #pragma enddump
--
Andi


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to