mirror of git://gcc.gnu.org/git/gcc.git
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
In libobjc/: 2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com> * objc-private/common.h: When DEBUG is defined, include <stdio.h>. Updated comments. * init.c (__objc_tree_insert_class): Use %p, not %x, when printing a pointer using DEBUG_PRINTF. From-SVN: r168119
This commit is contained in:
parent
59db109afd
commit
df0820da97
|
@ -1,3 +1,10 @@
|
||||||
|
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||||
|
|
||||||
|
* objc-private/common.h: When DEBUG is defined, include <stdio.h>.
|
||||||
|
Updated comments.
|
||||||
|
* init.c (__objc_tree_insert_class): Use %p, not %x, when printing
|
||||||
|
a pointer using DEBUG_PRINTF.
|
||||||
|
|
||||||
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
|
2010-12-21 Nicola Pero <nicola.pero@meta-innovation.com>
|
||||||
|
|
||||||
PR libobjc/45953
|
PR libobjc/45953
|
||||||
|
|
|
@ -209,7 +209,7 @@ create_tree_of_subclasses_inherited_from (Class bottom_class, Class upper)
|
||||||
static objc_class_tree *
|
static objc_class_tree *
|
||||||
__objc_tree_insert_class (objc_class_tree *tree, Class class)
|
__objc_tree_insert_class (objc_class_tree *tree, Class class)
|
||||||
{
|
{
|
||||||
DEBUG_PRINTF ("__objc_tree_insert_class: tree = %x, class = %s\n",
|
DEBUG_PRINTF ("__objc_tree_insert_class: tree = %p, class = %s\n",
|
||||||
tree, class->name);
|
tree, class->name);
|
||||||
|
|
||||||
if (tree == NULL)
|
if (tree == NULL)
|
||||||
|
|
|
@ -33,7 +33,14 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
||||||
being included by an external file. */
|
being included by an external file. */
|
||||||
#define GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF 1
|
#define GNU_LIBOBJC_COMPILING_LIBOBJC_ITSELF 1
|
||||||
|
|
||||||
|
/* When debugging libobjc, add
|
||||||
|
|
||||||
|
#define DEBUG 1
|
||||||
|
|
||||||
|
at the very beginning of a file in libobjc (before including this file) to turn
|
||||||
|
on DEBUG_PRINTF(). */
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
#include <stdio.h>
|
||||||
#define DEBUG_PRINTF(format, args...) printf (format, ## args)
|
#define DEBUG_PRINTF(format, args...) printf (format, ## args)
|
||||||
#else
|
#else
|
||||||
#define DEBUG_PRINTF(format, args...)
|
#define DEBUG_PRINTF(format, args...)
|
||||||
|
|
Loading…
Reference in New Issue