hb_inline() not working in xharbour from fivewin

hb_inline() not working in xharbour from fivewin

Postby nageswaragunupudi » Sat Jun 16, 2007 12:49 pm

I have installed fwh705 and xharbour provided by fivewin (99.71). After upgrading, the hb_inline() is giving compliation error. ( used to work earlier with xharbour 99.70 binaries downloaded from xharbour.org). We can try compiling inline_c.prg in the samples folder.

error E0020 : Incomplete statement or unbalanced delimiters.

can you pl suggest the solution Mr.Antanio?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: hb_inline() not working in xharbour from fivewin

Postby Enrico Maria Giordano » Sat Jun 16, 2007 3:04 pm

Try the following sample:

Code: Select all  Expand view  RUN
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL n := 5

    ? n

    HB_INLINE( @n );
    {
        int n = hb_parni( 1 ) ;
        n++;
        hb_storni( n, 1 );
    }

    ? n

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby nageswaragunupudi » Sat Jun 16, 2007 4:46 pm

Thanks. This is working now.
The difference is semicolon is _now_ required between hb_inline( .. ) and the following curly braces ( { )

Earlier it used to work without this semicolon.

Thank you very much Mr. Enrico.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby nageswaragunupudi » Sat Jun 16, 2007 5:30 pm

Sorry. I understand now.
The syntax is hb_inline ( ... ) {
or
hb_inline( .. ) ; (semicolon is for continuation of { on the next line.
{

this solved the issue.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 98 guests