diff --git a/headers/private/kernel/kernel_c++_structs.h b/headers/private/kernel/kernel_c++_structs.h deleted file mode 100644 index 71819cba42..0000000000 --- a/headers/private/kernel/kernel_c++_structs.h +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. - * Distributed under the terms of the MIT License. - */ -#ifndef _KERNEL_KERNEL_CPP_STRUCTS_H -#define _KERNEL_KERNEL_CPP_STRUCTS_H - - -#include - -#include - // this is the generated defining macros for the structure sizes - - -// in C++ mode include the headers defining the structures -#ifdef __cplusplus -# include -#endif - -// in C mode define the structures -DEFINE_KERNEL_CPP_STRUCT(ConditionVariable) - - -#endif // _KERNEL_KERNEL_CPP_STRUCTS_H diff --git a/headers/private/kernel/util/kernel_c.h b/headers/private/kernel/util/kernel_c.h deleted file mode 100644 index e4f79b46d3..0000000000 --- a/headers/private/kernel/util/kernel_c.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. - * Distributed under the terms of the MIT License. - */ -#ifndef _KERNEL_UTIL_KERNEL_C_H -#define _KERNEL_UTIL_KERNEL_C_H - - -/*! Defines a structure that has the size of a certain C++ structure. - \param name The name of the C++ structure. - \param flatName The name of the structure to be defined. -*/ -#define DEFINE_FLAT_KERNEL_CPP_STRUCT(name, flatName) \ - struct flatName { \ - char bytes[_KERNEL_CPP_STRUCT_SIZE_##name]; \ - }; - - -/*! In C mode DEFINE_KERNEL_CPP_STRUCT() defines a struct \a name with the - size of the C++ structure of the same name. In C++ it is a no-op. -*/ -#ifdef __cplusplus -# define DEFINE_KERNEL_CPP_STRUCT(name) -#else -# define DEFINE_KERNEL_CPP_STRUCT(name) \ - DEFINE_FLAT_KERNEL_CPP_STRUCT(name, name) \ - typedef struct name name; -#endif - - -#endif /* _KERNEL_UTIL_KERNEL_C_H */ diff --git a/src/system/kernel/Jamfile b/src/system/kernel/Jamfile index 402d32cd05..8f051004c9 100644 --- a/src/system/kernel/Jamfile +++ b/src/system/kernel/Jamfile @@ -79,15 +79,6 @@ KernelMergeObject kernel_core.o : : $(TARGET_KERNEL_PIC_CCFLAGS) ; -# Generate the header defining macros for C++ structure sizes. -local kernelC++StructSizesHeader = [ FGristFiles kernel_c++_struct_sizes.h ] ; -TARGET_HDRS_$(TARGET_KERNEL_ARCH) on $(kernelC++StructSizesHeader) - = [ on $(kernelC++StructSizesHeader) - return $(TARGET_HDRS_$(TARGET_KERNEL_ARCH)) ] - $(TARGET_PRIVATE_KERNEL_HEADERS) ; -CreateAsmStructOffsetsHeader $(kernelC++StructSizesHeader) - : kernel_c++_structs.cpp : $(TARGET_KERNEL_ARCH) ; - # We need to specify the dependency on the generated syscalls files explicitly. Includes [ FGristFiles syscalls.cpp ] : diff --git a/src/system/kernel/kernel_c++_structs.cpp b/src/system/kernel/kernel_c++_structs.cpp deleted file mode 100644 index 9b0711ea05..0000000000 --- a/src/system/kernel/kernel_c++_structs.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. - * Distributed under the terms of the MIT License. - */ - - -#include - -#include - - -// NOTE: Don't include , since that would result in a -// circular dependency. - - -#define DEFINE_SIZE_MACRO(name) \ - DEFINE_COMPUTED_ASM_MACRO(_KERNEL_CPP_STRUCT_SIZE_##name, sizeof(name)); - - -void -dummy() -{ - DEFINE_SIZE_MACRO(ConditionVariable) -}