summaryrefslogtreecommitdiff
path: root/viengoos/list.h
AgeCommit message (Collapse)Author
2008-02-202008-02-20 Neal H. Walfield <neal@gnu.org>neal
* list.h (struct list) [! NDEBUG]: Add field name. (list_init): Add parameter name. Update users. (LIST_CLASS): Update template to account for list_init changes. (list_unlink): Improve debugging output. * activity.c (activity_prepare): Explicitly initialize all lists.
2008-02-152008-02-15 Neal H. Walfield <neal@gnu.org>neal
* list.h (list_unlink): New function. (LIST_CLASS): Add above function to template. (LIST_CLASS_TYPE): New macro. (LIST_CLASS): Take additional argument need_type. If false, don't generate a type declaration. Update users.
2008-01-132008-01-13 Neal H. Walfield <neal@gnu.org>neal
* list.h (list_unlink): Cast LIST.
2008-01-132008-01-13 Neal H. Walfield <neal@gnu.org>neal
* activity.c (activity_destroy): When making a frame inactive, be sure to reset its age to 0. * list.h (list_unlink): Improve debugging output.
2008-01-042008-01-04 Neal H. Walfield <neal@gnu.org>neal
* list.h (struct list_node): Add comment that about initialization requirements. (list_unlink): Always set ITEM->NEXT and ITEM->PREV to NULL. (list_node_attached): New function. (list_count): Add an assert.
2007-12-312007-12-31 Neal H. Walfield <neal@gnu.org>neal
* list.h: New file. * Makefile.am (viengoos_SOURCES): Add list.h. (t_link_SOURCES): Remove object.h. Add list.h. * object.h: Include "list.h". (LINK_TEMPLATE): Move from here... * list.h: ... to this new file. Generalize functionality. Add count, head, prev, next and prev methods. Rename LINK_TEMPLATE to LIST_CLASS. Update users. * object.h (struct object_desc): Change activity_lru and global_lru to struct list_node's. (global_active): Change to a struct object_global_lru_list. (global_inactive_dirty): Likewise. (global_inactive_clean): Likewise. (disowned): Change to a struct object_activity_lru_list. * object.c (global_active): Change to a struct object_global_lru_list. (global_inactive_dirty): Likewise. (global_inactive_clean): Likewise. (disowned): Change to a struct object_activity_lru_list. * activity.h (struct activity): Change active, inactive_clean and inactive_dirty to struct object_activity_lru_list's.