mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' into vpack
This commit is contained in:
commit
2dbdb52a36
|
@ -37,15 +37,6 @@
|
|||
#include "Basics/Exceptions.h"
|
||||
#include "Basics/StringBuffer.h"
|
||||
|
||||
// TODO need to do this in another way
|
||||
#ifndef TRI_HAVE_GLOBAL_TIMEZONE_PROTO
|
||||
#ifdef GLOBAL_TIMEZONE
|
||||
extern long GLOBAL_TIMEZONE;
|
||||
#else
|
||||
static long GLOBAL_TIMEZONE = 0;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
@ -57,57 +48,16 @@ namespace {
|
|||
return a == ' ' || a == '\t' || a == '_';
|
||||
}
|
||||
|
||||
|
||||
|
||||
int32_t matchInteger (char const * & str, size_t size) {
|
||||
int32_t result = 0;
|
||||
|
||||
for (size_t i = 0; i < size; i++, str++) {
|
||||
if ('0' <= *str && *str <= '9') {
|
||||
result = result * 10 + (*str - '0');
|
||||
}
|
||||
else {
|
||||
std::string message("cannot parse date, expecting integer, got '" + string(1, *str) + "'");
|
||||
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER, message);
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int32_t matchInteger (char const * & str) {
|
||||
int32_t result = 0;
|
||||
|
||||
for (; *str; str++) {
|
||||
if ('0' <= *str && *str <= '9') {
|
||||
result = result * 10 + (*str - '0');
|
||||
}
|
||||
else {
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
char const * const BASE64_CHARS =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
"abcdefghijklmnopqrstuvwxyz"
|
||||
"0123456789+/";
|
||||
|
||||
|
||||
|
||||
char const * const BASE64U_CHARS =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
"abcdefghijklmnopqrstuvwxyz"
|
||||
"0123456789-_";
|
||||
|
||||
|
||||
|
||||
unsigned char const BASE64_REVS[256] = {
|
||||
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', // 0
|
||||
'\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0', // 16
|
||||
|
|
|
@ -116,8 +116,6 @@
|
|||
/// @brief available features
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define GLOBAL_TIMEZONE timezone
|
||||
|
||||
#define TRI_HAVE_POSIX 1
|
||||
|
||||
#define TRI_HAVE_MACOS_MEM_STATS 1
|
||||
|
@ -463,8 +461,6 @@
|
|||
/// @brief available features
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#define GLOBAL_TIMEZONE timezone
|
||||
|
||||
#define TRI_GCC_THREAD_LOCAL_STORAGE 1
|
||||
|
||||
#define TRI_HAVE_POSIX 1
|
||||
|
@ -646,9 +642,6 @@
|
|||
|
||||
#define TRI_HAVE_LINENOISE 1
|
||||
|
||||
#define GLOBAL_TIMEZONE _timezone
|
||||
#define TRI_HAVE_GLOBAL_TIMEZONE_PROTO 1
|
||||
|
||||
#define YY_NO_UNISTD_H 1
|
||||
|
||||
#define TRI_WIN32_CONSOLE 1
|
||||
|
|
Loading…
Reference in New Issue