[pygobject] Add the missing limit constants from glibconfig.h
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pygobject] Add the missing limit constants from glibconfig.h
- Date: Sun, 29 Nov 2009 11:31:47 +0000 (UTC)
commit e24d155dd7b4a5b9c25c054137d1370c369d3192
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date: Sat Nov 28 18:45:54 2009 +0000
Add the missing limit constants from glibconfig.h
https://bugzilla.gnome.org/show_bug.cgi?id=603244
gobject/generate-constants.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/gobject/generate-constants.c b/gobject/generate-constants.c
index 9ab9cc6..7fee8e8 100644
--- a/gobject/generate-constants.c
+++ b/gobject/generate-constants.c
@@ -12,7 +12,6 @@ int main(void)
{
printf("# This part is generated by generate-constants.c\n");
printf("G_MINFLOAT = %f\n", G_MINFLOAT);
- printf("G_MINFLOAT = %f\n", G_MINFLOAT);
printf("G_MAXFLOAT = %f\n", G_MAXFLOAT);
printf("G_MINDOUBLE = %f\n", G_MINDOUBLE);
printf("G_MAXDOUBLE = %f\n", G_MAXDOUBLE);
@@ -25,5 +24,21 @@ int main(void)
printf("G_MINLONG = %ld%s\n", G_MINLONG, LONGSUFFIX);
printf("G_MAXLONG = %ld%s\n", G_MAXLONG, LONGSUFFIX);
printf("G_MAXULONG = %lu%s\n", G_MAXULONG, LONGSUFFIX);
+ printf("G_MININT8 = %d\n", G_MININT8);
+ printf("G_MAXINT8 = %d\n", G_MAXINT8);
+ printf("G_MAXUINT8 = %u\n", G_MAXUINT8);
+ printf("G_MININT16 = %d\n", G_MININT16);
+ printf("G_MAXINT16 = %d\n", G_MAXINT16);
+ printf("G_MAXUINT16 = %u\n", G_MAXUINT16);
+ printf("G_MININT32 = %d\n", G_MININT32);
+ printf("G_MAXINT32 = %d\n", G_MAXINT32);
+ printf("G_MAXUINT32 = %u\n", G_MAXUINT32);
+ printf("G_MININT64 = %lld%s\n", G_MININT64, LONGSUFFIX);
+ printf("G_MAXINT64 = %lld%s\n", G_MAXINT64, LONGSUFFIX);
+ printf("G_MAXUINT64 = %llu%s\n", G_MAXUINT64, LONGSUFFIX);
+ printf("G_MAXSIZE = %d\n", G_MAXSIZE);
+ printf("G_MAXSSIZE = %d\n", G_MAXSSIZE);
+ printf("G_MINOFFSET = %lld%s\n", G_MINOFFSET, LONGSUFFIX);
+ printf("G_MAXOFFSET = %lld%s\n", G_MAXOFFSET, LONGSUFFIX);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]