From eb48fda62b8ad5610f56c25cf1ce8f658b762990 Mon Sep 17 00:00:00 2001 From: theraven Date: Thu, 9 Sep 2010 16:06:48 +0000 Subject: [PATCH] Expose a function needed by GNUstep. --- encoding2.c | 5 ----- objc/encoding.h | 2 ++ 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/encoding2.c b/encoding2.c index f6b7242..9696e4c 100644 --- a/encoding2.c +++ b/encoding2.c @@ -320,11 +320,6 @@ size_t objc_aligned_size(const char *type) return size + (size % align); } -/* - The size rounded up to the nearest integral of the wordsize, taken - to be the size of a void *. -*/ - size_t objc_promoted_size(const char *type) { size_t size = objc_sizeof_type(type); diff --git a/objc/encoding.h b/objc/encoding.h index 52f03c6..bb58c0b 100644 --- a/objc/encoding.h +++ b/objc/encoding.h @@ -14,6 +14,8 @@ size_t objc_alignof_type(const char *type); size_t objc_aligned_size(const char *type); +size_t objc_promoted_size(const char *type); + void method_getReturnType(Method method, char *dst, size_t dst_len); const char *method_getTypeEncoding(Method method);