Rename NSCString to NSGCString.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@539 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1995-08-09 15:45:46 +00:00
parent 8f9b3e4d4c
commit 72e1d6c760
2 changed files with 10 additions and 10 deletions

View file

@ -21,23 +21,23 @@
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#ifndef __NSCString_h_OBJECTS_INCLUDE #ifndef __NSGCString_h_OBJECTS_INCLUDE
#define __NSCString_h_OBJECTS_INCLUDE #define __NSGCString_h_OBJECTS_INCLUDE
#include <objects/stdobjects.h> #include <objects/stdobjects.h>
#include <Foundation/NSString.h> #include <Foundation/NSString.h>
/* NSCString and NSMutableCString must have the same initial ivar layout /* NSGCString and NSGMutableCString must have the same initial ivar layout
because of class_add_behavior() in NSMutableCString's +initialize. */ because of class_add_behavior() in NSGMutableCString's +initialize. */
@interface NSCString : NSString @interface NSGCString : NSString
{ {
char * _contents_chars; char * _contents_chars;
int _count; int _count;
} }
@end @end
@interface NSMutableCString : NSMutableString @interface NSGMutableCString : NSMutableString
{ {
char * _contents_chars; char * _contents_chars;
int _count; int _count;
@ -45,4 +45,4 @@
} }
@end @end
#endif /* __NSCString_h_OBJECTS_INCLUDE */ #endif /* __NSGCString_h_OBJECTS_INCLUDE */

View file

@ -29,7 +29,7 @@
#include <objects/MallocAddress.h> #include <objects/MallocAddress.h>
/* memcpy(), strlen(), strcmp() are gcc builtin's */ /* memcpy(), strlen(), strcmp() are gcc builtin's */
@implementation NSCString @implementation NSGCString
/* This is the designated initializer for this class. */ /* This is the designated initializer for this class. */
- (id) initWithCStringNoCopy: (char*)byteString - (id) initWithCStringNoCopy: (char*)byteString
@ -67,7 +67,7 @@
/* Empty copy must empty an allocCopy'ed version of self */ /* Empty copy must empty an allocCopy'ed version of self */
- emptyCopy - emptyCopy
{ {
NSCString *copy = [super emptyCopy]; NSGCString *copy = [super emptyCopy];
OBJC_MALLOC(copy->_contents_chars, char, _count+1); OBJC_MALLOC(copy->_contents_chars, char, _count+1);
copy->_count = 0; copy->_count = 0;
copy->_contents_chars[0] = '\0'; copy->_contents_chars[0] = '\0';
@ -128,7 +128,7 @@
if (!done) if (!done)
{ {
done = 1; done = 1;
class_add_behavior(self, [NSCString class]); class_add_behavior(self, [NSGCString class]);
} }
} }