"Fossies" - the Fresh Open Source Software Archive

Member "glib-2.66.8/glib/gnulib/README" (18 Mar 2021, 2195 Bytes) of package /linux/misc/glib-2.66.8.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 The files
    2  
    3  asnprintf.c 
    4  printf-args.c
    5  printf-args.h
    6  printf-parse.c
    7  printf-parse.h
    8  vasnprintf.c
    9  vasnprintf.h
   10 
   11 are taken from the vasnprintf module of the GNUlib package, which can
   12 be found at: 
   13 
   14  http://www.gnu.org/software/gnulib/
   15 
   16 All files have been modified to include g-gnulib.h. 
   17 
   18 vasnprintf.c has also been modified to include support for long long 
   19 printing if the system printf doesn't. This code is protected by 
   20 #ifndef HAVE_LONG_LONG_FORMAT.
   21 
   22 Code has been added to printf-args.[ch], printf-parse.c and vasnprintf.c
   23 to support printing of __int64 values with the I64 format modifier. This
   24 is protected by #ifdef HAVE_INT64_AND_I64.
   25 
   26 The files
   27 
   28  printf.h 
   29  printf.c
   30  g-gnulib.h
   31 
   32 have been written by me. printf.[hc] contain implementations of the  
   33 remaining functions in the printf family based on vasnprintf. 
   34 g-gnulib.h is included by all source files in order to move all
   35 exported functions to the _g_gnulib namespace, replace malloc by
   36 g_malloc and make sure that snprintf is only used if it implements 
   37 C99 return value semantics. 
   38 
   39 Matthias Clasen
   40 November 1, 2003
   41 
   42 To update:
   43 * Create an empty directory, put a configure.ac file into it.
   44 * Run gnulib-tool --lgpl=2 --import --lib=libgnu --source-base=lib \
   45   --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. \
   46   --no-conditional-dependencies --no-libtool --macro-prefix=gl \
   47   isnand-nolibm isnanf-nolibm isnanl-nolibm printf-frexpl \
   48   signbit vasnprintf
   49 * Then pick out the files that are already in glib/gnulib subdirectory
   50   (the rest of the files are not needed):
   51 
   52 asnprintf.c
   53 c++defs.h
   54 float+.h
   55 fpucw.h
   56 gnulib_math.h.in (rename from math.in.h)
   57 isnan.c
   58 isnand.c
   59 isnand-nolibm.h
   60 isnanf.c
   61 isnanf-nolibm.h
   62 isnanl.c
   63 isnanl-nolibm.h
   64 printf-args.c
   65 printf-args.h
   66 printf-frexp.c
   67 printf-frexp.h
   68 printf-frexpl.c
   69 printf-frexpl.h
   70 printf-parse.c
   71 printf-parse.h
   72 signbitd.c
   73 signbitf.c
   74 signbitl.c
   75 vasnprintf.c
   76 vasnprintf.h
   77 verify.h
   78 xsize.h
   79 
   80 * Then look at the glib-gnulib.patch and re-introduce custom glib changes
   81   contained in that patch.
   82 * If gnulib_math.h.in got some new @variables@, these will have to be
   83   somehow set in meson.build, otherwise meson would warn about them
   84   at configure stage
   85 
   86 LRN
   87 June 06, 2018