From abe789311fa607bd73277b38024b4908e350fd8c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 6 Nov 2010 06:35:49 +0100 Subject: Move common -> gluegen, emphasizing it's use case (only for gluegen code generation) --- make/stub_includes/common/gluegen_types.h | 44 ------------------------------ make/stub_includes/common/stddef.h | 6 ---- make/stub_includes/common/stdint.h | 7 ----- make/stub_includes/gluegen/gluegen_types.h | 44 ++++++++++++++++++++++++++++++ make/stub_includes/gluegen/stddef.h | 6 ++++ make/stub_includes/gluegen/stdint.h | 7 +++++ 6 files changed, 57 insertions(+), 57 deletions(-) delete mode 100644 make/stub_includes/common/gluegen_types.h delete mode 100644 make/stub_includes/common/stddef.h delete mode 100644 make/stub_includes/common/stdint.h create mode 100644 make/stub_includes/gluegen/gluegen_types.h create mode 100644 make/stub_includes/gluegen/stddef.h create mode 100644 make/stub_includes/gluegen/stdint.h diff --git a/make/stub_includes/common/gluegen_types.h b/make/stub_includes/common/gluegen_types.h deleted file mode 100644 index c854d3345..000000000 --- a/make/stub_includes/common/gluegen_types.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef __gluegen_types_h -#define __gluegen_types_h - -/** - * These are standard include replacement files - * for gluegen processing only! - * - * Don't include this folder to your native compiler! - * - * Purpose of all files within this folder is to define a fixed bitsize - * across all platforms to allow the resulting java type comfort all. - * IE a 'intptr_t' shall always be 64bit. - * - * We use one size fits all. - */ -#if defined(__STDC_VERSION__) || defined(__GNUC__) || defined (__ARMCC_2__) || \ - defined(__VMS) || defined(__sgi) || defined(__sun__) || defined(__digital__) || defined(__unix__) || defined(__SCO__) || defined(OPENSTEP) || \ - defined(BSD) || defined(FREEBSD) || defined(_HPUX) || defined(SOLARIS) || defined(macosx) || \ - defined(_WIN32) || defined(_WIN32_WCE) || defined(WINVER) || defined(_WIN32_WINNT) || defined(__CYGWIN__) || \ - defined(__SCITECH_SNAP__) || defined (__SYMBIAN32__) || \ - defined(__arch64__) || defined(_LP64) - - #error PLATFORM or COMPILER DEFINES FOUND, not allowed within GLUEGEN HEADER - -#endif - -/** - * 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 - */ - -#endif /* __gluegen_types_h */ - diff --git a/make/stub_includes/common/stddef.h b/make/stub_includes/common/stddef.h deleted file mode 100644 index a3890b08a..000000000 --- a/make/stub_includes/common/stddef.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef __stddef_h -#define __stddef_h - -#include - -#endif /* __stddef_h */ diff --git a/make/stub_includes/common/stdint.h b/make/stub_includes/common/stdint.h deleted file mode 100644 index dd03d2d1e..000000000 --- a/make/stub_includes/common/stdint.h +++ /dev/null @@ -1,7 +0,0 @@ -#ifndef __stdint_h -#define __stdint_h - -#include - -#endif /* __stdint_h */ - diff --git a/make/stub_includes/gluegen/gluegen_types.h b/make/stub_includes/gluegen/gluegen_types.h new file mode 100644 index 000000000..c854d3345 --- /dev/null +++ b/make/stub_includes/gluegen/gluegen_types.h @@ -0,0 +1,44 @@ +#ifndef __gluegen_types_h +#define __gluegen_types_h + +/** + * These are standard include replacement files + * for gluegen processing only! + * + * Don't include this folder to your native compiler! + * + * Purpose of all files within this folder is to define a fixed bitsize + * across all platforms to allow the resulting java type comfort all. + * IE a 'intptr_t' shall always be 64bit. + * + * We use one size fits all. + */ +#if defined(__STDC_VERSION__) || defined(__GNUC__) || defined (__ARMCC_2__) || \ + defined(__VMS) || defined(__sgi) || defined(__sun__) || defined(__digital__) || defined(__unix__) || defined(__SCO__) || defined(OPENSTEP) || \ + defined(BSD) || defined(FREEBSD) || defined(_HPUX) || defined(SOLARIS) || defined(macosx) || \ + defined(_WIN32) || defined(_WIN32_WCE) || defined(WINVER) || defined(_WIN32_WINNT) || defined(__CYGWIN__) || \ + defined(__SCITECH_SNAP__) || defined (__SYMBIAN32__) || \ + defined(__arch64__) || defined(_LP64) + + #error PLATFORM or COMPILER DEFINES FOUND, not allowed within GLUEGEN HEADER + +#endif + +/** + * 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 + */ + +#endif /* __gluegen_types_h */ + diff --git a/make/stub_includes/gluegen/stddef.h b/make/stub_includes/gluegen/stddef.h new file mode 100644 index 000000000..a3890b08a --- /dev/null +++ b/make/stub_includes/gluegen/stddef.h @@ -0,0 +1,6 @@ +#ifndef __stddef_h +#define __stddef_h + +#include + +#endif /* __stddef_h */ diff --git a/make/stub_includes/gluegen/stdint.h b/make/stub_includes/gluegen/stdint.h new file mode 100644 index 000000000..dd03d2d1e --- /dev/null +++ b/make/stub_includes/gluegen/stdint.h @@ -0,0 +1,7 @@ +#ifndef __stdint_h +#define __stdint_h + +#include + +#endif /* __stdint_h */ + -- cgit v1.2.3