diff options
author | Sven Gothel <[email protected]> | 2010-11-06 03:44:12 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2010-11-06 03:44:12 +0100 |
commit | 6b6b9b3b81cdc85b7260664ebec547756a6be5d7 (patch) | |
tree | 5f2b4e83d4d04117ea27571d278b4074ae9ca038 /doc/manual/example2/function.cfg | |
parent | 33ea83cfcad373e477791a0aca49864399357877 (diff) |
Fix native type representation; Retain typedef declName in resulting Type for variables; Misc
Fix native type representation
----------------------------------
The following custom types were previously build-in:
__int32, __int64
Adding the following native build-in types (necessary):
ptrdiff_t, size_t
These compiler/platform specific types shall not be typedef'ed
via header files. Hence we provide proper typing for such,
as the compiler would do.
Adding the following native build-in types (convenience):
int32_t, uint32_t, int64_t, uint64_t
These are provided due to their lack of support on certain platforms,
and probable source of bugs, when defined by the user.
Retain typedef declName in resulting Type for variables.
--------------------------------------------------------
Adding Clonable to all cgram Type derivations.
Assume use case:
typedef khronos_ssize_t GLsizeiptr
typedef size_t khronos_ssize_t
The previous code picked a one level depth type in the dictionary
if exists. Hence it made khronos_ssize_t visible in the javadoc and native code.
It is our believe that the generated native code, as well as the javadoc comments
shall reflect the original GlueGen'ed API and it's types.
Also, aliasing or reducing native types via GlueGen could result in plattorm dependencies
and in worst cases, incompatible native types.
This patch clones the 1 level depth Type (typedef), clones it
and sets the declName, so it's visible to the GlueGen layers.
Misc
-------
GlueGen's debug flag is passed to HeaderParser,
where it traces misc information.
Diffstat (limited to 'doc/manual/example2/function.cfg')
0 files changed, 0 insertions, 0 deletions