In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>
commit9cacfc3eb3244d1f0a17481c75df331cd9d5a749
authorNicola Pero <nicola.pero@meta-innovation.com>
Fri, 24 Dec 2010 20:10:46 +0000 (24 20:10 +0000)
committerNicola Pero <nicola@gcc.gnu.org>
Fri, 24 Dec 2010 20:10:46 +0000 (24 20:10 +0000)
tree82ccf00b97041686d44ec777ecbed412ef03db12
parent410644c41a1b10798a0fe442c66f9bf582ecf067
In libobjc/: 2010-12-24 Nicola Pero <nicola.pero@meta-innovation.com>

In libobjc/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

* selector.c (sel_getTypedSelector): Return NULL if given a NULL
argument.
(sel_registerTypedName): Same.
(sel_registerName): Same.
* objc/runtime.h: Updated documentation.

In gcc/testsuite/:
2010-12-24  Nicola Pero  <nicola.pero@meta-innovation.com>

* objc.dg/gnu-api-2-sel.m: Test calling sel_getUid,
sel_registerName and sel_registerTypedName with NULL arguments.
Updated the test to work with the Apple runtime as well.
* obj-c++.dg/gnu-api-2-sel.mm: Same change.

From-SVN: r168231
gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/gnu-api-2-sel.mm
gcc/testsuite/objc.dg/gnu-api-2-sel.m
libobjc/ChangeLog
libobjc/objc/runtime.h
libobjc/selector.c