ObjFW  Diff

Differences From Artifact [b331601cc7]:

To Artifact [cd2923612d]:


146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164

	@try {
		_name = [[OFString alloc] initWithUTF8String: property->name];
		_attributes =
		    property->attributes | (property->extended_attributes << 8);

		if (property->getter.name != NULL)
			_getter = [[OFString alloc] initWithUTF8String:
			    (const char *)property->getter.name];
		if (property->setter.name != NULL)
			_setter = [[OFString alloc] initWithUTF8String:
			    (const char *)property->setter.name];
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}







|
|

|
|







146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164

	@try {
		_name = [[OFString alloc] initWithUTF8String: property->name];
		_attributes =
		    property->attributes | (property->extended_attributes << 8);

		if (property->getter.name != NULL)
			_getter = [[OFString alloc]
			    initWithUTF8String: property->getter.name];
		if (property->setter.name != NULL)
			_setter = [[OFString alloc]
			    initWithUTF8String: property->setter.name];
	} @catch (id e) {
		[self release];
		@throw e;
	}

	return self;
}
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
	self = [super init];

	@try {
		const char *name = ivar_getName(ivar);

		if (name != NULL)
			_name = [[OFString alloc] initWithUTF8String:
			    (const char *)ivar_getName(ivar)];
		_typeEncoding = ivar_getTypeEncoding(ivar);
		_offset = ivar_getOffset(ivar);
	} @catch (id e) {
		[self release];
		@throw e;
	}








|







387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
	self = [super init];

	@try {
		const char *name = ivar_getName(ivar);

		if (name != NULL)
			_name = [[OFString alloc] initWithUTF8String:
			    ivar_getName(ivar)];
		_typeEncoding = ivar_getTypeEncoding(ivar);
		_offset = ivar_getOffset(ivar);
	} @catch (id e) {
		[self release];
		@throw e;
	}