mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
30a1e1addb
Tue Oct 12 12:16:12 1999 Tim Janik <timj@gtk.org> * gmessages.c (g_printf_string_upper_bound): completly new implementation for printf string upper bounds calculation. we handle all glibc 2.1 format specifiers now, except for positional parameters (%nn$...) and wide char strings, plus some obscure upper case variants of the standard conversions. this fixes a lot of bugs in the old code, i.e. - NULL format strings - floats with exponents >+24 - %G - precision specifications in general - negative field widths - %p for SIZEOF_VOID_P > 4 platforms we now issue warnigns in places where the old code would have caused buffer overruns anyways. warnings are suppressed when invoked from glogv(), to avoid infinite recursions if someone passes a log message that comes with really obscure format specifications. Tue Oct 12 11:49:00 1999 Tim Janik <timj@gtk.org> * gstrfuncs.c: nuked old g_printf_string_upper_bound() version. Tue Oct 12 03:34:40 1999 Tim Janik <timj@gtk.org> * glib.h: added GFloatIEEE754 and GDoubleIEEE754 unions to access sign, mantissa and exponent of IEEE floats and doubles (required by the new version of g_printf_string_upper_bound). the unions are endian specific, we handle G_LITTLE_ENDIAN and G_BIG_ENDIAN as of currently. ieee floats and doubles are supported (used for storage) by at least intel, ppc and sparc, reference: http://twister.ou.edu/workshop.docs/common-tools/numerical_comp_guide/ncg_math.doc.html Mon Oct 11 18:01:49 1999 Tim Janik <timj@gtk.org> * configure.in: added additional checks to figure sizes of size_t, ptrdiff_t and intmax_t (required by g_printf_string_upper_bound).
117 lines
3.1 KiB
C
117 lines
3.1 KiB
C
/* GLIB - Library of useful routines for C programming
|
||
* Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
|
||
*
|
||
* This library is free software; you can redistribute it and/or
|
||
* modify it under the terms of the GNU Library General Public
|
||
* License as published by the Free Software Foundation; either
|
||
* version 2 of the License, or (at your option) any later version.
|
||
*
|
||
* This library is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
* Library General Public License for more details.
|
||
*
|
||
* You should have received a copy of the GNU Library General Public
|
||
* License along with this library; if not, write to the
|
||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||
* Boston, MA 02111-1307, USA.
|
||
*/
|
||
/* acconfig.h
|
||
This file is in the public domain.
|
||
|
||
Descriptive text for the C preprocessor macros that
|
||
the distributed Autoconf macros can define.
|
||
No software package will use all of them; autoheader copies the ones
|
||
your configure.in uses into your configuration header file templates.
|
||
|
||
The entries are in sort -df order: alphabetical, case insensitive,
|
||
ignoring punctuation (such as underscores). Although this order
|
||
can split up related entries, it makes it easier to check whether
|
||
a given entry is in the file.
|
||
|
||
Leave the following blank line there!! Autoheader needs it. */
|
||
|
||
|
||
/* Other stuff */
|
||
|
||
#undef ENABLE_MEM_CHECK
|
||
#undef ENABLE_MEM_PROFILE
|
||
|
||
#undef REALLOC_0_WORKS
|
||
|
||
#undef G_COMPILED_WITH_DEBUGGING
|
||
#undef G_ENABLE_MSG_PREFIX
|
||
#undef G_THREADS_ENABLED
|
||
|
||
#undef GLIB_SIZEOF_GMUTEX
|
||
#undef GLIB_SIZEOF_INTMAX_T
|
||
#undef GLIB_SIZEOF_PTHREAD_T
|
||
#undef GLIB_SIZEOF_PTRDIFF_T
|
||
#undef GLIB_SIZEOF_SIZE_T
|
||
|
||
#undef GLIB_BYTE_CONTENTS_GMUTEX
|
||
#undef GLIB_BYTE_CONTENTS_GRECMUTEX
|
||
|
||
#undef HAVE_BROKEN_WCTYPE
|
||
#undef HAVE_DOPRNT
|
||
#undef HAVE_FLOAT_H
|
||
#undef HAVE_GETPWUID_R
|
||
#undef HAVE_GETPWUID_R_POSIX
|
||
#undef HAVE_LIMITS_H
|
||
#undef HAVE_LONG_DOUBLE
|
||
#undef HAVE_POLL
|
||
#undef HAVE_PTHREAD_ATTR_SETSTACKSIZE
|
||
#undef HAVE_PWD_H
|
||
#undef HAVE_PW_GECOS
|
||
#undef HAVE_SYS_PARAM_H
|
||
#undef HAVE_SYS_POLL_H
|
||
#undef HAVE_SYS_SELECT_H
|
||
#undef HAVE_SYS_TIME_H
|
||
#undef HAVE_SYS_TIMES_H
|
||
#undef HAVE_STRERROR
|
||
#undef HAVE_STRSIGNAL
|
||
#undef HAVE_UNISTD_H
|
||
#undef HAVE_VALUES_H
|
||
#undef HAVE_WCHAR_H
|
||
#undef HAVE_WCTYPE_H
|
||
#undef HAVE_WORKING_BCOPY
|
||
|
||
#undef NO_FD_SET
|
||
#undef NO_SYS_ERRLIST
|
||
#undef NO_SYS_SIGLIST
|
||
#undef NO_SYS_SIGLIST_DECL
|
||
|
||
#undef SIZEOF_CHAR
|
||
#undef SIZEOF_SHORT
|
||
#undef SIZEOF_LONG
|
||
#undef SIZEOF_INT
|
||
#undef SIZEOF_VOID_P
|
||
|
||
#undef G_VA_COPY
|
||
#undef G_VA_COPY_AS_ARRAY
|
||
#undef G_HAVE___INLINE
|
||
#undef G_HAVE___INLINE__
|
||
#undef G_HAVE_INLINE
|
||
|
||
#undef GLIB_MAJOR_VERSION
|
||
#undef GLIB_MINOR_VERSION
|
||
#undef GLIB_MICRO_VERSION
|
||
#undef GLIB_INTERFACE_AGE
|
||
#undef GLIB_BINARY_AGE
|
||
|
||
#undef G_THREAD_SOURCE
|
||
#undef POSIX_MIN_PRIORITY
|
||
#undef POSIX_MAX_PRIORITY
|
||
#undef POSIX_YIELD_FUNC
|
||
|
||
/* #undef PACKAGE */
|
||
/* #undef VERSION */
|
||
|
||
|
||
|
||
|
||
/* Leave that blank line there!! Autoheader needs it.
|
||
If you're adding to this file, keep in mind:
|
||
The entries are in sort -df order: alphabetical, case insensitive,
|
||
ignoring punctuation (such as underscores). */
|