([Stream -writeLine:]): Replace with more efficient implementation

from MemoryStream class.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@767 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-01-23 22:30:56 +00:00
parent bc2618d1fa
commit 01f58cf984

View file

@ -71,7 +71,9 @@
- (void) writeLine: (id <String>)l
{
[self writeFormat:"%s\n", l];
const char *s = [l cStringNoCopy];
[self writeBytes:s length:strlen(s)];
[self writeBytes:"\n" length:1];
}
- (id <String>) readLine