ObjFW  Diff

Differences From Artifact [802907aead]:

To Artifact [5a7d886f0b]:


307
308
309
310
311
312
313

314





315
316
317
318
319
320
321
					    encoding: encoding] autorelease];
}

- init
{
	self = [super init];


	string = "";






	return self;
}

- initWithCString: (const char*)str
{
	return [self initWithCString: str







>
|
>
>
>
>
>







307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
					    encoding: encoding] autorelease];
}

- init
{
	self = [super init];

	@try {
		string = [self allocMemoryWithSize: 1];
		string[0] = '\0';
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}

- initWithCString: (const char*)str
{
	return [self initWithCString: str