Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mq_tree_insert_child*(), mq_tree_insert_sibling*(): Rename to mq_tree_append_*() | Patrick McDermott | 2017-10-24 | 1 | -6/+6 |
| | |||||
* | mq_tree_next(): Fix | Patrick McDermott | 2017-10-23 | 1 | -1/+1 |
| | |||||
* | mq_tree_foreach_child(): Remove function | Patrick McDermott | 2017-10-23 | 1 | -4/+0 |
| | |||||
* | mq_tree_first_child(): New macro | Patrick McDermott | 2017-10-23 | 1 | -0/+2 |
| | |||||
* | mq_tree_foreach_from(): New function | Patrick McDermott | 2017-10-23 | 1 | -0/+4 |
| | |||||
* | mq_tree_foreach*(): Accept only one user data argument | Patrick McDermott | 2017-10-23 | 1 | -3/+4 |
| | | | | | | | | | And update MqNotebook. The va_copy()s didn't seem to work. va_arg() in MqNotebook's find_node_compare() returned garbage, preventing the node from being found and causing the assertion in find_node() (as called by mq_notebook_insert_sibling() and mq_notebook_insert_child()) to fail. | ||||
* | mq_tree_size(), mq_tree_position(): Fix conditional expressions | Patrick McDermott | 2017-10-23 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | Fixes: CC src/marquee-notebook.o In file included from src/notebook.c:29:0: src/notebook.c: In function ‘mq_notebook_get_n_pages’: src/tree.h:67:70: warning: pointer/integer type mismatch in conditional expression #define mq_tree_size(node) ((node) ? (((MqTree *) (node))->size) : NULL) ^ src/notebook.c:253:9: note: in expansion of macro ‘mq_tree_size’ return mq_tree_size(MQ_TREE(notebook->tree)); ^ src/notebook.c:253:2: warning: return makes integer from pointer without a cast return mq_tree_size(MQ_TREE(notebook->tree)); ^ | ||||
* | src/tree.h: Fix MQ_TREE() | Patrick McDermott | 2017-10-23 | 1 | -1/+1 |
| | |||||
* | MqTree: New type | Patrick McDermott | 2017-10-23 | 1 | -0/+85 |