1. 13 Aug, 2011 1 commit
    • Douglas Bagnall's avatar
      opt: add integer helpers that accept k, M, G, T, P, E suffixes · af7afcd4
      Douglas Bagnall authored
      These functions come in two flavours: those ending with "_si", which
      have 1000-based interpretations of the suffixes; and those ending with
      "_bi", which use base 1024.  There are versions for signed and
      unsigned int, long, and long long destinations, with tests for all 12
      new functions.  The tests get a bit repetitive, I am afraid.
      
      As an example, if the -x option were using the opt_set_intval_bi
      function, then all of these would do the same thing:
      
      $ foo -x 5M
      $ foo -x $((5 * 1024 * 1024))
      $ foo -x 5242880
      $ foo -x 5120k
      
      quite what that thing is depends on the size of your int -- people
      with 16 bit ints would see an "out of range" error message.
      
      The arithmetic for unsigned variations is actually done using signed
      long long integers, so the maximum possible value is LLONG_MAX, not
      ULLONG_MAX.  This follows the practice of existing functions, and
      avoids tedious work.
      af7afcd4
  2. 01 Aug, 2011 2 commits
  3. 22 Jul, 2011 1 commit
  4. 21 Jul, 2011 21 commits
  5. 19 Jul, 2011 2 commits
  6. 06 Jul, 2011 2 commits
  7. 04 Jul, 2011 1 commit
    • Rusty Russell's avatar
      tap: WANT_PTHREAD not HAVE_PTHREAD · 532feb88
      Rusty Russell authored
      I'm not sure that a "pthread-safe" tap library is very useful; how many
      people have multiple threads calling ok()?
      
      Kirill Shutemov noted that it gives a warning with -Wundef; indeed, we
      should ask in this case whether they want pthread support, not whether the
      system has pthread support to offer.
      532feb88
  8. 02 Jul, 2011 1 commit
    • Joey Adams's avatar
      json: Deleted the "notes" file. · 993b67a5
      Joey Adams authored
      This file contains my private ramblings about the JSON module,
      and was not meant to be included in the public release.
      993b67a5
  9. 01 Jul, 2011 1 commit
  10. 21 Jun, 2011 1 commit
  11. 19 Jun, 2011 1 commit
    • Russell Steicke's avatar
      antithread: patch to antithread arabella example · 58fbdc9e
      Russell Steicke authored
      I've been using the antithread arabella example to generate some
      "arty" portraits for decoration.  I've made a few changes to it
      (triangle sizes and number of generations before giving up), and may
      send those as patches later.
      
      Because some of the images I'm generating have taken quite a while
      (many days) I've needed to restart the run after rebooting machines
      for other reasons, and noticed that arabella restarted the generation
      count from zero.  I wanted to continue the generation count, so here's
      a patch to do just that.
      58fbdc9e
  12. 17 Jun, 2011 3 commits
  13. 16 Jun, 2011 1 commit
  14. 15 Jun, 2011 1 commit
  15. 11 Jun, 2011 1 commit