G_INT_FORMAT



1999-03-15  Sebastian Wilhelmi  <wilhelmi ira uka de>

        * glib.h Added G_(U)?(SHORT|INT|LONG)_FORMAT for consistency. It
        however makes no sense to also provide G_(FLOAT|DOUBLE)_FORMAT, as
        they are different for printf (f for both) and scanf (f for float,
        lf for double). Defining G_INT_FORMAT makes sense however, as we
        might want to define gint to something different than int someday
        in the future. Idea from Sascha Brawer <sb adasys ch>.
        
These were apparently added right after glib-1.2. I'd like
to remove them.

a) Anybody who writes:

 g_print ("I see " G_INT_FORMAT " ducks.", n_ducks);

for consistency or clarity, needs to be whacked upside the
head. ;-)

b) We will NOT define gint to anything other than int.

Regards,
                                        Owen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]