ObjFW  Diff

Differences From Artifact [e5c1061662]:

To Artifact [8f0722daec]:


324
325
326
327
328
329
330
331

332
333

334



335

336
337
338

339
340

341
342

343
344

345
346

347

348

349
350

351
352

353
354
355


356
357
358
359
360
361
362
324
325
326
327
328
329
330

331
332

333
334
335
336
337

338
339
340

341
342

343
344

345
346

347
348

349
350
351

352
353

354
355

356
357


358
359
360
361
362
363
364
365
366







-
+

-
+

+
+
+
-
+


-
+

-
+

-
+

-
+

-
+

+
-
+

-
+

-
+

-
-
+
+







	[_path release];
	[_expires release];
	[_extensions release];

	[super dealloc];
}

- (bool)isEqual: (id)otherObject
- (bool)isEqual: (id)object
{
	OFHTTPCookie *other;
	OFHTTPCookie *cookie;

	if (object == self)
		return true;

	if (![otherObject isKindOfClass: [OFHTTPCookie class]])
	if (![object isKindOfClass: [OFHTTPCookie class]])
		return false;

	other = otherObject;
	cookie = object;

	if (![_name isEqual: other->_name])
	if (![cookie->_name isEqual: _name])
		return false;
	if (![_value isEqual: other->_value])
	if (![cookie->_value isEqual: _value])
		return false;
	if (_domain != other->_domain && ![_domain isEqual: other->_domain])
	if (cookie->_domain != _domain && ![cookie->_domain isEqual: _domain])
		return false;
	if (_path != other->_path && ![_path isEqual: other->_path])
	if (cookie->_path != _path && ![cookie->_path isEqual: _path])
		return false;
	if (cookie->_expires != _expires &&
	if (_expires != other->_expires && ![_expires isEqual: other->_expires])
	    ![cookie->_expires isEqual: _expires])
		return false;
	if (_secure != other->_secure)
	if (cookie->_secure != _secure)
		return false;
	if (_HTTPOnly != other->_HTTPOnly)
	if (cookie->_HTTPOnly != _HTTPOnly)
		return false;
	if (_extensions != other->_extensions &&
	    ![_extensions isEqual: other->_extensions])
	if (cookie->_extensions != _extensions &&
	    ![cookie->_extensions isEqual: _extensions])
		return false;

	return true;
}

- (uint32_t)hash
{