mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Tidied code to compile with gc=yes and older compilers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13970 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b4192261e0
commit
c17f291ac6
7 changed files with 48 additions and 9 deletions
|
@ -756,7 +756,9 @@ loader(const char *url, const char *eid, xmlParserCtxtPtr *ctxt)
|
|||
- (NSString *) parseBody: (xmlNodePtr)node
|
||||
{
|
||||
NSMutableString *text = [NSMutableString string];
|
||||
#if GS_WITH_GC == 0
|
||||
CREATE_AUTORELEASE_POOL(arp);
|
||||
#endif
|
||||
BOOL needContents = NO;
|
||||
NSMutableArray *back = [NSMutableArray arrayWithCapacity: 2];
|
||||
NSMutableArray *body = [NSMutableArray arrayWithCapacity: 4];
|
||||
|
@ -882,7 +884,9 @@ loader(const char *url, const char *eid, xmlParserCtxtPtr *ctxt)
|
|||
|
||||
- (NSString *) parseChapter: (xmlNodePtr)node contents: (NSMutableArray *)array
|
||||
{
|
||||
#if GS_WITH_GC == 0
|
||||
CREATE_AUTORELEASE_POOL(arp);
|
||||
#endif
|
||||
NSMutableString *text = [NSMutableString string];
|
||||
const char *type = node->name;
|
||||
const char *next;
|
||||
|
@ -4777,7 +4781,9 @@ main(int argc, char **argv, char **env)
|
|||
}
|
||||
NS_ENDHANDLER
|
||||
}
|
||||
#if GS_WITH_GC == 0
|
||||
DESTROY(arp);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue