Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-04

how to bind the following c code ?

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik

Hello,

I'm trying to add missing Pango functions to both Lazarus and FPC for BiDi support, and I have encountered the following function:

PangoDirection pango_unichar_direction      (gunichar     ch) G_GNUC_CONST;

I do not understand the G_GNUC_CONST part, does anyone here know what it suppose to be ?

Thanks,

Ido

http://ik.homelinux.org/

Reply by email

dmitry boyarintsev
to ik
ik wrote
I do not understand the G_GNUC_CONST part, does anyone here know what it suppose to be ?

It's C define. I suspect it would be some GNU-C attribute, that in the end won't be used by Pascal in anyway.
You need to find the definition of G_GNUC_CONS to be sure.

thanks,
dmitry

Reply by email

Henry Vermaak
to ik: I'm trying to add missing Pango functions to both Lazarus and FPC for BiDi support, and I…
ik wrote 9 lines
Hello, I'm trying to add missing Pango functions to both Lazarus and FPC for BiDi support, and I have encountered the following function: PangoDirection pango_unichar_direction      (gunichar     ch) G_GNUC_CONST; I do not understand the G_GNUC_CONST part, does anyone here know what it suppose to be ?

http://library.gnome.org/devel/glib/stable/glib-Miscellaneous-Macros.html#G-GNUC-CONST:CAPS

Henry

Reply by email