--- OpenCL/h_extract 2012/05/05 17:09:19 1.11 +++ OpenCL/h_extract 2012/05/07 01:00:31 1.12 @@ -42,11 +42,11 @@ perl -ne 'print "const_iv($1)\n" if !/#define CL_BUILD_(?:NONE|ERROR|IN_PROGRESS)/ && /^#define CL_(\S+)\s+-\d+\s*$/' ) >errstr.h -# default constant values to -1 +# default constant values to 0 ( echo '// autogenerated by h_extract' cat constiv.h | - perl -ne '/const_iv\((.*)\)/ or next; print "#ifndef CL_$1\n#define CL_$1 -1\n#endif\n"' + perl -ne '/const_iv\((.*)\)/ or next; print "#ifndef CL_$1\n#define CL_$1 0\n#endif\n"' ) >default.h # *glGet*Info