Commit Graph

24 Commits

Author SHA1 Message Date
Érico Nogueira 743004c68e Add Changelog entry for version 1.4.1.
Slightly late from the actual release.
2022-01-20 15:12:32 -03:00
Wolf Vollprecht 0b9114163d fix warning about german umlaut on MSVC 2022-01-20 15:07:09 -03:00
Wolf Vollprecht 7967e9d0c7 fix encoding of ChangeLog 2022-01-20 15:07:09 -03:00
Érico Rolim e5fe9ad9e8 Check for libintl header and add dgettext wrapper.
The dgettext_safe wrapper is used in the few situations where it wasn't
possible to immediatelly tell that the msgid parameter wasn't NULL.
We can probably add some debug printing code here at some point to try
and bring bugs upstream, if it makes sense.

Some inspiration from https://github.com/xhebox/libuargp
2021-02-16 01:47:29 -03:00
Érico Rolim da0206414d Add licensing information to README. 2021-02-16 01:17:41 -03:00
Érico Rolim 8602d730aa Correction for the origin of commit beb2470941.
That change actually came from
https://svnweb.freebsd.org/ports?view=revision&revision=451174
2021-02-10 20:19:23 -03:00
Érico Rolim 058bb7123b Release 1.4.0. 2021-02-10 19:25:53 -03:00
Érico Rolim 1068e08618 Add README. 2021-02-10 19:19:49 -03:00
Érico Rolim beb2470941 Fix acinclude.m4 for clang.
Also all other compilers which don't support nested functions in C.

Taken from:
https://svnweb.freebsd.org/ports?view=revision&revision=531220
2021-02-10 19:17:14 -03:00
Érico Rolim 578e48d922 Add .gitignore. 2021-02-10 18:54:02 -03:00
Érico Rolim 9f1c80e87d Remove autogoo files. 2021-02-10 18:54:02 -03:00
Érico Rolim e7ff8d9787 Remove extern statics.
They have weird semantics and lead to hard to debug linking issues. Just
force static inline everywhere.
2021-02-10 18:54:02 -03:00
Érico Rolim 6336530a9c Fix argp-help.c.
It tried to use an __argp_basename function, which was defined to
program_invocation_short_name. The function definition should have been
gated.

This patch may be upstreamable to glibc.
2021-02-10 18:08:36 -03:00
Érico Rolim c57dfcb63a Import argp-namefrob.h from glibc 2.33. 2021-02-10 18:08:19 -03:00
Érico Rolim a05d76cc6d Import argp-help.c from glibc 2.33.
Also:
- support only strerror(), not strerror_r()
2021-02-10 18:08:19 -03:00
Érico Rolim 8069113599 Import argp-parse.c from glibc 2.33.
Also:
- make it not thread safe, since the thread safe getopt variants are GNU
only
- don't cater to compilers which don't support inlining
2021-02-10 18:08:19 -03:00
Érico Rolim 3358bdadaf Import argp-fmtstream.{c,h} from glibc 2.33.
Also:
- use vsnprintf instead of __vsnprintf_internal
- don't cater to compilers which can't inline functions
2021-02-10 18:08:19 -03:00
Érico Rolim a5fcbcecd9 Import argp-test.c from glibc 2.33.
This change assumes that asprintf is always available.
2021-02-10 17:41:05 -03:00
Érico Rolim 06a70d506f Import trivial changes from glibc 2.33.
Mostly style/license changes and initialization removal when the
variable is a global.
2021-02-10 17:41:05 -03:00
Érico Rolim c474ac2af7 Import argp.h from glibc 2.33.
With some changes of my own:
- pull <sys/cdef.h> ifdefs for compiler keywords
- always define error_t
- change !_LIBC to 1: should always be true
2021-02-10 17:41:05 -03:00
Érico Rolim 92bd24de26 Import argp-standalone 1.3. 2021-02-10 17:41:05 -03:00
Érico Rolim ede863a979 Import argp-standalone 1.2. 2021-02-10 17:41:05 -03:00
Érico Rolim 3d5f6735d4 Import argp-standalone 1.1. 2021-02-10 16:17:50 -03:00
Érico Rolim 8333609d29 Import argp-standalone 1.0. 2021-02-10 16:16:04 -03:00