Re: Depending on C99 (Re: GtkBindingSignal changes)

2006-01-06 Thread Xavier Bestel
On Thu, 2006-01-05 at 22:23, Hans Breuer wrote: > There is no benefit in it with regard to C99 features. [...] > Tell me what you need, and I'll tell you how to > get along without it.-- Dilbert I see :) ___ gtk-devel-list mailing list

Re: Depending on C99 (Re: GtkBindingSignal changes)

2006-01-06 Thread muppet
On Jan 5, 2006, at 9:52 PM, Owen Taylor wrote: The main reason requiring C99 might be that most or all of the developers are now using C99 compilers and aren't able to catch slip-ups. It's hard to support something that we don't test with. Add "--std=c89" to your CFLAGS. It catches lots of s

Re: Depending on C99 (Re: GtkBindingSignal changes)

2006-01-06 Thread Tim Janik
On Thu, 5 Jan 2006, Tor Lillqvist wrote: Roger Leigh writes: > Why not just make proper C99 support the minimum requirement? BTW, are we discussing compilers used for building GTK+/GLib/etc here, or compilers used for building software that *uses* GTK+/GLib/etc? both, depending on C99 for

question about gobject.c (in GLib 2.9.2)

2006-01-06 Thread Benoit Carpentier
Hi everybody, in GLib 2.9.2, in gobject.c, lines 499 to 525 : static void g_object_do_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec) { switch (property_id)

Re: question about gobject.c (in GLib 2.9.2)

2006-01-06 Thread Michael Natterer
On Fri, 2006-01-06 at 13:10 +0100, Benoit Carpentier wrote: > Hi everybody, > > in GLib 2.9.2, in gobject.c, > > lines 499 to 525 : > > (snip) > > is there here a clear difference between these two > function ? > (g_object_do_set_property has const GValue argument > whereas g_object_do_set_prope

Re: Sinkability considered harmful

2006-01-06 Thread Tim Janik
On Wed, 4 Jan 2006, Federico Mena Quintero wrote: On Wed, 2006-01-04 at 12:33 +0100, Tim Janik wrote: 1. "The main motivation for providing floating references is C convenience" http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Type.html#floating-ref That's ina

Re: Depending on C99 (Re: GtkBindingSignal changes)

2006-01-06 Thread Hans Breuer
On 06.01.2006 09:24, muppet wrote: On Jan 5, 2006, at 9:52 PM, Owen Taylor wrote: The main reason requiring C99 might be that most or all of the developers are now using C99 compilers and aren't able to catch slip-ups. It's hard to support something that we don't test with. Add "--std=c89"

Re: Sinkability considered harmful

2006-01-06 Thread Bill Haneman
(federico) API freeze for GNOME 2.14 is approaching quickly. Can we please back out GObject floating references soon? (timj) no, there really is no point in that. even if we were to do that, we couldn't hold off floating references for non-GtkObjects but GObjects anyway. the results

Fwd: Re: Depending on C99 (Re: GtkBindingSignal changes)

2006-01-06 Thread ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN
>within compound statements. As an extension, GCC also allows this in >C89 mode. For example, you could do: IMO, this is a GCC bug... from the man page: (-std=) c89 iso9899:1990 ISO C90 (same as -ansi). gnu89 Default, ISO C90 plus GNU extens

Re: Re: Depending on C99 (Re: GtkBindingSignal changes)

2006-01-06 Thread Christophe Fergeau
> I would expect that to only be enabled if using gnu89, but indeed mixed > declarations and code do compile with -ansi or -std=c89. The only way to cause > this to generate warnings AFAIK is -pedantic: You can also use: -Wdeclaration-after-statement (C only) Warn when a declarat

Fwd: Re: Re: Depending on C99 (Re: GtkBindingSignal changes)

2006-01-06 Thread ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN
>You can also use: > > -Wdeclaration-after-statement (C only) > Warn when a declaration is found after a statement in a block. > This construct, known from C++, was introduced with ISO C99 and is > by default allowed in GCC. It is not supported by ISO C90 and was

Re: Fwd: Re: Depending on C99 (Re: GtkBindingSignal changes)

2006-01-06 Thread Dan Winship
ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN wrote: >> within compound statements. As an extension, GCC also allows this in >> C89 mode. For example, you could do: > > IMO, this is a GCC bug... from the man page: > > (-std=) > c89 > iso9899:1990 > ISO C90 (same as -ansi)

Re: Sinkability considered harmful

2006-01-06 Thread Tim Janik
On Fri, 6 Jan 2006, Bill Haneman wrote: (federico) API freeze for GNOME 2.14 is approaching quickly. Can we please back out GObject floating references soon? (timj) no, there really is no point in that. even if we were to do that, we couldn't hold off floating references for non-GtkObject

64bit format strings

2006-01-06 Thread Stefan Westerfeld
Hi! I am getting compile warnings on Linux AMD64 in places where BEAST needs to format gint64 strings, and with what glib-2.0 currently provides, I see no way of solving it within BEAST. Here is some example code: -- /* * cc -Wall $(pkg-config --libs --cflags glib-2.0) gint64print.c -o

Re: 64bit format strings

2006-01-06 Thread Matthias Clasen
On 1/6/06, Stefan Westerfeld <[EMAIL PROTECTED]> wrote: > > (1) Take no care that gint64 is defined by glib-2.0 as long long on > 32-bit platforms and as long on 64-bit platforms. This generates > compiler warnings on 64bit machines like Linux on AMD64. > > (2) Use glib's macros for formatting thin

Re: g_object_ref_sink and GUnowned

2006-01-06 Thread Matthias Clasen
On 1/3/06, Torsten Schoenfeld <[EMAIL PROTECTED]> wrote: > On Tue, 2006-01-03 at 14:32 +0100, Tim Janik wrote: > > > >>GtkObject derives from GUnowned > > > > > > This breaks the Perl bindings of GTK+. > > > > > > Our GTK+ bindings register GtkObject with our GLib bindings at start up. > > > Th