Hello community, here is the log from the commit of package libfilezilla for openSUSE:Factory checked in at 2016-05-30 09:58:04 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libfilezilla (Old) and /work/SRC/openSUSE:Factory/.libfilezilla.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libfilezilla" Changes: -------- --- /work/SRC/openSUSE:Factory/libfilezilla/libfilezilla.changes 2016-05-14 12:23:38.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.libfilezilla.new/libfilezilla.changes 2016-05-30 09:58:08.000000000 +0200 @@ -1,0 +2,10 @@ +Sat May 28 09:12:49 UTC 2016 - ec...@opensuse.org + +- update to 0.5.2 + * New features: + - Add fz::shared_optional::is_same that checks whether + two instances share the same underlying pointer value, like + a shallow equal. + - Add fz::int_to_hex_char as reverse to fz::hex_char_to_int + +------------------------------------------------------------------- Old: ---- libfilezilla-0.5.1.tar.bz2 New: ---- libfilezilla-0.5.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libfilezilla.spec ++++++ --- /var/tmp/diff_new_pack.5uz1wP/_old 2016-05-30 09:58:09.000000000 +0200 +++ /var/tmp/diff_new_pack.5uz1wP/_new 2016-05-30 09:58:09.000000000 +0200 @@ -20,7 +20,7 @@ %define libname %{name}%{major} %define develname %{name}-devel Name: libfilezilla -Version: 0.5.1 +Version: 0.5.2 Release: 0 Summary: C++ library for filezilla License: GPL-2.0+ ++++++ libfilezilla-0.5.1.tar.bz2 -> libfilezilla-0.5.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.5.1/NEWS new/libfilezilla-0.5.2/NEWS --- old/libfilezilla-0.5.1/NEWS 2016-05-09 17:30:15.000000000 +0200 +++ new/libfilezilla-0.5.2/NEWS 2016-05-20 18:35:50.000000000 +0200 @@ -1,3 +1,8 @@ +0.5.2 (2016-05-20) + ++ Add fz::shared_optional::is_same that checks whether two instances share the same underlying pointer value, like a shallow equal. ++ Add fz::int_to_hex_char as reverse to fz::hex_char_to_int + 0.5.1 (2016-05-09) + Add constructore to sparse_optional taking pointers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.5.1/configure new/libfilezilla-0.5.2/configure --- old/libfilezilla-0.5.1/configure 2016-05-09 17:31:41.000000000 +0200 +++ new/libfilezilla-0.5.2/configure 2016-05-20 18:37:02.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libfilezilla 0.5.1. +# Generated by GNU Autoconf 2.69 for libfilezilla 0.5.2. # # Report bugs to <tim.ko...@filezilla-project.org>. # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='libfilezilla' PACKAGE_TARNAME='libfilezilla' -PACKAGE_VERSION='0.5.1' -PACKAGE_STRING='libfilezilla 0.5.1' +PACKAGE_VERSION='0.5.2' +PACKAGE_STRING='libfilezilla 0.5.2' PACKAGE_BUGREPORT='tim.ko...@filezilla-project.org' PACKAGE_URL='https://lib.filezilla-project.org/' @@ -1395,7 +1395,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 libfilezilla 0.5.1 to adapt to many kinds of systems. +\`configure' configures libfilezilla 0.5.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1465,7 +1465,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libfilezilla 0.5.1:";; + short | recursive ) echo "Configuration of libfilezilla 0.5.2:";; esac cat <<\_ACEOF @@ -1589,7 +1589,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libfilezilla configure 0.5.1 +libfilezilla configure 0.5.2 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2034,7 +2034,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libfilezilla $as_me 0.5.1, which was +It was created by libfilezilla $as_me 0.5.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2900,7 +2900,7 @@ # Define the identity of the package. PACKAGE='libfilezilla' - VERSION='0.5.1' + VERSION='0.5.2' cat >>confdefs.h <<_ACEOF @@ -19461,7 +19461,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libfilezilla $as_me 0.5.1, which was +This file was extended by libfilezilla $as_me 0.5.2, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -19528,7 +19528,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libfilezilla config.status 0.5.1 +libfilezilla config.status 0.5.2 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/libfilezilla-0.5.1/configure.ac new/libfilezilla-0.5.2/configure.ac --- old/libfilezilla-0.5.1/configure.ac 2016-05-09 17:29:21.000000000 +0200 +++ new/libfilezilla-0.5.2/configure.ac 2016-05-20 18:36:02.000000000 +0200 @@ -1,4 +1,4 @@ -AC_INIT([libfilezilla],[0.5.1],[tim.ko...@filezilla-project.org],[],[https://lib.filezilla-project.org/]) +AC_INIT([libfilezilla],[0.5.2],[tim.ko...@filezilla-project.org],[],[https://lib.filezilla-project.org/]) AC_CONFIG_HEADERS([lib/libfilezilla/private/config.hpp]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR(config) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.5.1/lib/libfilezilla/shared.hpp new/libfilezilla-0.5.2/lib/libfilezilla/shared.hpp --- old/libfilezilla-0.5.1/lib/libfilezilla/shared.hpp 2016-02-21 11:35:46.000000000 +0100 +++ new/libfilezilla-0.5.2/lib/libfilezilla/shared.hpp 2016-05-20 18:31:53.000000000 +0200 @@ -31,7 +31,12 @@ void clear(); - /// Gets a reference to the stored object. A new object is created it if is not set. + /** + * \brief Gets a reference to the stored object. + * + * A new object is created it if is not set. + * Returned reference is unique, it is not shared. + */ T& get(); const T& operator*() const; @@ -50,6 +55,9 @@ bool operator<(shared_optional<T, Init> const& cmp) const; bool operator<(T const& cmp) const; + /// Only compares the pointers + bool is_same(shared_optional<T, Init> const& cmp) const; + inline bool operator!=(const shared_optional<T, Init>& cmp) const { return !(*this == cmp); } inline bool operator!=(T const& cmp) const { return !(*this == cmp); } /// \} @@ -105,6 +113,11 @@ return *data_ == cmp; } +template<typename T, bool Init> bool shared_optional<T, Init>::is_same(shared_optional<T, Init> const& cmp) const +{ + return data_ == cmp.data_; +} + template<typename T, bool Init> T& shared_optional<T, Init>::get() { if (!Init && !data_) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.5.1/lib/libfilezilla/string.hpp new/libfilezilla-0.5.2/lib/libfilezilla/string.hpp --- old/libfilezilla-0.5.1/lib/libfilezilla/string.hpp 2016-01-31 11:35:01.000000000 +0100 +++ new/libfilezilla-0.5.2/lib/libfilezilla/string.hpp 2016-05-20 18:31:53.000000000 +0200 @@ -47,7 +47,7 @@ /** \brief Locale-sensitive stricmp * - * Like std::string::strcmp but case-insensitive, respectinge locale. + * Like std::string::strcmp but case-insensitive, respecting locale. * * \note does not handle embedded null */ @@ -164,6 +164,23 @@ return c - '0'; } +/** \brief Converts an integer to the corresponding lowercase hex digit +* +* Example: 9 becomes '9', 11 becomes 'b' +* +* Undefined output if input is less than 0 or larger than 15 +*/ +template<typename Char = char> +Char int_to_hex_char(int d) +{ + if (d > 9) { + return 'a' + d - 10; + } + else { + return '0' + d; + } +} + /** \brief Convert integer to string. */ template<typename String, typename Int> inline typename std::enable_if<std::is_same<String, std::string>::value, std::string>::type diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.5.1/lib/libfilezilla/version.hpp new/libfilezilla-0.5.2/lib/libfilezilla/version.hpp --- old/libfilezilla-0.5.1/lib/libfilezilla/version.hpp 2016-05-09 17:31:43.000000000 +0200 +++ new/libfilezilla-0.5.2/lib/libfilezilla/version.hpp 2016-05-20 18:37:04.000000000 +0200 @@ -9,15 +9,15 @@ #include <tuple> /// \brief Version string of the libfilezilla headers -#define LIBFILEZILLA_VERSION "0.5.1" +#define LIBFILEZILLA_VERSION "0.5.2" #define LIBFILEZILLA_VERSION_MAJOR 0 #define LIBFILEZILLA_VERSION_MINOR 5 -#define LIBFILEZILLA_VERSION_MICRO 1 +#define LIBFILEZILLA_VERSION_MICRO 2 #define LIBFILEZILLA_VERSION_NANO 0 /// \brief Suffix string, e.g. "rc1" -#define LIBFILEZILLA_VERSION_SUFFIX "0.5.1" +#define LIBFILEZILLA_VERSION_SUFFIX "0.5.2" namespace fz { /// \brief Get version string of libfilezilla diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.5.1/tests/dispatch.cpp new/libfilezilla-0.5.2/tests/dispatch.cpp --- old/libfilezilla-0.5.1/tests/dispatch.cpp 2015-11-02 14:47:31.000000000 +0100 +++ new/libfilezilla-0.5.2/tests/dispatch.cpp 2016-05-20 18:31:53.000000000 +0200 @@ -22,7 +22,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION(DispatchTest); namespace { -struct target { +struct dispatch_target { void a() { ++a_; } void b() { ++b_; } @@ -54,14 +54,14 @@ void DispatchTest::testSingle() { - target t; + dispatch_target t; T1 const t1{}; - CPPUNIT_ASSERT(fz::dispatch<T1>(t1, &t, &target::a)); - CPPUNIT_ASSERT(fz::dispatch<T1>(t1, &t, &target::b)); + CPPUNIT_ASSERT(fz::dispatch<T1>(t1, &t, &dispatch_target::a)); + CPPUNIT_ASSERT(fz::dispatch<T1>(t1, &t, &dispatch_target::b)); T2 const t2{}; - CPPUNIT_ASSERT(!fz::dispatch<T1>(t2, &t, &target::b)); + CPPUNIT_ASSERT(!fz::dispatch<T1>(t2, &t, &dispatch_target::b)); CPPUNIT_ASSERT_EQUAL(t.a_, 1); CPPUNIT_ASSERT_EQUAL(t.b_, 1); @@ -69,13 +69,13 @@ void DispatchTest::testArgs() { - target t; + dispatch_target t; T4 const t4(1, 5); - CPPUNIT_ASSERT(fz::dispatch<T4>(t4, &t, &target::two)); + CPPUNIT_ASSERT(fz::dispatch<T4>(t4, &t, &dispatch_target::two)); T3 const t3{}; - CPPUNIT_ASSERT(!fz::dispatch<T4>(t3, &t, &target::two)); + CPPUNIT_ASSERT(!fz::dispatch<T4>(t3, &t, &dispatch_target::two)); CPPUNIT_ASSERT_EQUAL(t.a_, 1); CPPUNIT_ASSERT_EQUAL(t.b_, 5); @@ -83,23 +83,23 @@ void DispatchTest::testMultiple() { - target t; + dispatch_target t; T1 const t1{}; T2 const t2{}; T3 const t3{}; T4 const t4(3, 8); - CPPUNIT_ASSERT((fz::dispatch<T1, T2, T3>(t1, &t, &target::a, &target::b, &target::c))); - CPPUNIT_ASSERT((fz::dispatch<T1, T2, T3>(t2, &t, &target::a, &target::b, &target::c))); - CPPUNIT_ASSERT((fz::dispatch<T1, T2, T3>(t3, &t, &target::a, &target::b, &target::c))); - CPPUNIT_ASSERT((!fz::dispatch<T1, T2, T3>(t4, &t, &target::a, &target::b, &target::c))); + CPPUNIT_ASSERT((fz::dispatch<T1, T2, T3>(t1, &t, &dispatch_target::a, &dispatch_target::b, &dispatch_target::c))); + CPPUNIT_ASSERT((fz::dispatch<T1, T2, T3>(t2, &t, &dispatch_target::a, &dispatch_target::b, &dispatch_target::c))); + CPPUNIT_ASSERT((fz::dispatch<T1, T2, T3>(t3, &t, &dispatch_target::a, &dispatch_target::b, &dispatch_target::c))); + CPPUNIT_ASSERT((!fz::dispatch<T1, T2, T3>(t4, &t, &dispatch_target::a, &dispatch_target::b, &dispatch_target::c))); CPPUNIT_ASSERT_EQUAL(t.a_, 1); CPPUNIT_ASSERT_EQUAL(t.b_, 1); CPPUNIT_ASSERT_EQUAL(t.c_, 1); - CPPUNIT_ASSERT((fz::dispatch<T1, T4>(t4, &t, &target::a, &target::two))); + CPPUNIT_ASSERT((fz::dispatch<T1, T4>(t4, &t, &dispatch_target::a, &dispatch_target::two))); CPPUNIT_ASSERT_EQUAL(t.a_, 4); CPPUNIT_ASSERT_EQUAL(t.b_, 9);