Fix for #103710, Mark Jones:

Tue Dec  2 02:29:41 2003  Matthias Clasen  <maclas@gmx.de>

	Fix for #103710, Mark Jones:

	* glib/gtypes.h (G_MAXINT64): Define G_{MIN,MAX,MAXU}INT{8,16,32,64}.
	* configure.in: Don't put G_{MIN,MAX,MAXU}INT64 in glibconfig.h.
This commit is contained in:
Matthias Clasen 2003-12-02 01:31:43 +00:00 committed by Matthias Clasen
parent aa63f7e373
commit 04c96e8fa3
11 changed files with 149 additions and 13 deletions

View File

@ -1,3 +1,10 @@
Tue Dec 2 02:29:41 2003 Matthias Clasen <maclas@gmx.de>
Fix for #103710, Mark Jones:
* glib/gtypes.h (G_MAXINT64): Define G_{MIN,MAX,MAXU}INT{8,16,32,64}.
* configure.in: Don't put G_{MIN,MAX,MAXU}INT64 in glibconfig.h.
Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org> Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org>
* glib/gstrfuncs.c (g_strconcat): handle NULL arguments * glib/gstrfuncs.c (g_strconcat): handle NULL arguments

View File

@ -1,3 +1,10 @@
Tue Dec 2 02:29:41 2003 Matthias Clasen <maclas@gmx.de>
Fix for #103710, Mark Jones:
* glib/gtypes.h (G_MAXINT64): Define G_{MIN,MAX,MAXU}INT{8,16,32,64}.
* configure.in: Don't put G_{MIN,MAX,MAXU}INT64 in glibconfig.h.
Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org> Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org>
* glib/gstrfuncs.c (g_strconcat): handle NULL arguments * glib/gstrfuncs.c (g_strconcat): handle NULL arguments

View File

@ -1,3 +1,10 @@
Tue Dec 2 02:29:41 2003 Matthias Clasen <maclas@gmx.de>
Fix for #103710, Mark Jones:
* glib/gtypes.h (G_MAXINT64): Define G_{MIN,MAX,MAXU}INT{8,16,32,64}.
* configure.in: Don't put G_{MIN,MAX,MAXU}INT64 in glibconfig.h.
Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org> Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org>
* glib/gstrfuncs.c (g_strconcat): handle NULL arguments * glib/gstrfuncs.c (g_strconcat): handle NULL arguments

View File

@ -1,3 +1,10 @@
Tue Dec 2 02:29:41 2003 Matthias Clasen <maclas@gmx.de>
Fix for #103710, Mark Jones:
* glib/gtypes.h (G_MAXINT64): Define G_{MIN,MAX,MAXU}INT{8,16,32,64}.
* configure.in: Don't put G_{MIN,MAX,MAXU}INT64 in glibconfig.h.
Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org> Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org>
* glib/gstrfuncs.c (g_strconcat): handle NULL arguments * glib/gstrfuncs.c (g_strconcat): handle NULL arguments

View File

@ -1,3 +1,10 @@
Tue Dec 2 02:29:41 2003 Matthias Clasen <maclas@gmx.de>
Fix for #103710, Mark Jones:
* glib/gtypes.h (G_MAXINT64): Define G_{MIN,MAX,MAXU}INT{8,16,32,64}.
* configure.in: Don't put G_{MIN,MAX,MAXU}INT64 in glibconfig.h.
Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org> Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org>
* glib/gstrfuncs.c (g_strconcat): handle NULL arguments * glib/gstrfuncs.c (g_strconcat): handle NULL arguments

View File

@ -1,3 +1,10 @@
Tue Dec 2 02:29:41 2003 Matthias Clasen <maclas@gmx.de>
Fix for #103710, Mark Jones:
* glib/gtypes.h (G_MAXINT64): Define G_{MIN,MAX,MAXU}INT{8,16,32,64}.
* configure.in: Don't put G_{MIN,MAX,MAXU}INT64 in glibconfig.h.
Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org> Thu Nov 27 17:04:08 2003 Tim Janik <timj@gtk.org>
* glib/gstrfuncs.c (g_strconcat): handle NULL arguments * glib/gstrfuncs.c (g_strconcat): handle NULL arguments

View File

@ -2017,10 +2017,6 @@ G_BEGIN_DECLS
#define G_MAXLONG $glib_Ml #define G_MAXLONG $glib_Ml
#define G_MAXULONG $glib_Mul #define G_MAXULONG $glib_Mul
#define G_MININT64 G_GINT64_CONSTANT(0x8000000000000000)
#define G_MAXINT64 G_GINT64_CONSTANT(0x7fffffffffffffff)
#define G_MAXUINT64 G_GINT64_CONSTANT(0xffffffffffffffffU)
_______EOF _______EOF

View File

@ -1,3 +1,8 @@
Tue Dec 2 02:31:15 2003 Matthias Clasen <maclas@gmx.de>
* glib/tmpl/limits.sgml:
* glib/glib-sections.txt: Add G_{MIN,MAX,MAXU}INT{8,16,32}.
Thu Nov 6 01:42:36 2003 Matthias Clasen <maclas@gmx.de> Thu Nov 6 01:42:36 2003 Matthias Clasen <maclas@gmx.de>
* glib/glib-sections.txt: Add an i18n section. * glib/glib-sections.txt: Add an i18n section.

View File

@ -63,6 +63,21 @@ G_MINLONG
G_MAXLONG G_MAXLONG
G_MAXULONG G_MAXULONG
<SUBSECTION>
G_MININT8
G_MAXINT8
G_MAXUINT8
<SUBSECTION>
G_MININT16
G_MAXINT16
G_MAXUINT16
<SUBSECTION>
G_MININT32
G_MAXINT32
G_MAXUINT32
<SUBSECTION> <SUBSECTION>
G_MININT64 G_MININT64
G_MAXINT64 G_MAXINT64

View File

@ -78,6 +78,78 @@ The maximum value which can be held in a #gulong.
<!-- ##### MACRO G_MININT8 ##### -->
<para>
The minimum value which can be held in a #gint8.
</para>
@Since: 2.4
<!-- ##### MACRO G_MAXINT8 ##### -->
<para>
The maximum value which can be held in a #gint8.
</para>
@Since: 2.4
<!-- ##### MACRO G_MAXUINT8 ##### -->
<para>
The maximum value which can be held in a #guint8.
</para>
@Since: 2.4
<!-- ##### MACRO G_MININT16 ##### -->
<para>
The minimum value which can be held in a #gint16.
</para>
@Since: 2.4
<!-- ##### MACRO G_MAXINT16 ##### -->
<para>
The maximum value which can be held in a #gint16.
</para>
@Since: 2.4
<!-- ##### MACRO G_MAXUINT16 ##### -->
<para>
The maximum value which can be held in a #guint16.
</para>
@Since: 2.4
<!-- ##### MACRO G_MININT32 ##### -->
<para>
The minimum value which can be held in a #gint32.
</para>
@Since: 2.4
<!-- ##### MACRO G_MAXINT32 ##### -->
<para>
The maximum value which can be held in a #gint32.
</para>
@Since: 2.4
<!-- ##### MACRO G_MAXUINT32 ##### -->
<para>
The maximum value which can be held in a #guint32.
</para>
@Since: 2.4
<!-- ##### MACRO G_MININT64 ##### --> <!-- ##### MACRO G_MININT64 ##### -->
<para> <para>
The minimum value which can be held in a #gint64. The minimum value which can be held in a #gint64.

View File

@ -52,16 +52,22 @@ typedef unsigned int guint;
typedef float gfloat; typedef float gfloat;
typedef double gdouble; typedef double gdouble;
/* HAVE_LONG_DOUBLE doesn't work correctly on all platforms. /* Define min and max constants for the fixed size numerical types */
* Since gldouble isn't used anywhere, just disable it for now */ #define G_MININT8 ((gint8) 0x80)
#define G_MAXINT8 ((gint8) 0x7f)
#define G_MAXUINT8 ((guint8) 0xff)
#if 0 #define G_MININT16 ((gint16) 0x8000)
#ifdef HAVE_LONG_DOUBLE #define G_MAXINT16 ((gint16) 0x7fff)
typedef long double gldouble; #define G_MAXUINT16 ((guint16) 0xffff)
#else /* HAVE_LONG_DOUBLE */
typedef double gldouble; #define G_MININT32 ((gint32) 0x80000000)
#endif /* HAVE_LONG_DOUBLE */ #define G_MAXINT32 ((gint32) 0x7fffffff)
#endif /* 0 */ #define G_MAXUINT32 ((guint32) 0xffffffff)
#define G_MININT64 G_GINT64_CONSTANT(0x8000000000000000)
#define G_MAXINT64 G_GINT64_CONSTANT(0x7fffffffffffffff)
#define G_MAXUINT64 G_GINT64_CONSTANT(0xffffffffffffffffU)
typedef void* gpointer; typedef void* gpointer;
typedef const void *gconstpointer; typedef const void *gconstpointer;