mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
experimental change to try to avoid non-standard extensions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34852 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
50decd4014
commit
bb610b0e30
8 changed files with 32 additions and 20 deletions
|
@ -25,8 +25,7 @@
|
|||
#ifndef _INCLUDED_NSXMLPRIVATE_H
|
||||
#define _INCLUDED_NSXMLPRIVATE_H
|
||||
|
||||
#import "config.h"
|
||||
#import "GNUstepBase/GSConfig.h"
|
||||
#import "common.h"
|
||||
|
||||
#define EXPOSE_NSXMLDTD_IVARS 1
|
||||
#define EXPOSE_NSXMLDTDNode_IVARS 1
|
||||
|
@ -42,7 +41,9 @@
|
|||
inline static unsigned char *XMLStringCopy(NSString *source)
|
||||
{
|
||||
char *xmlstr;
|
||||
unsigned int len = [source maximumLengthOfBytesUsingEncoding:NSUTF8StringEncoding] + 1;
|
||||
unsigned int len;
|
||||
|
||||
len = [source maximumLengthOfBytesUsingEncoding:NSUTF8StringEncoding] + 1;
|
||||
if (len == 0)
|
||||
return NULL;
|
||||
xmlstr = malloc(len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue