glib/glib/gnulib
Ignacio Casal Quinteiro 212e4232e7 Update gnulib
It updates it to the version c5d07ce91a8ad51591154450442fa4376441fdfa
As a difference with upstream we need to ensure:
 * Include "g-gnulib.h" so the methods get the gnulib namespace.
 * xsize.h uses G_MAXSIZE instead of SIZE_MAX and the methods are
   marked as static inline.
 * Some defines are named different from the ones in glib i.e
   HAVE_LONG_LONG_INT is HAVE_LONG_LONG

All the unit tests pass properly with and without --enable-included-printf.
It has also been tested on Windows.

https://bugzilla.gnome.org/show_bug.cgi?id=756382
2015-10-15 14:54:42 +02:00
..
asnprintf.c Updated FSF's address 2014-01-31 14:31:55 +01:00
g-gnulib.h Updated FSF's address 2014-01-31 14:31:55 +01:00
Makefile.am Update gnulib 2015-10-15 14:54:42 +02:00
makefile.msc removed -GD to compile with msvc9 (vs2008) with less complains 2007-12-09 14:38:26 +00:00
printf-args.c Update gnulib 2015-10-15 14:54:42 +02:00
printf-args.h Update gnulib 2015-10-15 14:54:42 +02:00
printf-parse.c Update gnulib 2015-10-15 14:54:42 +02:00
printf-parse.h Update gnulib 2015-10-15 14:54:42 +02:00
printf.c Updated FSF's address 2014-01-31 14:31:55 +01:00
printf.h Updated FSF's address 2014-01-31 14:31:55 +01:00
README Fix 64bit printing for MSVC builds (#119292, Hans Breuer): 2003-11-02 00:54:02 +00:00
vasnprintf.c Update gnulib 2015-10-15 14:54:42 +02:00
vasnprintf.h Update gnulib 2015-10-15 14:54:42 +02:00
verify.h Update gnulib 2015-10-15 14:54:42 +02:00
xsize.h Update gnulib 2015-10-15 14:54:42 +02:00

The files
 
 asnprintf.c 
 printf-args.c
 printf-args.h
 printf-parse.c
 printf-parse.h
 vasnprintf.c
 vasnprintf.h

are taken from the vasnprintf module of the GNUlib package, which can
be found at: 

 http://www.gnu.org/software/gnulib/

All files have been modified to include g-gnulib.h. 

vasnprintf.c has also been modified to include support for long long 
printing if the system printf doesn't. This code is protected by 
#ifndef HAVE_LONG_LONG_FORMAT.

Code has been added to printf-args.[ch], printf-parse.c and vasnprintf.c
to support printing of __int64 values with the I64 format modifier. This
is protected by #ifdef HAVE_INT64_AND_I64.

The files

 printf.h 
 printf.c
 g-gnulib.h

have been written by me. printf.[hc] contain implementations of the  
remaining functions in the printf family based on vasnprintf. 
g-gnulib.h is included by all source files in order to move all
exported functions to the _g_gnulib namespace, replace malloc by
g_malloc and make sure that snprintf is only used if it implements 
C99 return value semantics. 

Matthias Clasen
November 1, 2003