1. 30 Nov, 2016 3 commits
  2. 27 Nov, 2016 1 commit
    • Kevin Locke's avatar
      edit_distance: Rename ED_STACK_ELEMS ED_STACK_DIST_VALS · 346058c0
      Kevin Locke authored
      The previous name was misleading, since it does not define the number of
      elements (ed_elem) on the stack, but rather the number of distance
      values (ed_dist).  Rename to make this more clear and add more
      documentation about what it does and how best to define it.
      
      Note:  This is an API change for custom-compiled versions, but since the
      module has only been included for a couple days I don't think it's worth
      a back-compat #ifdef at this point.
      Signed-off-by: default avatarKevin Locke <kevin@kevinlocke.name>
      346058c0
  3. 23 Nov, 2016 2 commits
    • David Gibson's avatar
      .travis.yml: Enable C99 mode for older gcc versions · 18cbdae8
      David Gibson authored
      Currently Travis builds fail on the edit_distance module, because that
      module uses C99 extensions, which aren't enabled by default on the
      Ubuntu Precise compiler version.  Force it to allow these, by adding the
      -std=gnu99 option to the compiler.
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      18cbdae8
    • Kevin Locke's avatar
      edit_distance: calculate edit distance between strings · e0663bef
      Kevin Locke authored
      This commit creates the edit_distance module for calculating various
      edit distance measures.  The edit distance quantifies the similarity
      between two strings based on the number of modifications necessary to
      turn one string into the other.  There are several edit distance
      measures which differ in the operations which are permitted and the
      cost (aka weight) of the operations.  This module provides functions
      for calculating the Longest Common Subsequence (LCS), Levenshtein, and
      Damerau-Levenshtein (restricted and unrestricted) distances.  Weighted
      versions of these functions can be created by defining cost functions
      as preprocessor macros when compiling this module.  Distances over
      other array types (e.g. wide strings, integers, structs) can be
      accomplished by defining the element type and equality test macros.
      Signed-off-by: default avatarKevin Locke <kevin@kevinlocke.name>
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      e0663bef
  4. 22 Nov, 2016 3 commits
  5. 21 Nov, 2016 6 commits
  6. 17 Nov, 2016 2 commits
  7. 07 Nov, 2016 2 commits
    • David Gibson's avatar
      Clearer output from make check in Travis · 03509101
      David Gibson authored
      This removes the parallel make (-j) option when running make check under
      Travis CI.  This will slow down the build somewhat, but makes it easier to
      match errors to the modules which caused them.
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      03509101
    • David Gibson's avatar
      ccanlint: Alter meaning of --summary option · 655620a2
      David Gibson authored
      --summary (used by make check) causes ccanlint to only ever print a
      one-line summary of the results.  When one of the tests fails, this isn't
      very useful, because it doesn't say why it failed, or even which test
      failed.  This is particularly frustrating for failures in Travis CI builds
      where it's not always straightforward to reproduce a similar enough build
      environment to check the failure manually for a particular module.
      
      --summary does have one purpose which is vital for make check, though: it
      suppresses any attempt to interactively correct / improve the module
      printing only results.
      
      This changes --summary to only have the second effect, not the first.  This
      won't change the output in the case of passing modules, but will give more
      useful information in the case of failing modules.
      Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
      655620a2
  8. 06 Nov, 2016 10 commits
  9. 04 Nov, 2016 9 commits
  10. 02 Nov, 2016 1 commit
  11. 31 Oct, 2016 1 commit