1. 20 Dec, 2019 1 commit
    • Paul Eggert's avatar
      dfa: struct dfamust now uses flexible array · 6dabeec0
      Paul Eggert authored
      * lib/dfa.c: Include flexmember.h.
      (dfamust, dfamustfree): Adjust to struct dfamust change.
      This saves a call to malloc+free.
      * lib/dfa.h (struct dfamust): Make the final member a
      flexible array member.
      * modules/dfa (Depends-on): Add flexmember.
      6dabeec0
  2. 17 Dec, 2019 2 commits
    • Paul Eggert's avatar
      dfa: new function dfacopysyntax · 83e9cc89
      Paul Eggert authored
      * lib/dfa.c (struct dfa): Move syntax member later so
      that dfacopysyntax can easily clear earlier members.
      (dfacopysyntax): New function, used by Gawk.
      83e9cc89
    • Paul Eggert's avatar
      dfa: port _GL_ATTRIBUTE_MALLOC to Gawk · 10ad4d2a
      Paul Eggert authored
      Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
      * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
      if not already defined.
      10ad4d2a
  3. 12 Dec, 2019 1 commit
    • Paul Eggert's avatar
      dfa: prefer ptrdiff_t for API, too · 73de34d3
      Paul Eggert authored
      Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
      but do this only for internal use for now.
      * NEWS: Mention the API change.
      * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
      use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
      values known to be nonnegative.
      (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
      Prefer idx_t or ptrdiff_t to size_t for API.
      * lib/dfa.h (dfaparse, dfacomp, dfaexec):
      Prefer ptrdiff_t to size_t for API.
      73de34d3
  4. 11 Dec, 2019 2 commits
    • Paul Eggert's avatar
      dfa: update commentary for previous change · 360cbd3b
      Paul Eggert authored
      * NEWS: Mention the change.
      * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
      360cbd3b
    • Norihiro Tanaka's avatar
      dfa: separate parse and compile phase · ac924922
      Norihiro Tanaka authored
      ‘dfamust’ must be called after parsing and before tokens are
      reordered, but both are executed in the compilation phase.
      Token reordering was introduced in Gnulib commit
      2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
      (5c7a0371).
      * lib/dfa.c (dfaparse): Change it to global function.
      (dfacomp): If first argument is NULL, skip parse.
      * lib/dfa.h: (dfaparse): Add a prototype.
      ac924922
  5. 31 Dec, 2018 1 commit
  6. 04 May, 2018 1 commit
    • Paul Eggert's avatar
      maint: port more modules to GCC 8 · 72333a9c
      Paul Eggert authored
      * lib/dirname.h (base_name):
      * lib/exclude.h (new_exclude):
      * lib/xstrndup.h (xstrndup):
      Add malloc attribute.
      * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
      * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
      This pacifies GCC 8.
      * m4/gnulib-common.m4 (gl_COMMON_BODY):
      Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
      72333a9c
  7. 01 Jan, 2018 1 commit
  8. 01 Jan, 2017 1 commit
    • Paul Eggert's avatar
      version-etc: new year · a3fd683d
      Paul Eggert authored
      * build-aux/gendocs.sh (version):
      * doc/gendocs_template:
      * doc/gendocs_template_min:
      * doc/gnulib.texi:
      * lib/version-etc.c (COPYRIGHT_YEAR):
      Update copyright dates by hand in templates and the like.
      * all files: Run 'make update-copyright'.
      a3fd683d
  9. 13 Dec, 2016 1 commit
  10. 10 Sep, 2016 1 commit
    • Jim Meyering's avatar
      dfa: new module, importing grep's DFA matcher · 28672037
      Jim Meyering authored
      Since grep's DFA matcher is now being used by two gnulib-enabled
      projects, grep and sed, it makes sense to version-control its
      sources and unit tests in one place: here.
      * modules/dfa: New module.
      * modules/dfa-tests: New file.
      * lib/dfa.c: New file, from grep.
      * lib/dfa.h: Likewise.
      * lib/localeinfo.c: Likewise.
      * lib/localeinfo.h: Likewise.
      * tests/dfa-match-aux.c: Likewise.
      * tests/dfa-invalid-char-class.sh: Likewise.
      * tests/dfa-match.sh: Likewise, with minor changes.
      * MODULES.html.sh (Misc): Add "dfa" to this list.
      28672037