From 480981fdcd39a4af04f24728434a9406a4923bdc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Peter=20K=C3=BCmmel?= Date: Tue, 4 Sep 2007 18:39:13 +0000 Subject: [PATCH] declare specialisations, needed by the merge build. add cpp minizip file git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20045 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/cmake/src/support/CMakeLists.txt | 9 ++------ src/support/convert.h | 24 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/development/cmake/src/support/CMakeLists.txt b/development/cmake/src/support/CMakeLists.txt index 6da64bd778..c914136b87 100644 --- a/development/cmake/src/support/CMakeLists.txt +++ b/development/cmake/src/support/CMakeLists.txt @@ -10,6 +10,7 @@ file(GLOB support_sources ${TOP_SRC_DIR}/src/support/${LYX_CPP_FILES}) file(GLOB support_headers ${TOP_SRC_DIR}/src/support/${LYX_HPP_FILES}) file(GLOB support_minzip_sources ${TOP_SRC_DIR}/src/support/minizip/*.c) +file(GLOB support_minzip_cpp_sources ${TOP_SRC_DIR}/src/support/minizip/*.cpp) file(GLOB support_min_zip_headers ${TOP_SRC_DIR}/src/support/minizip/*.h) list(REMOVE_ITEM support_sources @@ -35,15 +36,9 @@ if(NOT MERGE_FILES) set(support_headers ${support_headers} ${support_minzip_headers}) add_library(support ${library_type} ${support_sources} ${support_headers}) else() - # move to front - list(REMOVE_ITEM support_sources ${TOP_SRC_DIR}/src/support/convert.cpp) - list(APPEND support_sources ${TOP_SRC_DIR}/src/support/convert.cpp) - list(REMOVE_ITEM support_sources ${TOP_SRC_DIR}/src/support/lstrings.cpp) - list(APPEND support_sources ${TOP_SRC_DIR}/src/support/lstrings.cpp) - list(REVERSE support_sources) lyx_const_touched_files(_allinone support_sources) add_library(support ${library_type} ${_allinone_files} - ${support_minzip_sources}) + ${support_minzip_sources} ${support_minzip_cpp_sources}) endif() diff --git a/src/support/convert.h b/src/support/convert.h index be2cb6d5b9..eb51d77c83 100644 --- a/src/support/convert.h +++ b/src/support/convert.h @@ -16,11 +16,35 @@ #ifndef CONVERT_H #define CONVERT_H +#include "support/docstring.h" + namespace lyx { template Target convert(Source arg); + +template<> std::string convert(bool b); +template<> std::string convert(char c); +template<> std::string convert(short unsigned int sui); +template<> std::string convert(int i); +template<> docstring convert(int i); +template<> std::string convert(unsigned int ui); +template<> docstring convert(unsigned int ui); +template<> std::string convert(unsigned long ul); +template<> docstring convert(unsigned long ul); +template<> std::string convert(long l); +template<> docstring convert(long l); +template<> std::string convert(float f); +template<> std::string convert(double d); +template<> int convert(std::string const s); +template<> int convert(lyx::docstring const s); +template<> unsigned int convert(std::string const s); +template<> unsigned long convert(std::string const s); +template<> double convert(std::string const s); +template<> int convert(char const * cptr); +template<> double convert(char const * cptr); + } // namespace lyx #endif -- 2.39.5