diff options
author | Johan Dahlin <johan@src.gnome.org> | 2007-05-01 15:54:05 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2007-05-01 15:54:05 +0000 |
commit | a57fde73b509adcf56a73ae1fb97474d136fd2af (patch) | |
tree | 808278f44be0091211dd0113d6293ea0d6510583 /gobject/generate-constants.c | |
parent | ecbf8b6315dda927f4f90d8651033eb67c46a187 (diff) | |
download | pygobject-a57fde73b509adcf56a73ae1fb97474d136fd2af.tar.gz pygobject-a57fde73b509adcf56a73ae1fb97474d136fd2af.tar.xz pygobject-a57fde73b509adcf56a73ae1fb97474d136fd2af.zip |
Add a property helper, fixes #338098
* examples/properties.py:
* gobject/Makefile.am:
* gobject/__init__.py:
* gobject/constants.py.in:
* gobject/generate-constants.c: (main):
* gobject/propertyhelper.py:
* tests/Makefile.am:
* tests/test_enum.py:
* tests/test_interface.py:
* tests/test_properties.py:
Add a property helper, fixes #338098
svn path=/trunk/; revision=662
Diffstat (limited to 'gobject/generate-constants.c')
-rw-r--r-- | gobject/generate-constants.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gobject/generate-constants.c b/gobject/generate-constants.c new file mode 100644 index 0000000..ed66a07 --- /dev/null +++ b/gobject/generate-constants.c @@ -0,0 +1,21 @@ +#include <stdio.h> +#include <glibconfig.h> + +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); + printf("G_MINSHORT = %d\n", G_MINSHORT); + printf("G_MAXSHORT = %d\n", G_MAXSHORT); + printf("G_MAXUSHORT = %u\n", G_MAXUSHORT); + printf("G_MININT = %d\n", G_MININT); + printf("G_MAXINT = %d\n", G_MAXINT); + printf("G_MAXUINT = %u\n", G_MAXUINT); + printf("G_MINLONG = %ldL\n", G_MINLONG); + printf("G_MAXLONG = %ldL\n", G_MAXLONG); + printf("G_MAXULONG = %luL\n", G_MAXULONG); +} |