From: Götz Lindenmaier Date: Fri, 27 Sep 2002 07:50:19 +0000 (+0000) Subject: Moved unused macro from .h to _t.h X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a636a05762cdc49e6b89565a4f6b531dbf49089a;p=libfirm Moved unused macro from .h to _t.h Added ir/debug to search path [r498] --- diff --git a/ir/tv/Makefile.in b/ir/tv/Makefile.in index c971b9b1e..788c50ee9 100644 --- a/ir/tv/Makefile.in +++ b/ir/tv/Makefile.in @@ -19,7 +19,7 @@ SOURCES += Makefile.in ieee754.h tv.c tv_t.h include $(topdir)/MakeRules CPPFLAGS += -I$(top_srcdir)/ir/common -I$(top_srcdir)/ir/tr -I$(top_srcdir)/ir/adt \ - -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/ir + -I$(top_srcdir)/ir/ident -I$(top_srcdir)/ir/ir -I$(top_srcdir)/ir/debug include $(top_srcdir)/MakeTargets diff --git a/ir/tv/tv.h b/ir/tv/tv.h index 509872287..14cecd52f 100644 --- a/ir/tv/tv.h +++ b/ir/tv/tv.h @@ -39,8 +39,8 @@ Discussion of new interface, proposals by Prof. Waite: */ -#ifndef _TV_H -#define _TV_H +#ifndef _TV_H_ +#define _TV_H_ # include "irmode.h" # include "entity.h" @@ -194,19 +194,6 @@ bool tv_val_b (tarval *tv); tarval_B tv_val_B (tarval *tv); tarval_s tv_val_s (tarval *tv); -#ifdef NDEBUG -#define TARVAL_VRFY(val) ((void)0) -#else -#define TARVAL_VRFY(val) _tarval_vrfy ((val)) -extern void _tarval_vrfy (const tarval *); -#endif - -#ifdef STATS -void tarval_stats (void); -#else -#define tarval_stats() ((void)0) -#endif - ir_mode *get_tv_mode (tarval *tv); /* Returns the entity if the tv is a pointer to an entity, else returns NULL; */ @@ -214,4 +201,4 @@ entity *get_tv_entity(tarval *tv); /* Returns 0 if tv is positive, else > 0. @@@ not tested! */ int tv_is_negative(tarval *a); -#endif +#endif /* _TV_H_ */ diff --git a/ir/tv/tv_t.h b/ir/tv/tv_t.h index 6a9a92d2b..4c3dc5034 100644 --- a/ir/tv/tv_t.h +++ b/ir/tv/tv_t.h @@ -3,8 +3,8 @@ /* $Id$ */ -#ifndef _TV_T_H -#define _TV_T_H +#ifndef _TV_T_H_ +#define _TV_T_H_ # include "tv.h" # include "misc.h" @@ -12,4 +12,17 @@ int tarval_print (XP_PAR1, const xprintf_info *, XP_PARN); +#ifdef NDEBUG +#define TARVAL_VRFY(val) ((void)0) +#else +#define TARVAL_VRFY(val) _tarval_vrfy ((val)) +extern void _tarval_vrfy (const tarval *); #endif + +#ifdef STATS +void tarval_stats (void); +#else +#define tarval_stats() ((void)0) +#endif + +#endif /* _TV_T_H_ */