Hello community, here is the log from the commit of package libHX for openSUSE:Factory checked in at 2018-10-25 08:09:03 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libHX (Old) and /work/SRC/openSUSE:Factory/.libHX.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libHX" Thu Oct 25 08:09:03 2018 rev:59 rq:642710 version:3.24 Changes: -------- --- /work/SRC/openSUSE:Factory/libHX/libHX.changes 2018-09-03 10:44:38.877832141 +0200 +++ /work/SRC/openSUSE:Factory/.libHX.new/libHX.changes 2018-10-25 08:09:04.932316190 +0200 @@ -1,0 +2,7 @@ +Wed Oct 17 19:25:05 UTC 2018 - Jan Engelhardt <[email protected]> + +- Update to new upstream release 3.24 + * Make "HXOPT_AUTOHELP" behave the same in C++ as C + * Avoid compiler warning when using HX_list_for_each in C++ + +------------------------------------------------------------------- Old: ---- libHX-3.23.tar.asc libHX-3.23.tar.xz New: ---- libHX-3.24.tar.asc libHX-3.24.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libHX.spec ++++++ --- /var/tmp/diff_new_pack.lZhIW2/_old 2018-10-25 08:09:05.444315854 +0200 +++ /var/tmp/diff_new_pack.lZhIW2/_new 2018-10-25 08:09:05.448315852 +0200 @@ -12,16 +12,16 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: libHX %define lname libHX28 Summary: Collection of routines for C and C++ programming -License: LGPL-2.1-only OR LGPL-3.0-only +License: LGPL-2.1-or-later Group: Development/Libraries/C and C++ -Version: 3.23 +Version: 3.24 Release: 0 Url: http://libhx.sf.net/ @@ -50,13 +50,6 @@ linked lists, string formatting and autoresizing, option and config file parsing, type checking casts and more. -libHX aids in quickly writing up C and C++ data processing programs, -by consolidating tasks that often happen to be open-coded, such as -(simple) config file reading, option parsing, directory traversal, -and others, into a library. The focus is on reducing the amount of -time (and secondarily, the amount of code) a developer has to spend -for otherwise implementing such. - %package devel Summary: Development for libHX, a routines collection for C and C++ programming Group: Development/Libraries/C and C++ @@ -68,13 +61,10 @@ linked lists, string formatting and autoresizing, option and config file parsing, type checking casts and more. +This subpackage contains the header files. + %prep -%if 0%{?__xz:1} %setup -q -%else -tar -xf "%{S:0}" --use=xz; -%setup -DTq -%endif %build mkdir obj ++++++ libHX-3.23.tar.xz -> libHX-3.24.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-3.23/configure new/libHX-3.24/configure --- old/libHX-3.23/configure 2018-08-28 10:07:29.281048985 +0200 +++ new/libHX-3.24/configure 2018-10-17 21:17:18.238548254 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libHX 3.23. +# Generated by GNU Autoconf 2.69 for libHX 3.24. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -587,8 +587,8 @@ # Identity of this package. PACKAGE_NAME='libHX' PACKAGE_TARNAME='libhx' -PACKAGE_VERSION='3.23' -PACKAGE_STRING='libHX 3.23' +PACKAGE_VERSION='3.24' +PACKAGE_STRING='libHX 3.24' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -1342,7 +1342,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libHX 3.23 to adapt to many kinds of systems. +\`configure' configures libHX 3.24 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1412,7 +1412,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libHX 3.23:";; + short | recursive ) echo "Configuration of libHX 3.24:";; esac cat <<\_ACEOF @@ -1527,7 +1527,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libHX configure 3.23 +libHX configure 3.24 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2253,7 +2253,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libHX $as_me 3.23, which was +It was created by libHX $as_me 3.24, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -3119,7 +3119,7 @@ # Define the identity of the package. PACKAGE='libhx' - VERSION='3.23' + VERSION='3.24' cat >>confdefs.h <<_ACEOF @@ -17720,7 +17720,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libHX $as_me 3.23, which was +This file was extended by libHX $as_me 3.24, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -17786,7 +17786,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libHX config.status 3.23 +libHX config.status 3.24 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-3.23/configure.ac new/libHX-3.24/configure.ac --- old/libHX-3.23/configure.ac 2018-08-28 10:07:09.000000000 +0200 +++ new/libHX-3.24/configure.ac 2018-10-17 21:15:39.000000000 +0200 @@ -1,4 +1,4 @@ -AC_INIT([libHX], [3.23]) +AC_INIT([libHX], [3.24]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_MACRO_DIR([m4]) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-3.23/doc/changelog.txt new/libHX-3.24/doc/changelog.txt --- old/libHX-3.23/doc/changelog.txt 2018-08-28 10:07:09.000000000 +0200 +++ new/libHX-3.24/doc/changelog.txt 2018-10-17 21:15:39.000000000 +0200 @@ -1,5 +1,12 @@ +v3.24 (2018-10-17) +================== +Fixes: +- defs: avoid compiler warning when using HX_list_for_each when used in C++ +- opt: synchronize HXOPT_AUTOHELP C behavior to C++ mode + + v3.23 (2018-08-28) ================== Enhancements: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-3.23/doc/libHX_Documentation.lyx new/libHX-3.24/doc/libHX_Documentation.lyx --- old/libHX-3.23/doc/libHX_Documentation.lyx 2018-08-28 10:07:09.000000000 +0200 +++ new/libHX-3.24/doc/libHX_Documentation.lyx 2018-10-17 21:15:39.000000000 +0200 @@ -91,7 +91,7 @@ \begin_body \begin_layout Title -libHX 3.23 +libHX 3.24 \begin_inset Newline newline \end_inset Binary files old/libHX-3.23/doc/libHX_Documentation.pdf and new/libHX-3.24/doc/libHX_Documentation.pdf differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-3.23/include/libHX/list.h new/libHX-3.24/include/libHX/list.h --- old/libHX-3.23/include/libHX/list.h 2018-08-28 10:07:09.000000000 +0200 +++ new/libHX-3.24/include/libHX/list.h 2018-10-17 21:15:39.000000000 +0200 @@ -63,37 +63,37 @@ } #define HXlist_for_each(pos, head) \ - for ((pos) = (head)->next; (pos) != static_cast(void *, (head)); \ + for ((pos) = (head)->next; (pos) != static_cast(const void *, (head)); \ (pos) = (pos)->next) #define HXlist_for_each_rev(pos, head) \ - for ((pos) = (head)->prev; (pos) != static_cast(void *, (head)); \ + for ((pos) = (head)->prev; (pos) != static_cast(const void *, (head)); \ (pos) = (pos)->prev) #define HXlist_for_each_safe(pos, n, head) \ for ((pos) = (head)->next, (n) = (pos)->next; \ - (pos) != static_cast(void *, (head)); \ + (pos) != static_cast(const void *, (head)); \ (pos) = (n), (n) = (pos)->next) #define HXlist_for_each_rev_safe(pos, n, head) \ for ((pos) = (head)->prev, (n) = (pos)->prev; \ - (pos) != static_cast(void *, (head)); \ + (pos) != static_cast(const void *, (head)); \ (pos) = (n), (n) = (pos)->prev) #define HXlist_for_each_entry(pos, head, member) \ for ((pos) = HXlist_entry((head)->next, __typeof__(*(pos)), member); \ - &(pos)->member != static_cast(void *, (head)); \ + &(pos)->member != static_cast(const void *, (head)); \ (pos) = HXlist_entry((pos)->member.next, __typeof__(*(pos)), member)) #define HXlist_for_each_entry_rev(pos, head, member) \ for ((pos) = HXlist_entry((head)->prev, __typeof__(*(pos)), member); \ - &(pos)->member != static_cast(void *, (head)); \ + &(pos)->member != static_cast(const void *, (head)); \ (pos) = HXlist_entry((pos)->member.prev, __typeof__(*(pos)), member)) #define HXlist_for_each_entry_safe(pos, n, head, member) \ for ((pos) = HXlist_entry((head)->next, __typeof__(*(pos)), member), \ (n) = HXlist_entry((pos)->member.next, __typeof__(*(pos)), member); \ - &(pos)->member != static_cast(void *, (head)); \ + &(pos)->member != static_cast(const void *, (head)); \ (pos) = (n), (n) = HXlist_entry((n)->member.next, __typeof__(*(n)), \ member)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-3.23/include/libHX/option.h new/libHX-3.24/include/libHX/option.h --- old/libHX-3.23/include/libHX/option.h 2018-08-28 10:07:09.000000000 +0200 +++ new/libHX-3.24/include/libHX/option.h 2018-10-17 21:15:39.000000000 +0200 @@ -254,8 +254,10 @@ # define HXOPT_TABLEEND {.type = HXTYPE_XSNTMARK} #else # define HXOPT_AUTOHELP \ - {NULL, '?', HXTYPE_XHELP, NULL, NULL, HX_getopt_help_cb, \ - 0, "Show this help message"} + {"help", '?', HXTYPE_XHELP, NULL, NULL, HX_getopt_help_cb, \ + 0, "Show this help message"}, \ + {"usage", 0, HXTYPE_NONE, NULL, NULL, HX_getopt_usage_cb, \ + 0, "Display brief usage message"} # define HXOPT_TABLEEND {NULL, 0, HXTYPE_XSNTMARK} #endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libHX-3.23/src/opt.c new/libHX-3.24/src/opt.c --- old/libHX-3.23/src/opt.c 2018-08-28 10:07:09.000000000 +0200 +++ new/libHX-3.24/src/opt.c 2018-10-17 21:15:39.000000000 +0200 @@ -304,22 +304,20 @@ buf[i++] = opt->sh; if (!takes_void(opt->type)) i += snprintf(buf + i, len - i, " %s", htyp); + } else if (opt->sh == '\0') { + if (takes_void(opt->type)) + i += snprintf(buf + i, len - i, + "--%s", opt->ln); + else + i += snprintf(buf + i, len - i, + "--%s=%s", opt->ln, htyp); } else { - if (opt->sh == '\0') { - if (takes_void(opt->type)) - i += snprintf(buf + i, len - i, - "--%s", opt->ln); - else - i += snprintf(buf + i, len - i, - "--%s=%s", opt->ln, htyp); - } else { - if (takes_void(opt->type)) - i += snprintf(buf + i, len - i, "-%c%s--%s", - opt->sh, alt, opt->ln); - else - i += snprintf(buf + i, len - i, "-%c%s--%s%c%s", - opt->sh, alt, opt->ln, equ, htyp); - } + if (takes_void(opt->type)) + i += snprintf(buf + i, len - i, "-%c%s--%s", + opt->sh, alt, opt->ln); + else + i += snprintf(buf + i, len - i, "-%c%s--%s%c%s", + opt->sh, alt, opt->ln, equ, htyp); } if (flags & W_BRACKET)
