coding fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@8569 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2001-01-12 16:48:33 +00:00
parent 559db76abd
commit ead63e6999
4 changed files with 220 additions and 21 deletions

View file

@ -252,6 +252,10 @@
[NSException raise: NSInternalInconsistencyException
format: @"Attempt to encode a pointer to void object"];
#else
const char *objctype = @encode(TYPE_NAME);
unsigned size = strlen(objctype)+1;
[coder encodeValueOfObjCType: @encode(unsigned) at: &size];
[coder encodeArrayOfObjCType: @encode(char) count: size at: objctype];
[coder encodeValueOfObjCType: @encode(TYPE_NAME) at: &data];
#endif
}