Index: src/OFMethodSignature.m ================================================================== --- src/OFMethodSignature.m +++ src/OFMethodSignature.m @@ -27,14 +27,14 @@ #import "OFInvalidFormatException.h" #import "OFOutOfRangeException.h" #import "macros.h" -size_t alignofEncoding(const char **type, size_t *length, bool inStruct); -size_t sizeofEncoding(const char **type, size_t *length); +static size_t alignofEncoding(const char **type, size_t *length, bool inStruct); +static size_t sizeofEncoding(const char **type, size_t *length); -size_t +static size_t alignofArray(const char **type, size_t *length) { size_t align; assert(*length > 0); @@ -56,11 +56,11 @@ (*length)--; return align; } -size_t +static size_t alignofStruct(const char **type, size_t *length) { size_t align = 0; #if defined(OF_POWERPC) && defined(OF_MACOS) bool first = true; @@ -105,11 +105,11 @@ (*length)--; return align; } -size_t +static size_t alignofUnion(const char **type, size_t *length) { size_t align = 0; assert(*length > 0); @@ -144,11 +144,11 @@ (*length)--; return align; } -size_t +static size_t alignofEncoding(const char **type, size_t *length, bool inStruct) { size_t align; if (*length == 0) @@ -281,11 +281,11 @@ (*length)--; return align; } -size_t +static size_t sizeofArray(const char **type, size_t *length) { size_t count = 0; size_t size; @@ -316,11 +316,11 @@ @throw [OFOutOfRangeException exception]; return count * size; } -size_t +static size_t sizeofStruct(const char **type, size_t *length) { size_t size = 0; const char *typeCopy = *type; size_t lengthCopy = *length; @@ -393,11 +393,11 @@ } return size; } -size_t +static size_t sizeofUnion(const char **type, size_t *length) { size_t size = 0; assert(*length > 0); @@ -432,11 +432,11 @@ (*length)--; return size; } -size_t +static size_t sizeofEncoding(const char **type, size_t *length) { size_t size; if (*length == 0)