ginkgo/flextGL — pull request #8 by mosra (2014-08-12 14:43:37+00:00)
Title: Keep only the most specialized type definitions

Not an issue on desktop GL, but most types have specialized definitions for GLES, e.g. in the original XML:

~~~xml
typedef ptrdiff_t GLintptr;
typedef khronos_intptr_t GLintptr;
~~~

The parser originally added all found definitions for each type (along with all dependencies) to the header. On some platforms these definitions are not the same and that can cause compilation errors. Moreover the additional (otherwise unneeded) dependencies on stddef, inttypes etc. bloat the generated file.

The parser now selects only the most specialized definition available for each type.

In my tests the patch resulted in no change in generated files for desktop GL and slightly shorter (but still complete) header file for GLES.