From 5070db19f82c59353c86b3d43d81f309cdaab250 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 23 Dec 2020 10:00:35 +0100 Subject: [PATCH] Revert "semver: 1.0 -> 1" This reverts commit 3ffc968aaf182bf1ff1e18157c7bde2bdb41668d and 3ffc968aaf182bf1ff1e18157c7bde2bdb41668d. --- CMake/InstallPublicHeaders.cmake | 4 +- CMakeVersions.txt | 8 +- ChangeLog-1.1.md | 4 - contrib/bin/memaslap/ms_conn.h | 2 +- docs/source/ChangeLog-1.1.rst | 6 - docs/source/libmemcached/versioning.rst | 12 +- example/interface_v0.cc | 2 +- example/interface_v1.cc | 2 +- example/memcached_light.cc | 2 +- include/CMakeLists.txt | 26 +--- include/libhashkit-1.0 | 1 - .../CMakeLists.txt | 2 +- .../algorithm.h | 0 .../basic_string.h | 0 .../behavior.h | 0 .../configure.h.in | 0 .../{libhashkit-1 => libhashkit-1.0}/digest.h | 0 .../function.h | 0 .../{libhashkit-1 => libhashkit-1.0}/has.h | 0 .../hashkit.h | 22 +-- .../hashkit.hpp | 2 +- .../str_algorithm.h | 0 .../strerror.h | 0 .../{libhashkit-1 => libhashkit-1.0}/string.h | 0 .../{libhashkit-1 => libhashkit-1.0}/types.h | 0 .../visibility.h | 0 include/libmemcached-1.0 | 1 - .../CMakeLists.txt | 2 +- .../alloc.h | 0 .../allocators.h | 0 .../analyze.h | 2 +- .../auto.h | 0 .../basic_string.h | 0 .../behavior.h | 0 .../callback.h | 0 .../callbacks.h | 0 .../configure.h.in | 0 .../defaults.h | 0 .../delete.h | 0 .../deprecated_types.h | 0 .../dump.h | 0 .../encoding_key.h | 0 .../error.h | 0 .../exception.hpp | 0 .../exist.h | 0 .../fetch.h | 0 .../flush.h | 0 .../flush_buffers.h | 0 .../get.h | 0 .../hash.h | 0 .../limits.h | 0 .../memcached.h | 126 +++++++++--------- .../memcached.hpp | 2 +- .../options.h | 0 .../parse.h | 0 .../platform.h | 2 +- .../quit.h | 0 .../result.h | 2 +- .../return.h | 0 .../sasl.h | 2 +- .../server.h | 2 +- .../server_list.h | 0 .../stats.h | 2 +- .../storage.h | 0 .../strerror.h | 0 .../struct/CMakeLists.txt | 2 +- .../struct/allocator.h | 0 .../struct/analysis.h | 0 .../struct/callback.h | 0 .../struct/memcached.h | 0 .../struct/result.h | 0 .../struct/sasl.h | 0 .../struct/server.h | 2 +- .../struct/stat.h | 0 .../struct/string.h | 0 .../touch.h | 0 .../triggers.h | 0 .../types.h | 0 .../types/CMakeLists.txt | 2 +- .../types/behavior.h | 0 .../types/callback.h | 0 .../types/connection.h | 0 .../types/hash.h | 0 .../types/return.h | 0 .../types/server_distribution.h | 0 .../verbosity.h | 0 .../version.h | 0 .../visibility.h | 0 include/libmemcachedprotocol-0.0 | 1 - .../CMakeLists.txt | 2 +- .../binary.h | 2 +- .../callback.h | 0 .../handler.h | 8 +- .../vbucket.h | 0 include/libmemcachedutil-1.0 | 1 - .../CMakeLists.txt | 2 +- .../flush.h | 0 .../ostream.hpp | 0 .../pid.h | 0 .../ping.h | 0 .../pool.h | 2 +- .../util.h | 12 +- .../version.h | 0 src/bin/memcapable.cc | 4 +- src/bin/memparse.cc | 2 +- src/libhashkit/common.h | 2 +- src/libhashkit/hashkit.h | 2 +- src/libmemcached/common.h | 4 +- src/libmemcached/memcached.h | 2 +- src/libmemcached/memcached.hpp | 2 +- src/libmemcached/util.h | 2 +- src/libmemcachedprotocol/common.h | 2 +- src/libmemcachedutil/common.h | 2 +- src/p9y/gettimeofday.hpp | 2 +- src/p9y/poll.hpp | 2 +- src/p9y/socket.hpp | 2 +- src/win32/wrappers.h | 104 +++++++++++++++ support/ax_libmemcached.m4 | 16 +-- test/tests/hashkit/basic.cpp | 2 +- .../memcached/regression/lp_000-962-815.cpp | 2 +- test/tests/memcached/util_pool_thread.cpp | 2 +- 121 files changed, 252 insertions(+), 178 deletions(-) delete mode 120000 include/libhashkit-1.0 rename include/{libhashkit-1 => libhashkit-1.0}/CMakeLists.txt (88%) rename include/{libhashkit-1 => libhashkit-1.0}/algorithm.h (100%) rename include/{libhashkit-1 => libhashkit-1.0}/basic_string.h (100%) rename include/{libhashkit-1 => libhashkit-1.0}/behavior.h (100%) rename include/{libhashkit-1 => libhashkit-1.0}/configure.h.in (100%) rename include/{libhashkit-1 => libhashkit-1.0}/digest.h (100%) rename include/{libhashkit-1 => libhashkit-1.0}/function.h (100%) rename include/{libhashkit-1 => libhashkit-1.0}/has.h (100%) rename include/{libhashkit-1 => libhashkit-1.0}/hashkit.h (83%) rename include/{libhashkit-1 => libhashkit-1.0}/hashkit.hpp (98%) rename include/{libhashkit-1 => libhashkit-1.0}/str_algorithm.h (100%) rename include/{libhashkit-1 => libhashkit-1.0}/strerror.h (100%) rename include/{libhashkit-1 => libhashkit-1.0}/string.h (100%) rename include/{libhashkit-1 => libhashkit-1.0}/types.h (100%) rename include/{libhashkit-1 => libhashkit-1.0}/visibility.h (100%) delete mode 120000 include/libmemcached-1.0 rename include/{libmemcached-1 => libmemcached-1.0}/CMakeLists.txt (97%) rename include/{libmemcached-1 => libmemcached-1.0}/alloc.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/allocators.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/analyze.h (96%) rename include/{libmemcached-1 => libmemcached-1.0}/auto.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/basic_string.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/behavior.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/callback.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/callbacks.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/configure.h.in (100%) rename include/{libmemcached-1 => libmemcached-1.0}/defaults.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/delete.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/deprecated_types.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/dump.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/encoding_key.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/error.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/exception.hpp (100%) rename include/{libmemcached-1 => libmemcached-1.0}/exist.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/fetch.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/flush.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/flush_buffers.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/get.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/hash.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/limits.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/memcached.h (50%) rename include/{libmemcached-1 => libmemcached-1.0}/memcached.hpp (99%) rename include/{libmemcached-1 => libmemcached-1.0}/options.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/parse.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/platform.h (97%) rename include/{libmemcached-1 => libmemcached-1.0}/quit.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/result.h (98%) rename include/{libmemcached-1 => libmemcached-1.0}/return.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/sasl.h (97%) rename include/{libmemcached-1 => libmemcached-1.0}/server.h (98%) rename include/{libmemcached-1 => libmemcached-1.0}/server_list.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/stats.h (97%) rename include/{libmemcached-1 => libmemcached-1.0}/storage.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/strerror.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/struct/CMakeLists.txt (85%) rename include/{libmemcached-1 => libmemcached-1.0}/struct/allocator.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/struct/analysis.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/struct/callback.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/struct/memcached.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/struct/result.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/struct/sasl.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/struct/server.h (98%) rename include/{libmemcached-1 => libmemcached-1.0}/struct/stat.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/struct/string.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/touch.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/triggers.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/types.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/types/CMakeLists.txt (83%) rename include/{libmemcached-1 => libmemcached-1.0}/types/behavior.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/types/callback.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/types/connection.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/types/hash.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/types/return.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/types/server_distribution.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/verbosity.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/version.h (100%) rename include/{libmemcached-1 => libmemcached-1.0}/visibility.h (100%) delete mode 120000 include/libmemcachedprotocol-0.0 rename include/{libmemcachedprotocol-0 => libmemcachedprotocol-0.0}/CMakeLists.txt (75%) rename include/{libmemcachedprotocol-0 => libmemcachedprotocol-0.0}/binary.h (99%) rename include/{libmemcachedprotocol-0 => libmemcachedprotocol-0.0}/callback.h (100%) rename include/{libmemcachedprotocol-0 => libmemcachedprotocol-0.0}/handler.h (97%) rename include/{libmemcachedprotocol-0 => libmemcachedprotocol-0.0}/vbucket.h (100%) delete mode 120000 include/libmemcachedutil-1.0 rename include/{libmemcachedutil-1 => libmemcachedutil-1.0}/CMakeLists.txt (83%) rename include/{libmemcachedutil-1 => libmemcachedutil-1.0}/flush.h (100%) rename include/{libmemcachedutil-1 => libmemcachedutil-1.0}/ostream.hpp (100%) rename include/{libmemcachedutil-1 => libmemcachedutil-1.0}/pid.h (100%) rename include/{libmemcachedutil-1 => libmemcachedutil-1.0}/ping.h (100%) rename include/{libmemcachedutil-1 => libmemcachedutil-1.0}/pool.h (98%) rename include/{libmemcachedutil-1 => libmemcachedutil-1.0}/util.h (79%) rename include/{libmemcachedutil-1 => libmemcachedutil-1.0}/version.h (100%) create mode 100644 src/win32/wrappers.h diff --git a/CMake/InstallPublicHeaders.cmake b/CMake/InstallPublicHeaders.cmake index ae2fa711..05629d67 100644 --- a/CMake/InstallPublicHeaders.cmake +++ b/CMake/InstallPublicHeaders.cmake @@ -23,8 +23,8 @@ function(install_public_headers DIRECTORY) string(TOUPPER ${LIBRARY} LIBRARY_UCASE) math(EXPR DASH "${DASH} + 1") string(SUBSTRING ${TOP} ${DASH} -1 VERSION) - if(NOT ${LIBRARY_UCASE}_VERSION_MAJOR VERSION_EQUAL ${VERSION}) - message(SEND_ERROR "${LIBRARY} public include directory version ${VERSION} != " ${${LIBRARY_UCASE}_VERSION_MAJOR}) + if(NOT ${LIBRARY_UCASE}_VERSION_INC VERSION_EQUAL ${VERSION}) + message(SEND_ERROR "${LIBRARY} public include directory version ${VERSION} != " ${${LIBRARY_UCASE}_VERSION_INC}) set(ENV{INVALID_CONFIGURATION} 1) endif() endif() diff --git a/CMakeVersions.txt b/CMakeVersions.txt index 965c1106..aa77bdaa 100644 --- a/CMakeVersions.txt +++ b/CMakeVersions.txt @@ -22,10 +22,11 @@ endfunction() # set(LIBMEMCACHED_VERSION_MAJOR 1) -set(LIBMEMCACHED_VERSION_MINOR 1) -set(LIBMEMCACHED_VERSION_PATCH 0) +set(LIBMEMCACHED_VERSION_MINOR 0) +set(LIBMEMCACHED_VERSION_PATCH 99) set(LIBMEMCACHED_VERSION ${LIBMEMCACHED_VERSION_MAJOR}.${LIBMEMCACHED_VERSION_MINOR}.${LIBMEMCACHED_VERSION_PATCH}) +set(LIBMEMCACHED_VERSION_INC ${LIBMEMCACHED_VERSION_MAJOR}.${LIBMEMCACHED_VERSION_MINOR}) to_hex(LIBMEMCACHED_VERSION_HEX ${LIBMEMCACHED_VERSION_MAJOR} ${LIBMEMCACHED_VERSION_MINOR} ${LIBMEMCACHED_VERSION_PATCH}) # libmemcached.so @@ -45,6 +46,7 @@ set(LIBMEMCACHEDUTIL_VERSION_MINOR 0) set(LIBMEMCACHEDUTIL_VERSION_PATCH 0) set(LIBMEMCACHEDUTIL_VERSION ${LIBMEMCACHEDUTIL_VERSION_MAJOR}.${LIBMEMCACHEDUTIL_VERSION_MINOR}.${LIBMEMCACHEDUTIL_VERSION_PATCH}) +set(LIBMEMCACHEDUTIL_VERSION_INC ${LIBMEMCACHEDUTIL_VERSION_MAJOR}.${LIBMEMCACHEDUTIL_VERSION_MINOR}) to_hex(LIBMEMCACHEDUTIL_VERSION_HEX ${LIBMEMCACHEDUTIL_VERSION_MAJOR} ${LIBMEMCACHEDUTIL_VERSION_MINOR} ${LIBMEMCACHEDUTIL_VERSION_PATCH}) # libmemcachedutil.so @@ -64,6 +66,7 @@ set(LIBMEMCACHEDPROTOCOL_VERSION_MINOR 0) set(LIBMEMCACHEDPROTOCOL_VERSION_PATCH 0) set(LIBMEMCACHEDPROTOCOL_VERSION ${LIBMEMCACHEDPROTOCOL_VERSION_MAJOR}.${LIBMEMCACHEDPROTOCOL_VERSION_MINOR}.${LIBMEMCACHEDPROTOCOL_VERSION_PATCH}) +set(LIBMEMCACHEDPROTOCOL_VERSION_INC ${LIBMEMCACHEDPROTOCOL_VERSION_MAJOR}.${LIBMEMCACHEDPROTOCOL_VERSION_MINOR}) to_hex(LIBMEMCACHEDPROTOCOL_VERSION_HEX ${LIBMEMCACHEDPROTOCOL_VERSION_MAJOR} ${LIBMEMCACHEDPROTOCOL_VERSION_MINOR} ${LIBMEMCACHEDPROTOCOL_VERSION_PATCH}) # libmemcachedprotocol.so @@ -83,6 +86,7 @@ set(LIBHASHKIT_VERSION_MINOR 0) set(LIBHASHKIT_VERSION_PATCH 0) set(LIBHASHKIT_VERSION ${LIBHASHKIT_VERSION_MAJOR}.${LIBHASHKIT_VERSION_MINOR}.${LIBHASHKIT_VERSION_PATCH}) +set(LIBHASHKIT_VERSION_INC ${LIBHASHKIT_VERSION_MAJOR}.${LIBHASHKIT_VERSION_MINOR}) to_hex(LIBHASHKIT_VERSION_HEX ${LIBHASHKIT_VERSION_MAJOR} ${LIBHASHKIT_VERSION_MINOR} ${LIBHASHKIT_VERSION_PATCH}) # libhashkit.so diff --git a/ChangeLog-1.1.md b/ChangeLog-1.1.md index de38ca82..3001d4c9 100644 --- a/ChangeLog-1.1.md +++ b/ChangeLog-1.1.md @@ -13,10 +13,6 @@ was incremented due to the following changes: * Build requires C++11 compiler support. * Tests require C++17 compiler support. * Moved to the Semantic Versioning Specification: https://semver.org - * Public include directories have been renamed from `${lib}-${major}.${minor}` - to `${lib}-${major}` due to having the minor version (always having been 0 - in this case) in the public interface being unreasonable when using semantic - versioning. Symbolic links are provided for backwards compatibility, though. * Moved the project from launchpad to github: * Source: https://github.com/m6w6/libmemcached * Documentation: https://m6w6.github.io/libmemcached diff --git a/contrib/bin/memaslap/ms_conn.h b/contrib/bin/memaslap/ms_conn.h index e3c4f91e..426eae82 100644 --- a/contrib/bin/memaslap/ms_conn.h +++ b/contrib/bin/memaslap/ms_conn.h @@ -22,7 +22,7 @@ #include #include "ms_task.h" -#include "libmemcachedprotocol-0/binary.h" +#include "libmemcachedprotocol-0.0/binary.h" #ifdef __cplusplus extern "C" { diff --git a/docs/source/ChangeLog-1.1.rst b/docs/source/ChangeLog-1.1.rst index 324ef7b2..3c1d8623 100644 --- a/docs/source/ChangeLog-1.1.rst +++ b/docs/source/ChangeLog-1.1.rst @@ -23,12 +23,6 @@ was incremented due to the following changes: * Build requires C++11 compiler support. * Tests require C++17 compiler support. * Moved to the Semantic Versioning Specification: https://semver.org - - * Public include directories have been renamed from ``${lib}-${major}.${minor}`` - to ``${lib}-${major}`` due to having the minor version (always having been 0 - in this case) in the public interface being unreasonable when using semantic - versioning. Symbolic links are provided for backwards compatibility, though. - * Moved the project from launchpad to github: * Source: https://github.com/m6w6/libmemcached diff --git a/docs/source/libmemcached/versioning.rst b/docs/source/libmemcached/versioning.rst index 161e2d8d..c7e13270 100644 --- a/docs/source/libmemcached/versioning.rst +++ b/docs/source/libmemcached/versioning.rst @@ -1,12 +1,10 @@ libmemcached Versioning ======================= -Libmemcached is laid out by interface version and strives to adhere to the -``Semantic Versioning Specification`` since version ``1.1``. +Libmemcached is laid out by interface version. The 1.0 version would be found +in: ``libmemcached-1.0/memcached.h`` -.. seealso:: - `https://semver.org/ `_ +The historic ``libmemcached/memcached.h`` includes +``libmemcached-1.0/memcached.h``. For best practice you should include the +version of libmemcached that you used during development. -The 1.x version would be found in: ``libmemcached-1/memcached.h``. The historic -``libmemcached/memcached.h`` includes ``libmemcached-1/memcached.h`` and on -previously supported platforms ``libmemcached-1.0`` points to ``libmemcached-1``. diff --git a/example/interface_v0.cc b/example/interface_v0.cc index cf53dded..cf600124 100644 --- a/example/interface_v0.cc +++ b/example/interface_v0.cc @@ -18,7 +18,7 @@ #include #include -#include +#include #include #include "example/memcached_light.h" #include "example/storage.h" diff --git a/example/interface_v1.cc b/example/interface_v1.cc index e0a38355..c6f5bf19 100644 --- a/example/interface_v1.cc +++ b/example/interface_v1.cc @@ -20,7 +20,7 @@ #if HAVE_UNISTD_H # include #endif -#include +#include #include #include "example/memcached_light.h" #include "example/storage.h" diff --git a/example/memcached_light.cc b/example/memcached_light.cc index c76a42c2..714bb16f 100644 --- a/example/memcached_light.cc +++ b/example/memcached_light.cc @@ -25,7 +25,7 @@ #include -#include +#include #include #include #include "example/storage.h" diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 136c23d7..bc3dadc5 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -1,23 +1,5 @@ -add_subdirectory(libhashkit-1) -add_subdirectory(libmemcached-1) -add_subdirectory(libmemcachedutil-1) -add_subdirectory(libmemcachedprotocol-0) - -# v1.0 compatibility -if(NOT WIN32) - file(COPY libhashkit-1.0 DESTINATION .) - file(COPY libmemcached-1.0 DESTINATION .) - file(COPY libmemcachedutil-1.0 DESTINATION .) - file(COPY libmemcachedprotocol-0.0 DESTINATION .) - install(CODE " - file(INSTALL - ${CMAKE_CURRENT_BINARY_DIR}/libhashkit-1.0 - ${CMAKE_CURRENT_BINARY_DIR}/libmemcached-1.0 - ${CMAKE_CURRENT_BINARY_DIR}/libmemcachedutil-1.0 - ${CMAKE_CURRENT_BINARY_DIR}/libmemcachedprotocol-0.0 - DESTINATION \${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}) - " - COMPONENT dev - ) -endif() +add_subdirectory(libhashkit-1.0) +add_subdirectory(libmemcached-1.0) +add_subdirectory(libmemcachedutil-1.0) +add_subdirectory(libmemcachedprotocol-0.0) diff --git a/include/libhashkit-1.0 b/include/libhashkit-1.0 deleted file mode 120000 index 17f4a363..00000000 --- a/include/libhashkit-1.0 +++ /dev/null @@ -1 +0,0 @@ -libhashkit-1 \ No newline at end of file diff --git a/include/libhashkit-1/CMakeLists.txt b/include/libhashkit-1.0/CMakeLists.txt similarity index 88% rename from include/libhashkit-1/CMakeLists.txt rename to include/libhashkit-1.0/CMakeLists.txt index aae1cd11..24fefd57 100644 --- a/include/libhashkit-1/CMakeLists.txt +++ b/include/libhashkit-1.0/CMakeLists.txt @@ -1,5 +1,5 @@ -install_public_headers(libhashkit-1 +install_public_headers(libhashkit-1.0 @configure.h algorithm.h basic_string.h diff --git a/include/libhashkit-1/algorithm.h b/include/libhashkit-1.0/algorithm.h similarity index 100% rename from include/libhashkit-1/algorithm.h rename to include/libhashkit-1.0/algorithm.h diff --git a/include/libhashkit-1/basic_string.h b/include/libhashkit-1.0/basic_string.h similarity index 100% rename from include/libhashkit-1/basic_string.h rename to include/libhashkit-1.0/basic_string.h diff --git a/include/libhashkit-1/behavior.h b/include/libhashkit-1.0/behavior.h similarity index 100% rename from include/libhashkit-1/behavior.h rename to include/libhashkit-1.0/behavior.h diff --git a/include/libhashkit-1/configure.h.in b/include/libhashkit-1.0/configure.h.in similarity index 100% rename from include/libhashkit-1/configure.h.in rename to include/libhashkit-1.0/configure.h.in diff --git a/include/libhashkit-1/digest.h b/include/libhashkit-1.0/digest.h similarity index 100% rename from include/libhashkit-1/digest.h rename to include/libhashkit-1.0/digest.h diff --git a/include/libhashkit-1/function.h b/include/libhashkit-1.0/function.h similarity index 100% rename from include/libhashkit-1/function.h rename to include/libhashkit-1.0/function.h diff --git a/include/libhashkit-1/has.h b/include/libhashkit-1.0/has.h similarity index 100% rename from include/libhashkit-1/has.h rename to include/libhashkit-1.0/has.h diff --git a/include/libhashkit-1/hashkit.h b/include/libhashkit-1.0/hashkit.h similarity index 83% rename from include/libhashkit-1/hashkit.h rename to include/libhashkit-1.0/hashkit.h index 5e01939d..9842f8eb 100644 --- a/include/libhashkit-1/hashkit.h +++ b/include/libhashkit-1.0/hashkit.h @@ -23,17 +23,17 @@ #endif #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include struct hashkit_st { struct hashkit_function_st { diff --git a/include/libhashkit-1/hashkit.hpp b/include/libhashkit-1.0/hashkit.hpp similarity index 98% rename from include/libhashkit-1/hashkit.hpp rename to include/libhashkit-1.0/hashkit.hpp index c178ecc7..1690f15b 100644 --- a/include/libhashkit-1/hashkit.hpp +++ b/include/libhashkit-1.0/hashkit.hpp @@ -15,7 +15,7 @@ #pragma once -#include +#include #include class Hashkit { diff --git a/include/libhashkit-1/str_algorithm.h b/include/libhashkit-1.0/str_algorithm.h similarity index 100% rename from include/libhashkit-1/str_algorithm.h rename to include/libhashkit-1.0/str_algorithm.h diff --git a/include/libhashkit-1/strerror.h b/include/libhashkit-1.0/strerror.h similarity index 100% rename from include/libhashkit-1/strerror.h rename to include/libhashkit-1.0/strerror.h diff --git a/include/libhashkit-1/string.h b/include/libhashkit-1.0/string.h similarity index 100% rename from include/libhashkit-1/string.h rename to include/libhashkit-1.0/string.h diff --git a/include/libhashkit-1/types.h b/include/libhashkit-1.0/types.h similarity index 100% rename from include/libhashkit-1/types.h rename to include/libhashkit-1.0/types.h diff --git a/include/libhashkit-1/visibility.h b/include/libhashkit-1.0/visibility.h similarity index 100% rename from include/libhashkit-1/visibility.h rename to include/libhashkit-1.0/visibility.h diff --git a/include/libmemcached-1.0 b/include/libmemcached-1.0 deleted file mode 120000 index ad6872d6..00000000 --- a/include/libmemcached-1.0 +++ /dev/null @@ -1 +0,0 @@ -libmemcached-1 \ No newline at end of file diff --git a/include/libmemcached-1/CMakeLists.txt b/include/libmemcached-1.0/CMakeLists.txt similarity index 97% rename from include/libmemcached-1/CMakeLists.txt rename to include/libmemcached-1.0/CMakeLists.txt index 4f19a88f..c9b4f7c1 100644 --- a/include/libmemcached-1/CMakeLists.txt +++ b/include/libmemcached-1.0/CMakeLists.txt @@ -3,7 +3,7 @@ add_subdirectory(struct) add_subdirectory(types) install_public_headers( - libmemcached-1 + libmemcached-1.0 @configure.h alloc.h diff --git a/include/libmemcached-1/alloc.h b/include/libmemcached-1.0/alloc.h similarity index 100% rename from include/libmemcached-1/alloc.h rename to include/libmemcached-1.0/alloc.h diff --git a/include/libmemcached-1/allocators.h b/include/libmemcached-1.0/allocators.h similarity index 100% rename from include/libmemcached-1/allocators.h rename to include/libmemcached-1.0/allocators.h diff --git a/include/libmemcached-1/analyze.h b/include/libmemcached-1.0/analyze.h similarity index 96% rename from include/libmemcached-1/analyze.h rename to include/libmemcached-1.0/analyze.h index 58009738..a5c9d45a 100644 --- a/include/libmemcached-1/analyze.h +++ b/include/libmemcached-1.0/analyze.h @@ -13,7 +13,7 @@ +--------------------------------------------------------------------+ */ -#include "libmemcached-1/struct/analysis.h" +#include "libmemcached-1.0/struct/analysis.h" #pragma once diff --git a/include/libmemcached-1/auto.h b/include/libmemcached-1.0/auto.h similarity index 100% rename from include/libmemcached-1/auto.h rename to include/libmemcached-1.0/auto.h diff --git a/include/libmemcached-1/basic_string.h b/include/libmemcached-1.0/basic_string.h similarity index 100% rename from include/libmemcached-1/basic_string.h rename to include/libmemcached-1.0/basic_string.h diff --git a/include/libmemcached-1/behavior.h b/include/libmemcached-1.0/behavior.h similarity index 100% rename from include/libmemcached-1/behavior.h rename to include/libmemcached-1.0/behavior.h diff --git a/include/libmemcached-1/callback.h b/include/libmemcached-1.0/callback.h similarity index 100% rename from include/libmemcached-1/callback.h rename to include/libmemcached-1.0/callback.h diff --git a/include/libmemcached-1/callbacks.h b/include/libmemcached-1.0/callbacks.h similarity index 100% rename from include/libmemcached-1/callbacks.h rename to include/libmemcached-1.0/callbacks.h diff --git a/include/libmemcached-1/configure.h.in b/include/libmemcached-1.0/configure.h.in similarity index 100% rename from include/libmemcached-1/configure.h.in rename to include/libmemcached-1.0/configure.h.in diff --git a/include/libmemcached-1/defaults.h b/include/libmemcached-1.0/defaults.h similarity index 100% rename from include/libmemcached-1/defaults.h rename to include/libmemcached-1.0/defaults.h diff --git a/include/libmemcached-1/delete.h b/include/libmemcached-1.0/delete.h similarity index 100% rename from include/libmemcached-1/delete.h rename to include/libmemcached-1.0/delete.h diff --git a/include/libmemcached-1/deprecated_types.h b/include/libmemcached-1.0/deprecated_types.h similarity index 100% rename from include/libmemcached-1/deprecated_types.h rename to include/libmemcached-1.0/deprecated_types.h diff --git a/include/libmemcached-1/dump.h b/include/libmemcached-1.0/dump.h similarity index 100% rename from include/libmemcached-1/dump.h rename to include/libmemcached-1.0/dump.h diff --git a/include/libmemcached-1/encoding_key.h b/include/libmemcached-1.0/encoding_key.h similarity index 100% rename from include/libmemcached-1/encoding_key.h rename to include/libmemcached-1.0/encoding_key.h diff --git a/include/libmemcached-1/error.h b/include/libmemcached-1.0/error.h similarity index 100% rename from include/libmemcached-1/error.h rename to include/libmemcached-1.0/error.h diff --git a/include/libmemcached-1/exception.hpp b/include/libmemcached-1.0/exception.hpp similarity index 100% rename from include/libmemcached-1/exception.hpp rename to include/libmemcached-1.0/exception.hpp diff --git a/include/libmemcached-1/exist.h b/include/libmemcached-1.0/exist.h similarity index 100% rename from include/libmemcached-1/exist.h rename to include/libmemcached-1.0/exist.h diff --git a/include/libmemcached-1/fetch.h b/include/libmemcached-1.0/fetch.h similarity index 100% rename from include/libmemcached-1/fetch.h rename to include/libmemcached-1.0/fetch.h diff --git a/include/libmemcached-1/flush.h b/include/libmemcached-1.0/flush.h similarity index 100% rename from include/libmemcached-1/flush.h rename to include/libmemcached-1.0/flush.h diff --git a/include/libmemcached-1/flush_buffers.h b/include/libmemcached-1.0/flush_buffers.h similarity index 100% rename from include/libmemcached-1/flush_buffers.h rename to include/libmemcached-1.0/flush_buffers.h diff --git a/include/libmemcached-1/get.h b/include/libmemcached-1.0/get.h similarity index 100% rename from include/libmemcached-1/get.h rename to include/libmemcached-1.0/get.h diff --git a/include/libmemcached-1/hash.h b/include/libmemcached-1.0/hash.h similarity index 100% rename from include/libmemcached-1/hash.h rename to include/libmemcached-1.0/hash.h diff --git a/include/libmemcached-1/limits.h b/include/libmemcached-1.0/limits.h similarity index 100% rename from include/libmemcached-1/limits.h rename to include/libmemcached-1.0/limits.h diff --git a/include/libmemcached-1/memcached.h b/include/libmemcached-1.0/memcached.h similarity index 50% rename from include/libmemcached-1/memcached.h rename to include/libmemcached-1.0/memcached.h index a1d0522f..e3eac4e2 100644 --- a/include/libmemcached-1/memcached.h +++ b/include/libmemcached-1.0/memcached.h @@ -15,71 +15,71 @@ #pragma once -#include "libmemcached-1/configure.h" -#include "libmemcached-1/visibility.h" -#include "libmemcached-1/platform.h" - -#include "libmemcached-1/limits.h" -#include "libmemcached-1/defaults.h" - -#include "libmemcached-1/types/behavior.h" -#include "libmemcached-1/types/callback.h" -#include "libmemcached-1/types/connection.h" -#include "libmemcached-1/types/hash.h" -#include "libmemcached-1/types/return.h" -#include "libmemcached-1/types/server_distribution.h" - -#include "libmemcached-1/return.h" - -#include "libmemcached-1/types.h" -#include "libmemcached-1/callbacks.h" -#include "libmemcached-1/alloc.h" -#include "libmemcached-1/triggers.h" - -#include "libhashkit-1/hashkit.h" - -#include "libmemcached-1/struct/callback.h" -#include "libmemcached-1/struct/string.h" -#include "libmemcached-1/struct/result.h" -#include "libmemcached-1/struct/allocator.h" -#include "libmemcached-1/struct/sasl.h" -#include "libmemcached-1/struct/memcached.h" -#include "libmemcached-1/struct/server.h" -#include "libmemcached-1/struct/stat.h" - -#include "libmemcached-1/basic_string.h" -#include "libmemcached-1/error.h" -#include "libmemcached-1/stats.h" +#include "libmemcached-1.0/configure.h" +#include "libmemcached-1.0/visibility.h" +#include "libmemcached-1.0/platform.h" + +#include "libmemcached-1.0/limits.h" +#include "libmemcached-1.0/defaults.h" + +#include "libmemcached-1.0/types/behavior.h" +#include "libmemcached-1.0/types/callback.h" +#include "libmemcached-1.0/types/connection.h" +#include "libmemcached-1.0/types/hash.h" +#include "libmemcached-1.0/types/return.h" +#include "libmemcached-1.0/types/server_distribution.h" + +#include "libmemcached-1.0/return.h" + +#include "libmemcached-1.0/types.h" +#include "libmemcached-1.0/callbacks.h" +#include "libmemcached-1.0/alloc.h" +#include "libmemcached-1.0/triggers.h" + +#include "libhashkit-1.0/hashkit.h" + +#include "libmemcached-1.0/struct/callback.h" +#include "libmemcached-1.0/struct/string.h" +#include "libmemcached-1.0/struct/result.h" +#include "libmemcached-1.0/struct/allocator.h" +#include "libmemcached-1.0/struct/sasl.h" +#include "libmemcached-1.0/struct/memcached.h" +#include "libmemcached-1.0/struct/server.h" +#include "libmemcached-1.0/struct/stat.h" + +#include "libmemcached-1.0/basic_string.h" +#include "libmemcached-1.0/error.h" +#include "libmemcached-1.0/stats.h" // Everything above this line must be in the order specified. -#include "libmemcached-1/allocators.h" -#include "libmemcached-1/analyze.h" -#include "libmemcached-1/auto.h" -#include "libmemcached-1/behavior.h" -#include "libmemcached-1/callback.h" -#include "libmemcached-1/delete.h" -#include "libmemcached-1/dump.h" -#include "libmemcached-1/encoding_key.h" -#include "libmemcached-1/exist.h" -#include "libmemcached-1/fetch.h" -#include "libmemcached-1/flush.h" -#include "libmemcached-1/flush_buffers.h" -#include "libmemcached-1/get.h" -#include "libmemcached-1/hash.h" -#include "libmemcached-1/options.h" -#include "libmemcached-1/parse.h" -#include "libmemcached-1/quit.h" -#include "libmemcached-1/result.h" -#include "libmemcached-1/server.h" -#include "libmemcached-1/server_list.h" -#include "libmemcached-1/storage.h" -#include "libmemcached-1/strerror.h" -#include "libmemcached-1/touch.h" -#include "libmemcached-1/verbosity.h" -#include "libmemcached-1/version.h" -#include "libmemcached-1/sasl.h" - -#include "libmemcached-1/deprecated_types.h" +#include "libmemcached-1.0/allocators.h" +#include "libmemcached-1.0/analyze.h" +#include "libmemcached-1.0/auto.h" +#include "libmemcached-1.0/behavior.h" +#include "libmemcached-1.0/callback.h" +#include "libmemcached-1.0/delete.h" +#include "libmemcached-1.0/dump.h" +#include "libmemcached-1.0/encoding_key.h" +#include "libmemcached-1.0/exist.h" +#include "libmemcached-1.0/fetch.h" +#include "libmemcached-1.0/flush.h" +#include "libmemcached-1.0/flush_buffers.h" +#include "libmemcached-1.0/get.h" +#include "libmemcached-1.0/hash.h" +#include "libmemcached-1.0/options.h" +#include "libmemcached-1.0/parse.h" +#include "libmemcached-1.0/quit.h" +#include "libmemcached-1.0/result.h" +#include "libmemcached-1.0/server.h" +#include "libmemcached-1.0/server_list.h" +#include "libmemcached-1.0/storage.h" +#include "libmemcached-1.0/strerror.h" +#include "libmemcached-1.0/touch.h" +#include "libmemcached-1.0/verbosity.h" +#include "libmemcached-1.0/version.h" +#include "libmemcached-1.0/sasl.h" + +#include "libmemcached-1.0/deprecated_types.h" #ifdef __cplusplus extern "C" { diff --git a/include/libmemcached-1/memcached.hpp b/include/libmemcached-1.0/memcached.hpp similarity index 99% rename from include/libmemcached-1/memcached.hpp rename to include/libmemcached-1.0/memcached.hpp index 5d902561..aaeb4df7 100644 --- a/include/libmemcached-1/memcached.hpp +++ b/include/libmemcached-1.0/memcached.hpp @@ -15,7 +15,7 @@ #pragma once -#include "libmemcached-1/memcached.h" +#include "libmemcached-1.0/memcached.h" #if 0 # include "libmemcached/exception.hpp" #endif diff --git a/include/libmemcached-1/options.h b/include/libmemcached-1.0/options.h similarity index 100% rename from include/libmemcached-1/options.h rename to include/libmemcached-1.0/options.h diff --git a/include/libmemcached-1/parse.h b/include/libmemcached-1.0/parse.h similarity index 100% rename from include/libmemcached-1/parse.h rename to include/libmemcached-1.0/parse.h diff --git a/include/libmemcached-1/platform.h b/include/libmemcached-1.0/platform.h similarity index 97% rename from include/libmemcached-1/platform.h rename to include/libmemcached-1.0/platform.h index ad345f64..1bf2c3df 100644 --- a/include/libmemcached-1/platform.h +++ b/include/libmemcached-1.0/platform.h @@ -15,7 +15,7 @@ #pragma once -#include "libmemcached-1/configure.h" +#include "libmemcached-1.0/configure.h" /* This seems to be required for older compilers @note * http://stackoverflow.com/questions/8132399/how-to-printf-uint64-t */ diff --git a/include/libmemcached-1/quit.h b/include/libmemcached-1.0/quit.h similarity index 100% rename from include/libmemcached-1/quit.h rename to include/libmemcached-1.0/quit.h diff --git a/include/libmemcached-1/result.h b/include/libmemcached-1.0/result.h similarity index 98% rename from include/libmemcached-1/result.h rename to include/libmemcached-1.0/result.h index e1c5b2b0..301d0c11 100644 --- a/include/libmemcached-1/result.h +++ b/include/libmemcached-1.0/result.h @@ -13,7 +13,7 @@ +--------------------------------------------------------------------+ */ -#include "libmemcached-1/struct/result.h" +#include "libmemcached-1.0/struct/result.h" #pragma once diff --git a/include/libmemcached-1/return.h b/include/libmemcached-1.0/return.h similarity index 100% rename from include/libmemcached-1/return.h rename to include/libmemcached-1.0/return.h diff --git a/include/libmemcached-1/sasl.h b/include/libmemcached-1.0/sasl.h similarity index 97% rename from include/libmemcached-1/sasl.h rename to include/libmemcached-1.0/sasl.h index 22d3b61e..832084bd 100644 --- a/include/libmemcached-1/sasl.h +++ b/include/libmemcached-1.0/sasl.h @@ -42,4 +42,4 @@ sasl_callback_t *memcached_get_sasl_callbacks(memcached_st *ptr); } #endif -#include "libmemcached-1/struct/sasl.h" +#include "libmemcached-1.0/struct/sasl.h" diff --git a/include/libmemcached-1/server.h b/include/libmemcached-1.0/server.h similarity index 98% rename from include/libmemcached-1/server.h rename to include/libmemcached-1.0/server.h index 3ad5199d..86928c3d 100644 --- a/include/libmemcached-1/server.h +++ b/include/libmemcached-1.0/server.h @@ -15,7 +15,7 @@ #pragma once -#include "libmemcached-1/struct/server.h" +#include "libmemcached-1.0/struct/server.h" #ifdef __cplusplus extern "C" { diff --git a/include/libmemcached-1/server_list.h b/include/libmemcached-1.0/server_list.h similarity index 100% rename from include/libmemcached-1/server_list.h rename to include/libmemcached-1.0/server_list.h diff --git a/include/libmemcached-1/stats.h b/include/libmemcached-1.0/stats.h similarity index 97% rename from include/libmemcached-1/stats.h rename to include/libmemcached-1.0/stats.h index eb02bacd..5661f505 100644 --- a/include/libmemcached-1/stats.h +++ b/include/libmemcached-1.0/stats.h @@ -13,7 +13,7 @@ +--------------------------------------------------------------------+ */ -#include "libmemcached-1/struct/stat.h" +#include "libmemcached-1.0/struct/stat.h" #pragma once diff --git a/include/libmemcached-1/storage.h b/include/libmemcached-1.0/storage.h similarity index 100% rename from include/libmemcached-1/storage.h rename to include/libmemcached-1.0/storage.h diff --git a/include/libmemcached-1/strerror.h b/include/libmemcached-1.0/strerror.h similarity index 100% rename from include/libmemcached-1/strerror.h rename to include/libmemcached-1.0/strerror.h diff --git a/include/libmemcached-1/struct/CMakeLists.txt b/include/libmemcached-1.0/struct/CMakeLists.txt similarity index 85% rename from include/libmemcached-1/struct/CMakeLists.txt rename to include/libmemcached-1.0/struct/CMakeLists.txt index adebbfef..548f993d 100644 --- a/include/libmemcached-1/struct/CMakeLists.txt +++ b/include/libmemcached-1.0/struct/CMakeLists.txt @@ -1,6 +1,6 @@ install_public_headers( - libmemcached-1/struct + libmemcached-1.0/struct allocator.h analysis.h diff --git a/include/libmemcached-1/struct/allocator.h b/include/libmemcached-1.0/struct/allocator.h similarity index 100% rename from include/libmemcached-1/struct/allocator.h rename to include/libmemcached-1.0/struct/allocator.h diff --git a/include/libmemcached-1/struct/analysis.h b/include/libmemcached-1.0/struct/analysis.h similarity index 100% rename from include/libmemcached-1/struct/analysis.h rename to include/libmemcached-1.0/struct/analysis.h diff --git a/include/libmemcached-1/struct/callback.h b/include/libmemcached-1.0/struct/callback.h similarity index 100% rename from include/libmemcached-1/struct/callback.h rename to include/libmemcached-1.0/struct/callback.h diff --git a/include/libmemcached-1/struct/memcached.h b/include/libmemcached-1.0/struct/memcached.h similarity index 100% rename from include/libmemcached-1/struct/memcached.h rename to include/libmemcached-1.0/struct/memcached.h diff --git a/include/libmemcached-1/struct/result.h b/include/libmemcached-1.0/struct/result.h similarity index 100% rename from include/libmemcached-1/struct/result.h rename to include/libmemcached-1.0/struct/result.h diff --git a/include/libmemcached-1/struct/sasl.h b/include/libmemcached-1.0/struct/sasl.h similarity index 100% rename from include/libmemcached-1/struct/sasl.h rename to include/libmemcached-1.0/struct/sasl.h diff --git a/include/libmemcached-1/struct/server.h b/include/libmemcached-1.0/struct/server.h similarity index 98% rename from include/libmemcached-1/struct/server.h rename to include/libmemcached-1.0/struct/server.h index 4109c56d..e74767ad 100644 --- a/include/libmemcached-1/struct/server.h +++ b/include/libmemcached-1.0/struct/server.h @@ -15,7 +15,7 @@ #pragma once -#include "libmemcached-1/configure.h" +#include "libmemcached-1.0/configure.h" #ifdef HAVE_NETDB_H # include diff --git a/include/libmemcached-1/struct/stat.h b/include/libmemcached-1.0/struct/stat.h similarity index 100% rename from include/libmemcached-1/struct/stat.h rename to include/libmemcached-1.0/struct/stat.h diff --git a/include/libmemcached-1/struct/string.h b/include/libmemcached-1.0/struct/string.h similarity index 100% rename from include/libmemcached-1/struct/string.h rename to include/libmemcached-1.0/struct/string.h diff --git a/include/libmemcached-1/touch.h b/include/libmemcached-1.0/touch.h similarity index 100% rename from include/libmemcached-1/touch.h rename to include/libmemcached-1.0/touch.h diff --git a/include/libmemcached-1/triggers.h b/include/libmemcached-1.0/triggers.h similarity index 100% rename from include/libmemcached-1/triggers.h rename to include/libmemcached-1.0/triggers.h diff --git a/include/libmemcached-1/types.h b/include/libmemcached-1.0/types.h similarity index 100% rename from include/libmemcached-1/types.h rename to include/libmemcached-1.0/types.h diff --git a/include/libmemcached-1/types/CMakeLists.txt b/include/libmemcached-1.0/types/CMakeLists.txt similarity index 83% rename from include/libmemcached-1/types/CMakeLists.txt rename to include/libmemcached-1.0/types/CMakeLists.txt index 9bc619d6..14ec1077 100644 --- a/include/libmemcached-1/types/CMakeLists.txt +++ b/include/libmemcached-1.0/types/CMakeLists.txt @@ -1,6 +1,6 @@ install_public_headers( - libmemcached-1/types + libmemcached-1.0/types behavior.h callback.h diff --git a/include/libmemcached-1/types/behavior.h b/include/libmemcached-1.0/types/behavior.h similarity index 100% rename from include/libmemcached-1/types/behavior.h rename to include/libmemcached-1.0/types/behavior.h diff --git a/include/libmemcached-1/types/callback.h b/include/libmemcached-1.0/types/callback.h similarity index 100% rename from include/libmemcached-1/types/callback.h rename to include/libmemcached-1.0/types/callback.h diff --git a/include/libmemcached-1/types/connection.h b/include/libmemcached-1.0/types/connection.h similarity index 100% rename from include/libmemcached-1/types/connection.h rename to include/libmemcached-1.0/types/connection.h diff --git a/include/libmemcached-1/types/hash.h b/include/libmemcached-1.0/types/hash.h similarity index 100% rename from include/libmemcached-1/types/hash.h rename to include/libmemcached-1.0/types/hash.h diff --git a/include/libmemcached-1/types/return.h b/include/libmemcached-1.0/types/return.h similarity index 100% rename from include/libmemcached-1/types/return.h rename to include/libmemcached-1.0/types/return.h diff --git a/include/libmemcached-1/types/server_distribution.h b/include/libmemcached-1.0/types/server_distribution.h similarity index 100% rename from include/libmemcached-1/types/server_distribution.h rename to include/libmemcached-1.0/types/server_distribution.h diff --git a/include/libmemcached-1/verbosity.h b/include/libmemcached-1.0/verbosity.h similarity index 100% rename from include/libmemcached-1/verbosity.h rename to include/libmemcached-1.0/verbosity.h diff --git a/include/libmemcached-1/version.h b/include/libmemcached-1.0/version.h similarity index 100% rename from include/libmemcached-1/version.h rename to include/libmemcached-1.0/version.h diff --git a/include/libmemcached-1/visibility.h b/include/libmemcached-1.0/visibility.h similarity index 100% rename from include/libmemcached-1/visibility.h rename to include/libmemcached-1.0/visibility.h diff --git a/include/libmemcachedprotocol-0.0 b/include/libmemcachedprotocol-0.0 deleted file mode 120000 index 9157c764..00000000 --- a/include/libmemcachedprotocol-0.0 +++ /dev/null @@ -1 +0,0 @@ -libmemcachedprotocol-0 \ No newline at end of file diff --git a/include/libmemcachedprotocol-0/CMakeLists.txt b/include/libmemcachedprotocol-0.0/CMakeLists.txt similarity index 75% rename from include/libmemcachedprotocol-0/CMakeLists.txt rename to include/libmemcachedprotocol-0.0/CMakeLists.txt index 62f739c3..6d4fb220 100644 --- a/include/libmemcachedprotocol-0/CMakeLists.txt +++ b/include/libmemcachedprotocol-0.0/CMakeLists.txt @@ -1,6 +1,6 @@ install_public_headers( - libmemcachedprotocol-0 + libmemcachedprotocol-0.0 binary.h callback.h diff --git a/include/libmemcachedprotocol-0/binary.h b/include/libmemcachedprotocol-0.0/binary.h similarity index 99% rename from include/libmemcachedprotocol-0/binary.h rename to include/libmemcachedprotocol-0.0/binary.h index 9478c867..837f3adf 100644 --- a/include/libmemcachedprotocol-0/binary.h +++ b/include/libmemcachedprotocol-0.0/binary.h @@ -16,7 +16,7 @@ #ifndef PROTOCOL_BINARY_H #define PROTOCOL_BINARY_H -#include "libmemcachedprotocol-0/vbucket.h" +#include "libmemcachedprotocol-0.0/vbucket.h" /** * \addtogroup Protocol diff --git a/include/libmemcachedprotocol-0/callback.h b/include/libmemcachedprotocol-0.0/callback.h similarity index 100% rename from include/libmemcachedprotocol-0/callback.h rename to include/libmemcachedprotocol-0.0/callback.h diff --git a/include/libmemcachedprotocol-0/handler.h b/include/libmemcachedprotocol-0.0/handler.h similarity index 97% rename from include/libmemcachedprotocol-0/handler.h rename to include/libmemcachedprotocol-0.0/handler.h index 94cc5e5c..5f009056 100644 --- a/include/libmemcachedprotocol-0/handler.h +++ b/include/libmemcachedprotocol-0.0/handler.h @@ -28,10 +28,10 @@ typedef long int ssize_t; # include #endif -#include "libmemcached-1/visibility.h" -#include "libmemcached-1/platform.h" -#include "libmemcachedprotocol-0/binary.h" -#include "libmemcachedprotocol-0/callback.h" +#include "libmemcached-1.0/visibility.h" +#include "libmemcached-1.0/platform.h" +#include "libmemcachedprotocol-0.0/binary.h" +#include "libmemcachedprotocol-0.0/callback.h" /* Forward declarations */ /* diff --git a/include/libmemcachedprotocol-0/vbucket.h b/include/libmemcachedprotocol-0.0/vbucket.h similarity index 100% rename from include/libmemcachedprotocol-0/vbucket.h rename to include/libmemcachedprotocol-0.0/vbucket.h diff --git a/include/libmemcachedutil-1.0 b/include/libmemcachedutil-1.0 deleted file mode 120000 index e74e2a91..00000000 --- a/include/libmemcachedutil-1.0 +++ /dev/null @@ -1 +0,0 @@ -libmemcachedutil-1 \ No newline at end of file diff --git a/include/libmemcachedutil-1/CMakeLists.txt b/include/libmemcachedutil-1.0/CMakeLists.txt similarity index 83% rename from include/libmemcachedutil-1/CMakeLists.txt rename to include/libmemcachedutil-1.0/CMakeLists.txt index d15f2e87..a6e353d1 100644 --- a/include/libmemcachedutil-1/CMakeLists.txt +++ b/include/libmemcachedutil-1.0/CMakeLists.txt @@ -1,6 +1,6 @@ install_public_headers( - libmemcachedutil-1 + libmemcachedutil-1.0 flush.h ostream.hpp diff --git a/include/libmemcachedutil-1/flush.h b/include/libmemcachedutil-1.0/flush.h similarity index 100% rename from include/libmemcachedutil-1/flush.h rename to include/libmemcachedutil-1.0/flush.h diff --git a/include/libmemcachedutil-1/ostream.hpp b/include/libmemcachedutil-1.0/ostream.hpp similarity index 100% rename from include/libmemcachedutil-1/ostream.hpp rename to include/libmemcachedutil-1.0/ostream.hpp diff --git a/include/libmemcachedutil-1/pid.h b/include/libmemcachedutil-1.0/pid.h similarity index 100% rename from include/libmemcachedutil-1/pid.h rename to include/libmemcachedutil-1.0/pid.h diff --git a/include/libmemcachedutil-1/ping.h b/include/libmemcachedutil-1.0/ping.h similarity index 100% rename from include/libmemcachedutil-1/ping.h rename to include/libmemcachedutil-1.0/ping.h diff --git a/include/libmemcachedutil-1/pool.h b/include/libmemcachedutil-1.0/pool.h similarity index 98% rename from include/libmemcachedutil-1/pool.h rename to include/libmemcachedutil-1.0/pool.h index 155862e2..e93b65e6 100644 --- a/include/libmemcachedutil-1/pool.h +++ b/include/libmemcachedutil-1.0/pool.h @@ -15,7 +15,7 @@ #pragma once -#include "libmemcached-1/memcached.h" +#include "libmemcached-1.0/memcached.h" #ifdef __cplusplus extern "C" { diff --git a/include/libmemcachedutil-1/util.h b/include/libmemcachedutil-1.0/util.h similarity index 79% rename from include/libmemcachedutil-1/util.h rename to include/libmemcachedutil-1.0/util.h index 48e5a9a0..b4cf2e45 100644 --- a/include/libmemcachedutil-1/util.h +++ b/include/libmemcachedutil-1.0/util.h @@ -15,10 +15,10 @@ #pragma once -#include "libmemcached-1/memcached.h" +#include "libmemcached-1.0/memcached.h" -#include "libmemcachedutil-1/pid.h" -#include "libmemcachedutil-1/flush.h" -#include "libmemcachedutil-1/ping.h" -#include "libmemcachedutil-1/pool.h" -#include "libmemcachedutil-1/version.h" +#include "libmemcachedutil-1.0/pid.h" +#include "libmemcachedutil-1.0/flush.h" +#include "libmemcachedutil-1.0/ping.h" +#include "libmemcachedutil-1.0/pool.h" +#include "libmemcachedutil-1.0/version.h" diff --git a/include/libmemcachedutil-1/version.h b/include/libmemcachedutil-1.0/version.h similarity index 100% rename from include/libmemcachedutil-1/version.h rename to include/libmemcachedutil-1.0/version.h diff --git a/src/bin/memcapable.cc b/src/bin/memcapable.cc index a95fc1d1..54e9c224 100644 --- a/src/bin/memcapable.cc +++ b/src/bin/memcapable.cc @@ -36,8 +36,8 @@ #include "p9y/socket.hpp" #include "p9y/poll.hpp" -#include "libmemcached-1/memcached.h" -#include "libmemcachedprotocol-0/binary.h" +#include "libmemcached-1.0/memcached.h" +#include "libmemcachedprotocol-0.0/binary.h" #include "libmemcached/byteorder.h" #include diff --git a/src/bin/memparse.cc b/src/bin/memparse.cc index be3211ce..d08c9d99 100644 --- a/src/bin/memparse.cc +++ b/src/bin/memparse.cc @@ -19,7 +19,7 @@ #include #include -#include "libmemcached-1/memcached.h" +#include "libmemcached-1.0/memcached.h" int main(int argc, char *argv[]) { if (argc < 2) { diff --git a/src/libhashkit/common.h b/src/libhashkit/common.h index ddd7bb03..6d483584 100644 --- a/src/libhashkit/common.h +++ b/src/libhashkit/common.h @@ -30,7 +30,7 @@ # endif #endif -#include "libhashkit-1/hashkit.h" +#include "libhashkit-1.0/hashkit.h" #include "libhashkit/algorithm.h" #include "libhashkit/is.h" #include "libhashkit/string.h" diff --git a/src/libhashkit/hashkit.h b/src/libhashkit/hashkit.h index 35380dff..e4285233 100644 --- a/src/libhashkit/hashkit.h +++ b/src/libhashkit/hashkit.h @@ -15,4 +15,4 @@ #pragma once -#include "libhashkit-1/hashkit.h" +#include "libhashkit-1.0/hashkit.h" diff --git a/src/libmemcached/common.h b/src/libmemcached/common.h index ed878cb1..c36384b2 100644 --- a/src/libmemcached/common.h +++ b/src/libmemcached/common.h @@ -54,7 +54,7 @@ # include #endif -#include "libmemcached-1/memcached.h" +#include "libmemcached-1.0/memcached.h" #include "libmemcached/watchpoint.h" #include "libmemcached/is.h" typedef struct memcached_st Memcached; @@ -69,7 +69,7 @@ memcached_instance_st *memcached_instance_fetch(memcached_st *ptr, uint32_t serv #include "libmemcached/io.h" #ifdef __cplusplus # include "libmemcached/string.hpp" -# include "libmemcachedprotocol-0/binary.h" +# include "libmemcachedprotocol-0.0/binary.h" # include "libmemcached/io.hpp" # include "libmemcached/udp.hpp" # include "libmemcached/do.hpp" diff --git a/src/libmemcached/memcached.h b/src/libmemcached/memcached.h index b3dbcb27..c0878dc3 100644 --- a/src/libmemcached/memcached.h +++ b/src/libmemcached/memcached.h @@ -15,4 +15,4 @@ #pragma once -#include "libmemcached-1/memcached.h" +#include "libmemcached-1.0/memcached.h" diff --git a/src/libmemcached/memcached.hpp b/src/libmemcached/memcached.hpp index 381ca13b..6ebb5c4d 100644 --- a/src/libmemcached/memcached.hpp +++ b/src/libmemcached/memcached.hpp @@ -15,4 +15,4 @@ #pragma once -#include "libmemcached-1/memcached.hpp" +#include "libmemcached-1.0/memcached.hpp" diff --git a/src/libmemcached/util.h b/src/libmemcached/util.h index 7b808283..48c7fc49 100644 --- a/src/libmemcached/util.h +++ b/src/libmemcached/util.h @@ -15,4 +15,4 @@ #pragma once -#include "libmemcachedutil-1/util.h" +#include "libmemcachedutil-1.0/util.h" diff --git a/src/libmemcachedprotocol/common.h b/src/libmemcachedprotocol/common.h index 0e6a1005..39f0464e 100644 --- a/src/libmemcachedprotocol/common.h +++ b/src/libmemcachedprotocol/common.h @@ -18,7 +18,7 @@ #include "mem_config.h" #include -#include "libmemcachedprotocol-0/handler.h" +#include "libmemcachedprotocol-0.0/handler.h" #include "libmemcachedprotocol/cache.h" #include "libmemcached/byteorder.h" diff --git a/src/libmemcachedutil/common.h b/src/libmemcachedutil/common.h index ddfac589..680f85c0 100644 --- a/src/libmemcachedutil/common.h +++ b/src/libmemcachedutil/common.h @@ -22,6 +22,6 @@ #include #include -#include "libmemcachedutil-1/util.h" +#include "libmemcachedutil-1.0/util.h" #include "libmemcached/assert.hpp" #include "libmemcached/backtrace.hpp" diff --git a/src/p9y/gettimeofday.hpp b/src/p9y/gettimeofday.hpp index 93452b66..8eb06fa2 100644 --- a/src/p9y/gettimeofday.hpp +++ b/src/p9y/gettimeofday.hpp @@ -1,6 +1,6 @@ #pragma once -#include "libmemcached-1/platform.h" +#include "libmemcached-1.0/platform.h" #if defined __cplusplus # include diff --git a/src/p9y/poll.hpp b/src/p9y/poll.hpp index bff0f1b7..9d410dd3 100644 --- a/src/p9y/poll.hpp +++ b/src/p9y/poll.hpp @@ -1,6 +1,6 @@ #pragma once -#include "libmemcached-1/platform.h" +#include "libmemcached-1.0/platform.h" #if defined HAVE_POLL_H # include diff --git a/src/p9y/socket.hpp b/src/p9y/socket.hpp index 9678b39f..a9a18ad2 100644 --- a/src/p9y/socket.hpp +++ b/src/p9y/socket.hpp @@ -1,6 +1,6 @@ #pragma once -#include "libmemcached-1/platform.h" +#include "libmemcached-1.0/platform.h" #if defined __cplusplus # include diff --git a/src/win32/wrappers.h b/src/win32/wrappers.h new file mode 100644 index 00000000..a009fbdc --- /dev/null +++ b/src/win32/wrappers.h @@ -0,0 +1,104 @@ +/* LibMemcached + * Copyright (C) 2010 Brian Aker, Trond Norbye + * All rights reserved. + * + * Use and distribution licensed under the BSD license. See + * the COPYING file in the parent directory for full text. + * + * Summary: "Implementation" of the function we don't have on windows + * to avoid a bunch of ifdefs in the rest of the code + * + */ +#pragma once + +#include + +/* + * One of the Windows headers define interface as a macro, but that + * is causing problems with the member named "interface" in some of the + * structs. + */ +#undef interface + +#undef malloc +#undef realloc + + +/* + * WinSock use a separate range for error codes. Let's just map to the + * WinSock ones. + */ +#ifndef EADDRINUSE +# define EADDRINUSE WSAEADDRINUSE +#endif + +#ifndef EWOULDBLOCK +# define EWOULDBLOCK WSAEWOULDBLOCK +#endif + +#ifndef EINPROGRESS +# define EINPROGRESS WSAEINPROGRESS +#endif + +#ifndef EALREADY +# define EALREADY WSAEALREADY +#endif + +#ifndef EISCONN +# define EISCONN WSAEISCONN +#endif + +#ifndef ENOTCONN +# define ENOTCONN WSAENOTCONN +#endif + +#ifndef ENOBUFS +# define ENOBUFS WSAENOBUFS +#endif + +#ifndef SHUT_RDWR +# define SHUT_RDWR SD_BOTH +#endif +#ifndef SHUT_WR +# define SHUT_WR SD_SEND +#endif +#ifndef SHUT_RD +# define SHUT_RD SD_RECEIVE +#endif + +/* EAI_SYSTEM isn't defined anywhere... just set it to... 11? */ +#ifndef EAI_SYSTEM +# define EAI_SYSTEM 11 +#endif + +/* Best effort mapping of functions to alternative functions */ +#define index(a,b) strchr(a,b) +#define rindex(a,b) strrchr(a,b) +#define random() rand() +#define srandom(a) while (false) {} +#define kill(a, b) while (false) {} +#define fork() (-1) +#define waitpid(a,b,c) (-1) +#define fnmatch(a,b,c) (-1) +#define sleep(a) Sleep(a*1000) + +#ifdef __cplusplus +# include +static inline int gettimeofday(struct timeval* tp, struct timezone* tzp) { + using clock = std::chrono::system_clock; + auto as_sec = [] (auto d) { + return std::chrono::duration_cast(d); + }; + auto as_usec = [] (auto d) { + return std::chrono::duration_cast(d); + }; + + auto now = clock::now().time_since_epoch(); + auto sec = as_sec(now); + auto usec = as_usec(now - sec); + + tp->tv_sec = sec.count(); + tp->tv_usec = usec.count(); + return 0; +} +#endif \ No newline at end of file diff --git a/support/ax_libmemcached.m4 b/support/ax_libmemcached.m4 index d847f99b..95e5c9f7 100644 --- a/support/ax_libmemcached.m4 +++ b/support/ax_libmemcached.m4 @@ -52,13 +52,13 @@ #serial 1 AC_DEFUN([AX_LIBMEMCACHED], [ - AC_CHECK_HEADER([libmemcached-1/memcached.h], [ + AC_CHECK_HEADER([libmemcached-1.0/memcached.h], [ AC_CACHE_CHECK([check for -lmemcached], [ax_cv_libmemcached], [ AC_LANG_PUSH([C]) AX_SAVE_FLAGS LIBS="-lmemcached $LIBS" AC_RUN_IFELSE([ - AC_LANG_PROGRAM([#include ], [ + AC_LANG_PROGRAM([#include ], [ memcached_st *memc; memc= memcached(NULL, 0); memcached_free(memc); @@ -72,22 +72,22 @@ AC_DEFUN([AX_LIBMEMCACHED], [ ]) AS_IF([test "x$ax_cv_libmemcached" = "xyes"], [ - AC_DEFINE([HAVE_LIBMEMCACHED_MEMCACHED_H], [1], [Have libmemcached-1/memcached.h]) + AC_DEFINE([HAVE_LIBMEMCACHED_MEMCACHED_H], [1], [Have libmemcached-1.0/memcached.h]) ],[ - AC_DEFINE([HAVE_LIBMEMCACHED_MEMCACHED_H], [0], [Have libmemcached-1/memcached.h]) + AC_DEFINE([HAVE_LIBMEMCACHED_MEMCACHED_H], [0], [Have libmemcached-1.0/memcached.h]) ]) ]) AC_DEFUN([AX_LIBMEMCACHED_UTIL], [ AC_REQUIRE([AX_LIBMEMCACHED]) AS_IF([test "$ax_cv_libmemcached" = yes], [ - AC_CHECK_HEADER([libmemcachedutil-1/util.h], [ + AC_CHECK_HEADER([libmemcachedutil-1.0/util.h], [ AC_CACHE_CHECK([check for -lmemcachedutil], [ax_cv_libmemcached_util], [ AX_SAVE_FLAGS AC_LANG_PUSH([C]) LIBS="-lmemcachedutil -lmemcached $LIBS" AC_RUN_IFELSE([ - AC_LANG_PROGRAM([#include ], [ + AC_LANG_PROGRAM([#include ], [ memcached_pool_st *memc_pool= memcached_pool_create(NULL, 0, 3); memcached_pool_destroy(memc_pool); ])], @@ -101,9 +101,9 @@ AC_DEFUN([AX_LIBMEMCACHED], [ ]) AS_IF([test "x$ax_cv_libmemcached_util" = "xyes"], [ - AC_DEFINE([HAVE_LIBMEMCACHED_UTIL_H], [1], [Have libmemcachedutil-1/util.h]) + AC_DEFINE([HAVE_LIBMEMCACHED_UTIL_H], [1], [Have libmemcachedutil-1.0/util.h]) ],[ - AC_DEFINE([HAVE_LIBMEMCACHED_UTIL_H], [0], [Have libmemcachedutil-1/util.h]) + AC_DEFINE([HAVE_LIBMEMCACHED_UTIL_H], [0], [Have libmemcachedutil-1.0/util.h]) ]) ]) diff --git a/test/tests/hashkit/basic.cpp b/test/tests/hashkit/basic.cpp index 1a3cc22e..369b530f 100644 --- a/test/tests/hashkit/basic.cpp +++ b/test/tests/hashkit/basic.cpp @@ -1,7 +1,7 @@ #include "test/lib/common.hpp" #include "test/fixtures/hashes.hpp" -#include "libhashkit-1/hashkit.hpp" +#include "libhashkit-1.0/hashkit.hpp" TEST_CASE("hashkit") { hashkit_st st, *hp = hashkit_create(nullptr); diff --git a/test/tests/memcached/regression/lp_000-962-815.cpp b/test/tests/memcached/regression/lp_000-962-815.cpp index 389064db..bde4dfce 100644 --- a/test/tests/memcached/regression/lp_000-962-815.cpp +++ b/test/tests/memcached/regression/lp_000-962-815.cpp @@ -1,7 +1,7 @@ #include "test/lib/common.hpp" #include "test/lib/MemcachedCluster.hpp" -#include "libmemcachedutil-1/pool.h" +#include "libmemcachedutil-1.0/pool.h" #include #include diff --git a/test/tests/memcached/util_pool_thread.cpp b/test/tests/memcached/util_pool_thread.cpp index b177b2a3..f8ac8501 100644 --- a/test/tests/memcached/util_pool_thread.cpp +++ b/test/tests/memcached/util_pool_thread.cpp @@ -1,6 +1,6 @@ #include "test/lib/common.hpp" -#include "libmemcachedutil-1/pool.h" +#include "libmemcachedutil-1.0/pool.h" #include struct test_pool_context_st { -- 2.30.2