From df6b9d58b1b0c96e7c1dfbb8d6f5476b055b74cd Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 18 Aug 2005 11:44:25 +0000 Subject: [PATCH] removed definition of old type_visited flag restored type_visited() function declaration [r6456] --- ir/tr/type.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ir/tr/type.h b/ir/tr/type.h index a1de3a71c..514fd8d8c 100644 --- a/ir/tr/type.h +++ b/ir/tr/type.h @@ -307,7 +307,7 @@ unsigned long get_type_visited(const type *tp); void set_type_visited(type *tp, unsigned long num); /* Sets visited field in type to type_visited. */ void mark_type_visited(type *tp); -/* @@@ name clash!! int type_visited(const type *tp); */ +int type_visited(const type *tp); int type_not_visited(const type *tp); /** Returns the associated link field of a type. */ @@ -318,15 +318,15 @@ void set_type_link(type *tp, void *l); /** * Visited flag to traverse the type information. * - * Increase this flag by one before traversing the type information. - * Mark type nodes as visited by set_type_visited(type, type_visited). - * Check whether node was already visited by comparing get_type_visited(type) - * and type_visited. + * Increase this flag by one before traversing the type information + * using inc_master_type_visited(). + * Mark type nodes as visited by mark_type_visited(type). + * Check whether node was already visited by type_visited(type) + * and type_not_visited(type). * Or use the function to walk all types. * * @see typewalk */ -extern unsigned long type_visited; void set_master_type_visited(unsigned long val); unsigned long get_master_type_visited(void); void inc_master_type_visited(void); -- 2.20.1