mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Removed references to cStringNoCopy.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2990 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1a0efaad7c
commit
0806cb068b
27 changed files with 143 additions and 149 deletions
|
@ -114,7 +114,7 @@ o_vscanf (void *stream,
|
|||
|
||||
- initWithFilename: (NSString*)name fmode: (const char *)m
|
||||
{
|
||||
FILE *afp = fopen([name cStringNoCopy], (char*)m);
|
||||
FILE *afp = fopen([name cString], (char*)m);
|
||||
if (!afp)
|
||||
{
|
||||
id message;
|
||||
|
@ -152,7 +152,7 @@ o_vscanf (void *stream,
|
|||
return nil;
|
||||
#else
|
||||
return [self initWithFilePointer:
|
||||
popen([systemCommand cStringNoCopy], "w")
|
||||
popen([systemCommand cString], "w")
|
||||
fmode:"w"];
|
||||
#endif
|
||||
}
|
||||
|
@ -163,7 +163,7 @@ o_vscanf (void *stream,
|
|||
return nil;
|
||||
#else
|
||||
return [self initWithFilePointer:
|
||||
popen([systemCommand cStringNoCopy], "r")
|
||||
popen([systemCommand cString], "r")
|
||||
fmode:"r"];
|
||||
#endif
|
||||
}
|
||||
|
@ -203,7 +203,7 @@ o_vscanf (void *stream,
|
|||
- (int) writeFormat: (NSString*)format
|
||||
arguments: (va_list)arg
|
||||
{
|
||||
return vfprintf(fp, [format cStringNoCopy], arg);
|
||||
return vfprintf(fp, [format cString], arg);
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -236,7 +236,7 @@ stdio_unchar_func(void *s, int c)
|
|||
|
||||
va_start(ap, format);
|
||||
ret = o_vscanf(fp, stdio_inchar_func, stdio_unchar_func,
|
||||
[format cStringNoCopy], ap);
|
||||
[format cString], ap);
|
||||
va_end(ap);
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue