diff options
author | Werner Koch <[email protected]> | 2018-11-15 18:18:53 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-11-15 18:28:20 +0000 |
commit | a5d4a4b32b11814d673241d62624ecec1d577571 (patch) | |
tree | f276ffcc2ae1522ee83666dc6da4774bb602a26e /Makefile.am | |
parent | gpgrt-config: Prepend PKG_CONFIG_LIBDIR to PKG_CONFIG_PATH. (diff) | |
download | libgpg-error-a5d4a4b32b11814d673241d62624ecec1d577571.tar.gz libgpg-error-a5d4a4b32b11814d673241d62624ecec1d577571.zip |
core: New API gpgrt_cmp_version
* src/gpg-error.h.in: New API gpgrt_cmp_version.
* src/visibility.c (gpgrt_cmp_version): New wrapper.
* src/version.c (parse_version_string): Revamped.
(do_cmp_version): New.
(_gpgrt_cmp_version): New.
(_gpg_error_check_version): Re-implemented using the new func.
* tests/t-version.c: Include t-common.h.
(t_gpgrt_cmp_version): New test.
(main): Run new test. Change test for new version number to require a
2 level number.
--
We have implementations of very similar functions in all out libs.
Thus it makes sense to provide a generic version. This version is
actually derived from the ftp-indexer.c we use for the gnupg
website (see the gnupg-doc repo).
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index b602c7f..4991911 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,6 +15,7 @@ # # You should have received a copy of the GNU Lesser General Public # License along with this program; if not, see <https://www.gnu.org/licenses/>. +# SPDX-License-Identifier: LGPL-2.1-or-later # Location of the released tarball archives. Note that this is an # internal archive and before uploading this to the public server, |