12345678910111213141516171819202122232425 |
- /* $Id$ */
- /*
- * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
- * See the copyright notice in the ACK home directory, in the file "Copyright".
- */
- /* Algorithms to manipulate the doubly-linked lists of free
- chunks.
- */
- public link_free_chunk(), unlink_free_chunk();
- public mallink *first_present(), *search_free_list();
- #ifdef STORE
- #define in_store(ml) ((size_type)_phys_prev_of(ml) & STORE_BIT)
- #define set_store(ml, e) \
- (_phys_prev_of(ml) = (mallink *) \
- ((e) ? (size_type) _phys_prev_of(ml) | STORE_BIT : \
- (size_type) _phys_prev_of(ml) & ~STORE_BIT))
- #endif
- #define set_log_prev(ml,e) (_log_prev_of(ml) = (e))
- #define log_prev_of(ml) (mallink *) (_log_prev_of(ml))
- #define set_log_next(ml,e) (_log_next_of(ml) = (e))
- #define log_next_of(ml) (mallink *) (_log_next_of(ml))
|