Age | Commit message (Collapse) | Author |
|
* 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.
|
|
* 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.
|
|
* list.h (list_unlink): Cast LIST.
|
|
* activity.c (activity_destroy): When making a frame inactive, be
sure to reset its age to 0.
* list.h (list_unlink): Improve debugging output.
|
|
* 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.
|
|
* 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.
|