Commit df6b9d58 authored by Michael Beck's avatar Michael Beck
Browse files

removed definition of old type_visited flag

restored type_visited() function declaration

[r6456]
parent bb951a84
...@@ -307,7 +307,7 @@ unsigned long get_type_visited(const type *tp); ...@@ -307,7 +307,7 @@ unsigned long get_type_visited(const type *tp);
void set_type_visited(type *tp, unsigned long num); void set_type_visited(type *tp, unsigned long num);
/* Sets visited field in type to type_visited. */ /* Sets visited field in type to type_visited. */
void mark_type_visited(type *tp); 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); int type_not_visited(const type *tp);
/** Returns the associated link field of a type. */ /** Returns the associated link field of a type. */
...@@ -318,15 +318,15 @@ void set_type_link(type *tp, void *l); ...@@ -318,15 +318,15 @@ void set_type_link(type *tp, void *l);
/** /**
* Visited flag to traverse the type information. * Visited flag to traverse the type information.
* *
* Increase this flag by one before traversing 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). * using inc_master_type_visited().
* Check whether node was already visited by comparing get_type_visited(type) * Mark type nodes as visited by mark_type_visited(type).
* and type_visited. * Check whether node was already visited by type_visited(type)
* and type_not_visited(type).
* Or use the function to walk all types. * Or use the function to walk all types.
* *
* @see typewalk * @see typewalk
*/ */
extern unsigned long type_visited;
void set_master_type_visited(unsigned long val); void set_master_type_visited(unsigned long val);
unsigned long get_master_type_visited(void); unsigned long get_master_type_visited(void);
void inc_master_type_visited(void); void inc_master_type_visited(void);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment