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);