1. 14 Feb, 2012 1 commit
    • Rusty Russell's avatar
      configurator: define HAVE_CCAN. · 98b8ada2
      Rusty Russell authored
      An interesting case came up with the tdb2 code in SAMBA recently.  It's a
      public library, and it doesn't want to be dependent on CCAN, but the header
      uses cast and typesafe_cb for extra type safety.
      
      A good solution to this is to put dummy versions under !HAVE_CCAN.  Of course,
      any CCAN config.h should define HAVE_CCAN.
      98b8ada2
  2. 28 Jan, 2012 3 commits
  3. 21 Dec, 2011 2 commits
    • Rusty Russell's avatar
      tdb2: careful on wrap. · 6f7cb26e
      Rusty Russell authored
      It's much harder to wrap a 64-bit tdb2 than a 32-bit tdb1, but we should still
      take care against bugs.
      
      Also, we should *not* cast the length to a size_t when comparing it to
      the stat result, in case size_t is 32 bit.
      6f7cb26e
    • Rusty Russell's avatar
      tdb2: be more careful on 4G files (tdb1). · a3606bbd
      Rusty Russell authored
      I came across a tdb which had wrapped to 4G + 4K, and the contents had been
      destroyed by processes which thought it only 4k long.  Fix this by checking
      on open, and making tdb_oob() check for wrap itself.
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      (Ported from tdb1 SAMBA commit b64494535dc62f4073fc6302847593ed6e6ec38b)
      a3606bbd
  4. 20 Dec, 2011 3 commits
  5. 19 Dec, 2011 1 commit
  6. 16 Dec, 2011 1 commit
  7. 15 Dec, 2011 1 commit
  8. 12 Dec, 2011 5 commits
  9. 07 Dec, 2011 5 commits
  10. 05 Dec, 2011 5 commits
  11. 04 Dec, 2011 2 commits
  12. 03 Dec, 2011 1 commit
  13. 02 Dec, 2011 8 commits
  14. 01 Dec, 2011 2 commits
    • Rusty Russell's avatar
      ccanlint: get rid of separate class of compulsory tests. · 60824f8a
      Rusty Russell authored
      It's reduced to a flag which means we stop processing the module.  We have
      to enhance our dependencies a bit, but they've always been quite good.
      
      This simplifies things quite a bit.
      60824f8a
    • Rusty Russell's avatar
      opt: add OPT_EARLY and opt_early_parse. · 50212d0d
      Rusty Russell authored
      Parsing options like --verbose and --debug can be a pain.  You need to
      have everything set up before invoking parse_args(), but that may be a
      significant amount of work, for which you may want verbose or
      debugging enabled.
      
      Thus the concept of "early" args: you can nominate arguments to be
      parse before anything else, using opt_early_parse().
      50212d0d