syn68k/runtime/include/rangetree.h

21 lines
593 B
C
Raw Normal View History

2008-09-26 14:25:10 +00:00
#ifndef _rangetree_h
#define _rangetree_h
#include "syn68k_private.h"
#include "block.h"
extern void range_tree_init (void);
extern void range_tree_destroy (void);
extern void range_tree_insert (Block *b);
extern void range_tree_remove (Block *b);
extern Block *range_tree_lookup (syn68k_addr_t h);
extern Block *range_tree_find_first_at_or_after (syn68k_addr_t addr);
extern Block *range_tree_first_to_intersect (syn68k_addr_t low,
syn68k_addr_t high);
#ifdef DEBUG
extern BOOL range_tree_verify (void);
extern void range_tree_dump (void);
#endif
#endif /* Not _rangetree_h_ */