[fpc-pascal] how to bind the following c code ?
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/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] how to bind the following c code ?
On Wed, Apr 14, 2010 at 1:38 PM, ik ido...@gmail.com 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 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] how to bind the following c code ?
On 14 April 2010 10:38, ik ido...@gmail.com wrote: 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 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal