1. 04 Jan, 2011 4 commits
  2. 01 Jan, 2011 9 commits
  3. 23 Dec, 2010 4 commits
  4. 16 Dec, 2010 1 commit
    • Rusty Russell's avatar
      typesafe_cb: Fix warnings with gcc-4.5: · 6535bdee
      Rusty Russell authored
      Test compiled with warnings:
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:/home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c: In function ‘main’:
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:18:2: warning: taking address of expression of type ‘void’
      /home/rusty/devel/cvs/ccan/ccan/typesafe_cb/test/compile_ok-typesafe_cb-NULL.c:19:2: warning: taking address of expression of type ‘void’
      6535bdee
  5. 13 Dec, 2010 4 commits
  6. 08 Dec, 2010 4 commits
    • Rusty Russell's avatar
      rbtree: remove unused variable in tests. · 73cc6ce4
      Rusty Russell authored
      73cc6ce4
    • Ronnie Sahlberg's avatar
      rb_tree: fix trbt_delete · 90768177
      Ronnie Sahlberg authored
      trbt_delete32() was broken and caused SEGV as soon as you tried to
      delete an object from a tree.
      
      Rework trbt_delete32() to instead just call talloc_free() instread of trying
      to call delete_node() directly.
      This makes the "from_destructor" argument to delete_node() redundant
      so that parameter is removed too.
      Signed-off-by: default avatarRonnie Sahlberg <sahlberg@lenovo-laptop.(none)>
      90768177
    • Rusty Russell's avatar
      configurator: warnings count as failures too. · 2cae94de
      Rusty Russell authored
      Unfortunately, gcc only warns if it sees an unknown attribute (in this case, gcc 4.1 vs "cold").
      2cae94de
    • Rusty Russell's avatar
      ccanlint: fix compile on x86-64 · c102d5ec
      Rusty Russell authored
      cc -g -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -I. -MD -Werror   -c -o tools/ccanlint/tests/examples_run.o tools/ccanlint/tests/examples_run.c
      cc1: warnings being treated as errors
      tools/ccanlint/tests/examples_run.c: In function ‘scan_forv’:
      tools/ccanlint/tests/examples_run.c:37: warning: passing argument 2 of ‘__builtin_va_copy’ discards qualifiers from pointer target type
      tools/ccanlint/tests/examples_run.c:43: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type
      tools/ccanlint/tests/examples_run.c:52: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type
      tools/ccanlint/tests/examples_run.c:60: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type
      tools/ccanlint/tests/examples_run.c: In function ‘scan_for’:
      tools/ccanlint/tests/examples_run.c:78: warning: passing argument 4 of ‘scan_forv’ from incompatible pointer type
      make: *** [tools/ccanlint/tests/examples_run.o] Error 1
      
      It really doesn't like constifying a va_arg, so remove the const declaration.
      c102d5ec
  7. 07 Dec, 2010 1 commit
  8. 06 Dec, 2010 8 commits
  9. 03 Dec, 2010 1 commit
  10. 01 Dec, 2010 4 commits
    • Rusty Russell's avatar
      Merge branch 'tdb2' · 51a56b52
      Rusty Russell authored
      51a56b52
    • Rusty Russell's avatar
      tdb2: update documentation · a42bba8e
      Rusty Russell authored
      Specifically the linked free tables, and reflect on the status of each
      point of the design document.
      a42bba8e
    • Rusty Russell's avatar
      tdb2: use separate magic constants for chain, htable and ftable entries · 2491b65a
      Rusty Russell authored
      Rather than overloading TDB_USED_MAGIC and the hash value as we do now.
      We also rename "free list" to the more-accurate "free table" everywhere.
      2491b65a
    • Rusty Russell's avatar
      tdb2: direct access during transactions. · f5087965
      Rusty Russell authored
      Currently we fall back to copying data during a transaction, but we don't
      need to in many cases.  Grant direct access in those cases.
      
      Before:
      $ ./speed --transaction 1000000
      Adding 1000000 records:  2409 ns (59916680 bytes)
      Finding 1000000 records:  1156 ns (59916680 bytes)
      Missing 1000000 records:  604 ns (59916680 bytes)
      Missing 1000000 records:  604 ns (59916680 bytes)
      Traversing 1000000 records:  1226 ns (59916680 bytes)
      Deleting 1000000 records:  1556 ns (119361928 bytes)
      Re-adding 1000000 records:  2326 ns (119361928 bytes)
      Appending 1000000 records:  3269 ns (246656880 bytes)
      Churning 1000000 records:  5613 ns (338235248 bytes)
      
      After:
      $ ./speed --transaction 1000000
      Adding 1000000 records:  1902 ns (59916680 bytes)
      Finding 1000000 records:  1032 ns (59916680 bytes)
      Missing 1000000 records:  606 ns (59916680 bytes)
      Missing 1000000 records:  606 ns (59916680 bytes)
      Traversing 1000000 records:  741 ns (59916680 bytes)
      Deleting 1000000 records:  1347 ns (119361928 bytes)
      Re-adding 1000000 records:  1727 ns (119361928 bytes)
      Appending 1000000 records:  2561 ns (246656880 bytes)
      Churning 1000000 records:  4403 ns (338235248 bytes)
      f5087965