1. 16 Apr, 2018 3 commits
  2. 14 Apr, 2018 2 commits
  3. 13 Apr, 2018 2 commits
  4. 12 Apr, 2018 8 commits
  5. 11 Apr, 2018 3 commits
    • Werner Koch's avatar
      Release 1.29 · c3825327
      Werner Koch authored
      
      
      * configure.ac: Bump LT version to C24/A24/R0.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      c3825327
    • Werner Koch's avatar
      doc: Beautify comments in gpg-error.h. · f4c4592a
      Werner Koch authored
      
      
      --
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      f4c4592a
    • Werner Koch's avatar
      core: Finalize the API for argparse. · e901c9fb
      Werner Koch authored
      
      
      * src/gpg-error.h.in (ARGPARSE_end): Simplify.
      * src/argparse.c (_gpgrt_argparse_internal_s): Add field opts.
      (deinitialize): Release new field.
      (initialize): Add arg opts and create a copy of the option list.  Add
      the internal options.
      (_gpgrt_argparse): Rename arg opts to opts_orig and set new local var
      opts.  Adjust all references to opts.
      (find_long_option): Adjust for chnaged type of OPTS.  Re-indent.
      (arg_parse): Remove internal option assignment.  Rename arg opts to
      opts_orig and set new local var opts.  Adjust all references to opts.
      (show_help): Adjust all references to opts.
      --
      
      The old ARGPARSE_end maro was a bit cumbersome and does not allow to
      chnage the number of internal options.  Thus this somewhat larger
      chnage to keep the internal options out of the API.
      
      Note that with this change the internal options now also work in a
      option file and not just on the command line; that does not make much
      sense but is probably less surprising.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      e901c9fb
  6. 27 Mar, 2018 2 commits
  7. 22 Mar, 2018 14 commits
  8. 21 Mar, 2018 6 commits
    • Werner Koch's avatar
      po: Update one fuzzy in all translations. · 5b963d2f
      Werner Koch authored
      
      
      --
      
      This was due to the removal of the "%s: " used for the prefix in a
      printf.  It is now printed with log_error which prints the prefix on
      its own.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      5b963d2f
    • Werner Koch's avatar
      po: Merge GnuPG's strings from argparse.c · e492e0a0
      Werner Koch authored
      
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      e492e0a0
    • Werner Koch's avatar
      tools: Use gpgrt_argparse for the gpg-error tool. · 11ce9bc3
      Werner Koch authored
      
      
      * src/gpg-error.c (show_usage): Remove.
      (my_strusage): New.
      (main): Change to use argparse.  Also use log_error.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      11ce9bc3
    • Werner Koch's avatar
      core: Add public function gpgrt_usage. · ed78ef7f
      Werner Koch authored
      
      
      * src/visibility.c (gpgrt_usage): New.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      ed78ef7f
    • Werner Koch's avatar
      core: Add the group of argparse functions. · 13d6fbfd
      Werner Koch authored
      
      
      * src/visibility.c (gpgrt_argparse): New.
      (gpgrt_strusage): New.
      (gpgrt_set_strusage): New.
      (gpgrt_set_usage_outfnc): New.
      (gpgrt_set_fixed_string_mapper): New.
      * src/gpg-error.def.in, src/gpg-error.vers: Add new functions.
      * src/gpg-error.h.in: Add ARGPARSE macros from the former argparse.h.
      (gpgrt_argparse_t): New.
      (gpgrt_opt_t): New.
      * configure.ac (AH_BOTTOM): Request argparse macros.
      * src/Makefile.am (libgpg_error_la_SOURCES): Add argparse.c.
      * src/argparse.h: Remove.
      * src/argparse.c: Revamp to fit into libgpg-error.
      (_gpgrt_argparse): New.
      (_gpgrt_usage): Rename from usage.
      (_gpgrt_strusage): Rename from strusage.  Define two new levels and
      templates for three common licenses.
      (_gpgrt_set_strusage): Rename from set_strusage.
      (_gpgrt_set_usage_outfnc): New.
      (_gpgrt_set_fixed_string_mapper): New.
      
      * tests/t-argparse.c: New.
      --
      
      These functions are in use by GnuPG and other software for 20 years
      and it makes sense to have them always available instead of copying
      and maintaing the source in several projects.  Note that there are
      minor changes in the API compared to GnuPG.
      
      Signed-off-by: default avatarWerner Koch <wk@gnupg.org>
      13d6fbfd
    • Werner Koch's avatar
      core: Import argparse code from gnupg master · 1beb22fc
      Werner Koch authored
      --
      1beb22fc