Revert change ... leave objc_skip_offset() buggy for code which depends on that behavior. It's better just to avoid using it anywhere else.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/libobjc/trunk@30155 72102866-910b-0410-8b05-ffd578937521
main
rfm 16 years ago
parent 3a791cca56
commit d717f472a5

@ -692,14 +692,16 @@ objc_skip_typespec (const char *type)
/*
Skip an offset as part of a method encoding. This is prepended by a
'+' if the argument is passed in registers.
For historical reasons this is buggy and actually skips an extra byte
whether there is an offset or not.
*/
inline const char *
objc_skip_offset (const char *type)
{
if (*type == '+')
type++;
while (isdigit ((unsigned char) *type))
type++;
while (isdigit ((unsigned char) *++type))
;
return type;
}

Loading…
Cancel
Save