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:
Andrew McCallum 1995-08-09 15:45:46 +00:00
parent 56ebd2e17a
commit db3790bceb
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.
*/
#ifndef __NSCString_h_OBJECTS_INCLUDE
#define __NSCString_h_OBJECTS_INCLUDE
#ifndef __NSGCString_h_OBJECTS_INCLUDE
#define __NSGCString_h_OBJECTS_INCLUDE
#include <objects/stdobjects.h>
#include <Foundation/NSString.h>
/* NSCString and NSMutableCString must have the same initial ivar layout
because of class_add_behavior() in NSMutableCString's +initialize. */
/* NSGCString and NSGMutableCString must have the same initial ivar layout
because of class_add_behavior() in NSGMutableCString's +initialize. */
@interface NSCString : NSString
@interface NSGCString : NSString
{
char * _contents_chars;
int _count;
}
@end
@interface NSMutableCString : NSMutableString
@interface NSGMutableCString : NSMutableString
{
char * _contents_chars;
int _count;
@ -45,4 +45,4 @@
}
@end
#endif /* __NSCString_h_OBJECTS_INCLUDE */
#endif /* __NSGCString_h_OBJECTS_INCLUDE */

View file

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