diff options
author | neal <neal> | 2008-06-22 09:41:00 +0000 |
---|---|---|
committer | neal <neal> | 2008-06-22 09:41:00 +0000 |
commit | 0cdbf04e9c6f953beb6b8a7badd015a3b0a793b0 (patch) | |
tree | c7b8563c6f14cad52f1b768af262e2b749f468a3 /viengoos | |
parent | 706219de809115933420aadee8ea8930096590b8 (diff) |
2008-06-22 Neal H. Walfield <neal@gnu.org>
* list.h (list_count) [! NDEBUG]: Don't check the length of the
list in this case...
[! NCHECK]: ... but in this case.
Diffstat (limited to 'viengoos')
-rw-r--r-- | viengoos/ChangeLog | 6 | ||||
-rw-r--r-- | viengoos/list.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/viengoos/ChangeLog b/viengoos/ChangeLog index 7561726..f462414 100644 --- a/viengoos/ChangeLog +++ b/viengoos/ChangeLog @@ -1,5 +1,11 @@ 2008-06-22 Neal H. Walfield <neal@gnu.org> + * list.h (list_count) [! NDEBUG]: Don't check the length of the + list in this case... + [! NCHECK]: ... but in this case. + +2008-06-22 Neal H. Walfield <neal@gnu.org> + * server.c (server_loop): In the implementation of object_discarded_clear, if CAP.TYPE is void, directly return ENOENT. diff --git a/viengoos/list.h b/viengoos/list.h index 16d8c98..488e1f5 100644 --- a/viengoos/list.h +++ b/viengoos/list.h @@ -122,7 +122,7 @@ list_prev (struct list_node *node) static inline int list_count (struct list *list) { -#ifndef NDEBUG +#ifndef NCHECK int count = 0; struct list_node *node; for (node = list_head (list); node; node = list_next (node)) @@ -313,10 +313,8 @@ list_unlink (struct list *list, struct list_node *item) static inline void list_move (struct list *target, struct list *source) { -#ifndef NDEBUG assert (! target->head); assert (target->count == 0); -#endif *target = *source; @@ -364,7 +362,7 @@ list_join (struct list *target, struct list *source) struct foo { ...; - struct list_node *node; + struct list_node node; } LIST_CLASS(foo, struct foo, node, true) |