From 1f7feecaee0ed3fb79758fe60020aefb30d9ff01 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 21 Feb 2016 13:25:24 -0800 Subject: Use Gnulib filevercmp for version comparison * admin/merge-gnulib (GNULIB_MODULES): Add filevercmp. * doc/lispref/strings.texi (Text Comparison): * etc/NEWS, src/fns.c: * test/src/fns-tests.el (fns-tests-string-version-lessp): Rename newly-introduced function to string-version-lessp, by analogy with strverscmp. * lib/filevercmp.c, lib/filevercmp.h: New files, copied from gnulib. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * src/fns.c: Include . (gather_number_from_string): Remove. (Fstring_version_lessp): Reimplement via filevercmp. --- m4/gnulib-comp.m4 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'm4') diff --git a/m4/gnulib-comp.m4 b/m4/gnulib-comp.m4 index 831bb4c4f4b..5a3fc98597c 100644 --- a/m4/gnulib-comp.m4 +++ b/m4/gnulib-comp.m4 @@ -78,6 +78,7 @@ AC_DEFUN([gl_EARLY], # Code from module fdatasync: # Code from module fdopendir: # Code from module filemode: + # Code from module filevercmp: # Code from module fpending: # Code from module fstatat: # Code from module fsync: @@ -889,6 +890,8 @@ AC_DEFUN([gl_FILE_LIST], [ lib/fdopendir.c lib/filemode.c lib/filemode.h + lib/filevercmp.c + lib/filevercmp.h lib/fpending.c lib/fpending.h lib/fstatat.c -- cgit v1.2.1