diff options
author | Sven Gothel <[email protected]> | 2014-01-26 02:14:26 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-01-26 02:14:26 +0100 |
commit | aac4c5fc4ab7c77eff3b71f518100dd182ec2c33 (patch) | |
tree | 3883e6e9a97146a0cbf503ff67f7b58870fe22dd /make/stub_includes/common | |
parent | ac84afd26ad3b34851a423fb90e6c819b9dc9495 (diff) |
Cleanup Build: GlueGen config files, stub_includes; Add JoclVersion, Android JoclVersionActivity
Cleanup Build:
- Move gluegen config files into make/config (cleanup)
- Move stub_includes into respective folder make/stub_includes
and keep resources 'clean'
JoclVersion:
- Analoge to JoglVersion, replaces JOCLVersion (deprecated for now)
- Added text based CL info dump.
JoclVersionActivity:
- Analog to JoclVersionActivity
- Added full launch .. tested on Android (but no OpenCL avail.)
Diffstat (limited to 'make/stub_includes/common')
-rw-r--r-- | make/stub_includes/common/stddef.h | 24 | ||||
-rw-r--r-- | make/stub_includes/common/stdint.h | 48 |
2 files changed, 72 insertions, 0 deletions
diff --git a/make/stub_includes/common/stddef.h b/make/stub_includes/common/stddef.h new file mode 100644 index 00000000..f6c7207b --- /dev/null +++ b/make/stub_includes/common/stddef.h @@ -0,0 +1,24 @@ +#ifndef __stddef_h_ +#define __stddef_h_ + + /** + * Look in the GlueGen.java API documentation for the build-in types (terminal symbols) + * definition. + * + * The following types are build-in: + * + * __int32 + * int32_t + * uint32_t + * __int64 + * int64_t + * uint64_t + * ptrdiff_t + * size_t + */ + + #define NULL ((void *)0) + + typedef int wchar_t; + +#endif /* __stddef_h_ */ diff --git a/make/stub_includes/common/stdint.h b/make/stub_includes/common/stdint.h new file mode 100644 index 00000000..4e456608 --- /dev/null +++ b/make/stub_includes/common/stdint.h @@ -0,0 +1,48 @@ +#ifndef __stdint_h_ +#define __stdint_h_ + + /** + * Look in the GlueGen.java API documentation for the build-in types (terminal symbols) + * definition. + * + * The following types are build-in: + * + * __int32 + * int32_t + * uint32_t + * __int64 + * int64_t + * uint64_t + * ptrdiff_t + * size_t + */ + + typedef signed char int8_t; + typedef unsigned short int16_t; + + typedef unsigned char uint8_t; + typedef unsigned short uint16_t; + + typedef ptrdiff_t intptr_t; + typedef size_t uintptr_t; + + /* Greatest-width integer types */ + /* Modern GCCs provide __INTMAX_TYPE__ */ + #if defined(__INTMAX_TYPE__) + typedef __INTMAX_TYPE__ intmax_t; + #elif __have_longlong64 + typedef signed long long intmax_t; + #else + typedef int64_t intmax_t; + #endif + + /* Modern GCCs provide __UINTMAX_TYPE__ */ + #if defined(__UINTMAX_TYPE__) + typedef __UINTMAX_TYPE__ uintmax_t; + #elif __have_longlong64 + typedef unsigned long long uintmax_t; + #else + typedef uint64_t uintmax_t; + #endif + +#endif /* __stdint_h_ */ |