Re: C99/GCC extensions?

From: Dominic Lachowicz <domlachowicz_at_gmail.com>
Date: Thu Apr 14 2011 - 21:37:14 CEST

AbiWord uses Glib. Glib has some branch annotation macros, and a bunch
of other GCC/C99 macros that "do the right thing" or no-op for your
toolchain. Eg:

G_LIKELY, G_UNLIKELY

The full list of macros supported is @
http://developer.gimp.org/api/2.0/glib/glib-Miscellaneous-Macros.html

On Thu, Apr 14, 2011 at 3:26 PM, Ersin Akinci <ersin.akinci@gmail.com> wrote:
>
> Hi all,
>
> I was reading up on my Linux kernel development lore, and I just
> learned about C99 and GCC-specific extensions to ANSI C.  Does AbiWord
> use these, or are they a no-no for portability?  (I.e., do we support
> MSVC, etc.?)  I was especially wondering about branch annotation,
> which would be very useful for the FV_View::_draw code I rewrote.
>
> -Ersin
>
> --
> Ersin Y. Akinci -- ersinakinci.com
>
> What Digital Revolution? -- www.whatdigitalrevolution.com
> Thinking critically about digital worlds.

--
"I like to pay taxes. With them, I buy civilization." --  Oliver Wendell Holmes
Received on Thu Apr 14 21:37:26 2011

This archive was generated by hypermail 2.1.8 : Thu Apr 14 2011 - 21:37:26 CEST