config.h | config.h | |||
---|---|---|---|---|
skipping to change at line 15 | skipping to change at line 15 | |||
// See accompanying file COPYING.TXT file for licensing details. | // See accompanying file COPYING.TXT file for licensing details. | |||
// | // | |||
/////////////////////////////////////////////////////////////////////////// //// | /////////////////////////////////////////////////////////////////////////// //// | |||
#ifndef CPPCMS_CONFIG_H | #ifndef CPPCMS_CONFIG_H | |||
#define CPPCMS_CONFIG_H | #define CPPCMS_CONFIG_H | |||
/* Have stdint.h */ | /* Have stdint.h */ | |||
#define CPPCMS_HAVE_STDINT_H | #define CPPCMS_HAVE_STDINT_H | |||
/* Have _atol64 */ | /* Have _atol64 */ | |||
/* #undef CPPCMS_HAVE_ATOI64 */ | #define CPPCMS_HAVE_ATOI64 | |||
/* Have atoll */ | /* Have atoll */ | |||
#define CPPCMS_HAVE_ATOLL | #define CPPCMS_HAVE_ATOLL | |||
#if !defined(CPPCMS_HAVE_ATOLL) && defined(CPPCMS_HAVE_ATOI64) | #if !defined(CPPCMS_HAVE_ATOLL) && defined(CPPCMS_HAVE_ATOI64) | |||
#define atoll _atoi64 | #define atoll _atoi64 | |||
#endif | #endif | |||
/* Have stat */ | /* Have stat */ | |||
#define CPPCMS_HAVE_STAT | #define CPPCMS_HAVE_STAT | |||
/* Have _stat */ | /* Have _stat */ | |||
/* #undef CPPCMS_HAVE__STAT */ | #define CPPCMS_HAVE__STAT | |||
/* Have tm.tm_zone */ | /* Have tm.tm_zone */ | |||
#define CPPCMS_HAVE_BSD_TM | #define CPPCMS_HAVE_BSD_TM | |||
/* Have snprintf */ | /* Have snprintf */ | |||
#define CPPCMS_HAVE_SNPRINTF | #define CPPCMS_HAVE_SNPRINTF | |||
/* Have inttypes.h */ | /* Have inttypes.h */ | |||
#define CPPCMS_HAVE_INTTYPES_H | #define CPPCMS_HAVE_INTTYPES_H | |||
skipping to change at line 92 | skipping to change at line 92 | |||
#define CPPCMS_HAVE_CANONICALIZE_FILE_NAME | #define CPPCMS_HAVE_CANONICALIZE_FILE_NAME | |||
/* "Have g++ typeof" */ | /* "Have g++ typeof" */ | |||
#define CPPCMS_HAVE_UNDERSCORE_TYPEOF | #define CPPCMS_HAVE_UNDERSCORE_TYPEOF | |||
/* Define to the full name of this package. */ | /* Define to the full name of this package. */ | |||
#define CPPCMS_PACKAGE_NAME "CppCMS" | #define CPPCMS_PACKAGE_NAME "CppCMS" | |||
/* Define to the full name and version of this package. */ | /* Define to the full name and version of this package. */ | |||
#define CPPCMS_PACKAGE_STRING "CppCMS/1.0.4" | #define CPPCMS_PACKAGE_STRING "CppCMS/1.0.5" | |||
/* Define to the version of this package. */ | /* Define to the version of this package. */ | |||
#define CPPCMS_PACKAGE_VERSION "1.0.4" | #define CPPCMS_PACKAGE_VERSION "1.0.5" | |||
/* Define to module suffix. */ | /* Define to module suffix. */ | |||
#define CPPCMS_LIBRARY_SUFFIX ".so" | #define CPPCMS_LIBRARY_SUFFIX ".so" | |||
/* Define to module suffix. */ | /* Define to module suffix. */ | |||
#define CPPCMS_LIBRARY_PREFIX "lib" | #define CPPCMS_LIBRARY_PREFIX "lib" | |||
#define CPPCMS_HAS_FCGI | #define CPPCMS_HAS_FCGI | |||
#define CPPCMS_HAS_SCGI | #define CPPCMS_HAS_SCGI | |||
#define CPPCMS_HAS_HTTP | #define CPPCMS_HAS_HTTP | |||
/* #undef CPPCMS_NO_TCP_CACHE */ | /* #undef CPPCMS_NO_TCP_CACHE */ | |||
/* #undef CPPCMS_NO_CACHE */ | /* #undef CPPCMS_NO_CACHE */ | |||
/* #undef CPPCMS_NO_PREFOK_CACHE */ | /* #undef CPPCMS_NO_PREFOK_CACHE */ | |||
/* #undef CPPCMS_NO_GZIP */ | /* #undef CPPCMS_NO_GZIP */ | |||
/* #undef CPPCMS_SQLITE_LINK_STATIC */ | /* #undef CPPCMS_SQLITE_LINK_STATIC */ | |||
#define CPPCMS_HAS_THREAD_PSHARED | ||||
#endif | #endif | |||
End of changes. 5 change blocks. | ||||
4 lines changed or deleted | 5 lines changed or added | |||
string_key.h | string_key.h | |||
---|---|---|---|---|
skipping to change at line 251 | skipping to change at line 251 | |||
bool operator==(string_key const &other) const | bool operator==(string_key const &other) const | |||
{ | { | |||
return (end() - begin() == other.end() - other.begin ()) | return (end() - begin() == other.end() - other.begin ()) | |||
&& memcmp(begin(),other.begin(),end()-begin( )) == 0; | && memcmp(begin(),other.begin(),end()-begin( )) == 0; | |||
} | } | |||
/// | /// | |||
/// Compare two strings | /// Compare two strings | |||
/// | /// | |||
bool operator!=(string_key const &other) const | bool operator!=(string_key const &other) const | |||
{ | { | |||
return !(*this!=other); | return !(*this==other); | |||
} | } | |||
/// | /// | |||
/// Get the pointer to the first character in the string. No te it should not be NUL terminated | /// Get the pointer to the first character in the string. No te it should not be NUL terminated | |||
/// | /// | |||
char const *data() const | char const *data() const | |||
{ | { | |||
return begin(); | return begin(); | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
views_pool.h | views_pool.h | |||
---|---|---|---|---|
skipping to change at line 93 | skipping to change at line 93 | |||
template<typename View,typename Content> | template<typename View,typename Content> | |||
static std::auto_ptr<base_view> view_builder(std::os tream &stream,base_content *c) | static std::auto_ptr<base_view> view_builder(std::os tream &stream,base_content *c) | |||
{ | { | |||
std::auto_ptr<base_view> p; | std::auto_ptr<base_view> p; | |||
try { | try { | |||
p.reset(new View(stream,dynamic_cast <Content &>(*c))); | p.reset(new View(stream,dynamic_cast <Content &>(*c))); | |||
} | } | |||
catch(std::bad_cast const &) { | catch(std::bad_cast const &) { | |||
throw cppcms_error("cppcms::views::g enerator: an attempt to use content if invalid type"); | throw cppcms_error("cppcms::views::g enerator: an attempt to use content of invalid type"); | |||
} | } | |||
return p; | return p; | |||
} | } | |||
template<typename View,typename Content> | template<typename View,typename Content> | |||
static std::auto_ptr<base_view> unsafe_view_builder( std::ostream &stream,base_content *c) | static std::auto_ptr<base_view> unsafe_view_builder( std::ostream &stream,base_content *c) | |||
{ | { | |||
std::auto_ptr<base_view> p(new View(stream,s tatic_cast<Content &>(*c))); | std::auto_ptr<base_view> p(new View(stream,s tatic_cast<Content &>(*c))); | |||
return p; | return p; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||