1. 17 Mar, 2011 4 commits
    • Rusty Russell's avatar
      str: provide checks for ctype.h char functions, and strstr and strchr functions. · ecea0736
      Rusty Russell authored
      In the former case, we were bitten by the fact that you don't pass a char
      to isalpha() et al: you pass an int.  This means on most platforms you want
      to do:
      
         if (isalpha((unsigned char)c)) ...
      
      Insane?  Yes, but I assure you I'm not making this up.
      
      Similarly, I've always wanted strstr, strchr and strrchr to return
      const char * when given a const char * argument to search, to avoid
      constness leak.
      
      In both cases, the actual versions from the headers may be macros, so
      we need to be very careful overriding them.  The result is that they
      become out-of-line functions which is unacceptable for general
      performance.
      
      So we only activate these when CCAN_STR_DEBUG is defined.
      
      ecea0736
    • Rusty Russell's avatar
      build_assert: rename EXPR_BUILD_ASSERT to BUILD_ASSERT_OR_ZERO · 3f4e83d8
      Rusty Russell authored
      Same thing (a BUILD_ASSERT which evaluates to zero), but there's a
      strong preference for all modules to stick with their own names as
      prefixes.
      
      3f4e83d8
    • Rusty Russell's avatar
      ccanlint: don't ever used pre-built modules as dependencies. · a1d04855
      Rusty Russell authored
      They're often out-of-date, and we're about to do special things to the
      str module compile flags, so we don't *ever* want the default.
      
      It doesn't add much to build times, and it eliminates a nasty source
      of weird errors.
      
      a1d04855
    • Rusty Russell's avatar
      ccanlint: fix mangled output for 'make scores' · 298dc122
      Rusty Russell authored
      We need to flush stdout before forking.
      
      298dc122
  2. 16 Mar, 2011 9 commits
  3. 01 Mar, 2011 1 commit
    • Rusty Russell's avatar
      asprintf: new asprintf module. · fb1dfd09
      Rusty Russell authored
      asprintf is a PITA to use, and it's not in POSIX anyway.  Provide
      replacements, and also provide a nicer-to-use afmt() wrapper.
      fb1dfd09
  4. 08 Mar, 2011 2 commits
  5. 07 Mar, 2011 2 commits
  6. 02 Mar, 2011 4 commits
  7. 01 Mar, 2011 18 commits