diff options
author | Andrew Sidwell <andy@entai.co.uk> | 2008-07-10 13:42:43 +0000 |
---|---|---|
committer | Andrew Sidwell <andy@entai.co.uk> | 2008-07-10 13:42:43 +0000 |
commit | d354b2d78f226b370fd6720ff84aa43bfa4d930d (patch) | |
tree | 0b2f5abebe9903f394df5c368d33c01fac7ca67b /test | |
parent | 0438fcc8b80bf080e2dcd7708d728adad1ba1e5f (diff) | |
download | libhubbub-d354b2d78f226b370fd6720ff84aa43bfa4d930d.tar.gz libhubbub-d354b2d78f226b370fd6720ff84aa43bfa4d930d.tar.bz2 |
- Handle in_table_foster for element insertion (yet to do comment/character).
- Fix test harness's insert_before() method.
- Foster parenting now correctly taints the current table.
svn path=/trunk/hubbub/; revision=4568
Diffstat (limited to 'test')
-rw-r--r-- | test/tree2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/tree2.c b/test/tree2.c index e5a1e94..a56304f 100644 --- a/test/tree2.c +++ b/test/tree2.c @@ -475,11 +475,13 @@ int insert_before(void *ctx, void *parent, void *child, void *ref_child, tchild->next = tref; tref->prev = tchild; - if (tref->prev) - tref->prev->next = tchild; + if (tchild->prev) + tchild->prev->next = tchild; else tparent->child = tchild; + *result = child; + return 0; } |