GNOME Bugzilla – Bug 603244
Add the missing limit constants from glibconfig.h
Last modified: 2009-11-30 11:04:20 UTC
So automated tests in python can check that the limits are observed.
Created attachment 148662 [details] [review] Add the missing limit constants from glibconfig.h
Review of attachment 148662 [details] [review]: Looks good to me
Pushed, thanks for the quick review.
The following fix has been pushed: e24d155 Add the missing limit constants from glibconfig.h
Created attachment 148683 [details] [review] Add the missing limit constants from glibconfig.h
Created attachment 148709 [details] [review] Fix build on 64-bit arch It doesn't build fine on 64-bit archs: `generate-constants.c generate-constants.c: In function ‘main’: generate-constants.c:36: warning: format ‘%lld’ expects type ‘long long int’, but argument 2 has type ‘long int’ generate-constants.c:37: warning: format ‘%lld’ expects type ‘long long int’, but argument 2 has type ‘long int’ generate-constants.c:38: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 2 has type ‘long unsigned int’ generate-constants.c:39: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’ generate-constants.c:40: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long int’ generate-constants.c:41: warning: format ‘%lld’ expects type ‘long long int’, but argument 2 has type ‘long int’ generate-constants.c:42: warning: format ‘%lld’ expects type ‘long long int’, but argument 2 has type ‘long int’ And, notably, it produces G_MAXSIZE = -1 G_MAXSSIZE = -1 This patch uses G_<type>_FORMAT to ensure portability.
Created attachment 148710 [details] [review] Fix build on 64-bit archs Submitting the same patch again in order to reopen the bug (couldn't find another way to do so); sorry.
Didn't work. Yay.
(In reply to comment #9) > Didn't work. Yay. Guess it's better to open a new one? After all, the problem you have found is different from the one that originated this ticket.
Review of attachment 148710 [details] [review]: Moved to bug 603355.