+Wed Jul 26 05:03:24 2000 Tim Janik <timj@gtk.org>
+
+ * acglib.m4 (GLIB_SIZEOF): include <stdlib.h> and <stddef.h> if
+ STDC_HEADERS is defined.
+
+ * glib.h:
+ * glibconfig.h: define gsize and gssize in terms of GLIB_SIZEOF_SIZE_T
+
+ * glib.h (g_return_if_reached): applied darin's fix for copy'n
+ paste error in the macro implementation.
+
Wed Jul 26 00:46:03 2000 Tim Janik <timj@gtk.org>
* glib.h: applied patch from Darin Adler <darin@eazel.com> which
+Wed Jul 26 05:03:24 2000 Tim Janik <timj@gtk.org>
+
+ * acglib.m4 (GLIB_SIZEOF): include <stdlib.h> and <stddef.h> if
+ STDC_HEADERS is defined.
+
+ * glib.h:
+ * glibconfig.h: define gsize and gssize in terms of GLIB_SIZEOF_SIZE_T
+
+ * glib.h (g_return_if_reached): applied darin's fix for copy'n
+ paste error in the macro implementation.
+
Wed Jul 26 00:46:03 2000 Tim Janik <timj@gtk.org>
* glib.h: applied patch from Darin Adler <darin@eazel.com> which
+Wed Jul 26 05:03:24 2000 Tim Janik <timj@gtk.org>
+
+ * acglib.m4 (GLIB_SIZEOF): include <stdlib.h> and <stddef.h> if
+ STDC_HEADERS is defined.
+
+ * glib.h:
+ * glibconfig.h: define gsize and gssize in terms of GLIB_SIZEOF_SIZE_T
+
+ * glib.h (g_return_if_reached): applied darin's fix for copy'n
+ paste error in the macro implementation.
+
Wed Jul 26 00:46:03 2000 Tim Janik <timj@gtk.org>
* glib.h: applied patch from Darin Adler <darin@eazel.com> which
+Wed Jul 26 05:03:24 2000 Tim Janik <timj@gtk.org>
+
+ * acglib.m4 (GLIB_SIZEOF): include <stdlib.h> and <stddef.h> if
+ STDC_HEADERS is defined.
+
+ * glib.h:
+ * glibconfig.h: define gsize and gssize in terms of GLIB_SIZEOF_SIZE_T
+
+ * glib.h (g_return_if_reached): applied darin's fix for copy'n
+ paste error in the macro implementation.
+
Wed Jul 26 00:46:03 2000 Tim Janik <timj@gtk.org>
* glib.h: applied patch from Darin Adler <darin@eazel.com> which
+Wed Jul 26 05:03:24 2000 Tim Janik <timj@gtk.org>
+
+ * acglib.m4 (GLIB_SIZEOF): include <stdlib.h> and <stddef.h> if
+ STDC_HEADERS is defined.
+
+ * glib.h:
+ * glibconfig.h: define gsize and gssize in terms of GLIB_SIZEOF_SIZE_T
+
+ * glib.h (g_return_if_reached): applied darin's fix for copy'n
+ paste error in the macro implementation.
+
Wed Jul 26 00:46:03 2000 Tim Janik <timj@gtk.org>
* glib.h: applied patch from Darin Adler <darin@eazel.com> which
+Wed Jul 26 05:03:24 2000 Tim Janik <timj@gtk.org>
+
+ * acglib.m4 (GLIB_SIZEOF): include <stdlib.h> and <stddef.h> if
+ STDC_HEADERS is defined.
+
+ * glib.h:
+ * glibconfig.h: define gsize and gssize in terms of GLIB_SIZEOF_SIZE_T
+
+ * glib.h (g_return_if_reached): applied darin's fix for copy'n
+ paste error in the macro implementation.
+
Wed Jul 26 00:46:03 2000 Tim Janik <timj@gtk.org>
* glib.h: applied patch from Darin Adler <darin@eazel.com> which
+Wed Jul 26 05:03:24 2000 Tim Janik <timj@gtk.org>
+
+ * acglib.m4 (GLIB_SIZEOF): include <stdlib.h> and <stddef.h> if
+ STDC_HEADERS is defined.
+
+ * glib.h:
+ * glibconfig.h: define gsize and gssize in terms of GLIB_SIZEOF_SIZE_T
+
+ * glib.h (g_return_if_reached): applied darin's fix for copy'n
+ paste error in the macro implementation.
+
Wed Jul 26 00:46:03 2000 Tim Janik <timj@gtk.org>
* glib.h: applied patch from Darin Adler <darin@eazel.com> which
+Wed Jul 26 05:03:24 2000 Tim Janik <timj@gtk.org>
+
+ * acglib.m4 (GLIB_SIZEOF): include <stdlib.h> and <stddef.h> if
+ STDC_HEADERS is defined.
+
+ * glib.h:
+ * glibconfig.h: define gsize and gssize in terms of GLIB_SIZEOF_SIZE_T
+
+ * glib.h (g_return_if_reached): applied darin's fix for copy'n
+ paste error in the macro implementation.
+
Wed Jul 26 00:46:03 2000 Tim Janik <timj@gtk.org>
* glib.h: applied patch from Darin Adler <darin@eazel.com> which
AC_MSG_CHECKING(size of $2)
AC_CACHE_VAL(AC_CV_NAME,
[AC_TRY_RUN([#include <stdio.h>
+#if STDC_HEADERS
+#include <stdlib.h>
+#include <stddef.h>
+#endif
$1
main()
{
size_includes=["
#include <stdarg.h>
#include <stdio.h>
-#include <stdlib.h>
#include <ctype.h>
#include <string.h>
"]
#define G_GINT64_FORMAT $gint64_format
#define G_GUINT64_FORMAT $guint64_format
#define G_GINT64_CONSTANT(val) $gint64_constant
+
_______EOF
fi
+ case x$glib_size_t in
+ x2) echo "typedef gint16 gssize;" >> $outfile
+ echo "typedef guint16 gsize;" >> $outfile
+ ;;
+ x4) echo "typedef gint32 gssize;" >> $outfile
+ echo "typedef guint32 gsize;" >> $outfile
+ ;;
+ x8) echo "typedef gint64 gssize;" >> $outfile
+ echo "typedef guint64 gsize;" >> $outfile
+ ;;
+ *) echo "#error size of size_t is unknown" >> $outfile
+ ;;
+ esac
if test -z "$glib_unknown_void_p"; then
cat >>$outfile <<_______EOF
gint64_constant='(G_GNUC_EXTENSION (val##LL))'
;;
esac
+glib_size_t=$glib_cv_sizeof_size_t
gintbits=`expr $ac_cv_sizeof_int \* 8`
glongbits=`expr $ac_cv_sizeof_long \* 8`
* gint16, guint16
* gint32, guint32
* gint64, guint64
+ * gssize, gsize
*
* It defines the G_BYTE_ORDER symbol to one of G_*_ENDIAN (see later in
* this file).
#define g_return_if_reached() G_STMT_START{ \
g_log (G_LOG_DOMAIN, \
G_LOG_LEVEL_CRITICAL, \
- "file %s: line %d (%s): assertion `%s' failed", \
+ "file %s: line %d (%s): should not be reached", \
__FILE__, \
__LINE__, \
__PRETTY_FUNCTION__); \
#define g_return_if_reached() G_STMT_START{ \
g_log (G_LOG_DOMAIN, \
G_LOG_LEVEL_CRITICAL, \
- "file %s: line %d: assertion `%s' failed", \
+ "file %s: line %d: should not be reached", \
__FILE__, \
__LINE__); \
return; }G_STMT_END
typedef const void *gconstpointer;
-typedef gint32 gssize;
-typedef guint32 gsize;
typedef guint32 GQuark;
typedef gint32 GTime;
* gint16, guint16
* gint32, guint32
* gint64, guint64
+ * gssize, gsize
*
* It defines the G_BYTE_ORDER symbol to one of G_*_ENDIAN (see later in
* this file).
#define g_return_if_reached() G_STMT_START{ \
g_log (G_LOG_DOMAIN, \
G_LOG_LEVEL_CRITICAL, \
- "file %s: line %d (%s): assertion `%s' failed", \
+ "file %s: line %d (%s): should not be reached", \
__FILE__, \
__LINE__, \
__PRETTY_FUNCTION__); \
#define g_return_if_reached() G_STMT_START{ \
g_log (G_LOG_DOMAIN, \
G_LOG_LEVEL_CRITICAL, \
- "file %s: line %d: assertion `%s' failed", \
+ "file %s: line %d: should not be reached", \
__FILE__, \
__LINE__); \
return; }G_STMT_END
typedef const void *gconstpointer;
-typedef gint32 gssize;
-typedef guint32 gsize;
typedef guint32 GQuark;
typedef gint32 GTime;