mirror of https://gitee.com/bigwinds/arangodb
Fixes to compile under Visual Studio.
This commit is contained in:
parent
bb5b341ba6
commit
922d4890f2
|
@ -42,7 +42,7 @@
|
|||
/// @brief init the lexer
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool TRI_InitParserAql (TRI_aql_context_t* const context) {
|
||||
bool TRI_InitParserAql (TRI_aql_context_t* context) {
|
||||
assert(context);
|
||||
assert(context->_parser);
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ int Ahuacatllex_destroy (void *);
|
|||
/// @brief forward for the context function provided by the lexer (.l)
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void Ahuacatlset_extra (TRI_aql_context_t* const, void*);
|
||||
void Ahuacatlset_extra (TRI_aql_context_t*, void*);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @}
|
||||
|
@ -84,7 +84,7 @@ void Ahuacatlset_extra (TRI_aql_context_t* const, void*);
|
|||
/// @brief init the lexer
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
bool TRI_InitParserAql (TRI_aql_context_t* const);
|
||||
bool TRI_InitParserAql (TRI_aql_context_t*);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief parse & validate the query string
|
||||
|
|
|
@ -131,7 +131,7 @@ LogfileManager* LogfileManager::instance () {
|
|||
/// @brief initialise the logfile manager instance
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void LogfileManager::initialise (string* path) {
|
||||
void LogfileManager::initialise (std::string* path) {
|
||||
assert(Instance == nullptr);
|
||||
|
||||
Instance = new LogfileManager(path);
|
||||
|
|
|
@ -67,7 +67,7 @@ Marker::Marker (Marker const& other)
|
|||
Marker::Marker (TRI_df_marker_type_e type,
|
||||
size_t size)
|
||||
: _buffer(new char[size]),
|
||||
_size(size) {
|
||||
_size(static_cast<uint32_t>(size)) {
|
||||
|
||||
TRI_df_marker_t* m = reinterpret_cast<TRI_df_marker_t*>(begin());
|
||||
m->_type = type;
|
||||
|
@ -429,12 +429,11 @@ EdgeMarker EdgeMarker::clone (TRI_df_marker_t const* other,
|
|||
if (other->_type == TRI_DOC_MARKER_KEY_EDGE) {
|
||||
TRI_doc_edge_key_marker_t const* original = reinterpret_cast<TRI_doc_edge_key_marker_t const*>(other);
|
||||
|
||||
TRI_document_edge_t const edge = {
|
||||
._fromCid = original->_fromCid,
|
||||
._toCid = original->_toCid,
|
||||
._toKey = (TRI_voc_key_t) base + original->_offsetToKey,
|
||||
._fromKey = (TRI_voc_key_t) base + original->_offsetFromKey
|
||||
};
|
||||
TRI_document_edge_t edge;
|
||||
edge._fromCid = original->_fromCid;
|
||||
edge._toCid = original->_toCid;
|
||||
edge._toKey = (TRI_voc_key_t) base + original->_offsetToKey;
|
||||
edge._fromKey = (TRI_voc_key_t) base + original->_offsetFromKey;
|
||||
|
||||
return EdgeMarker(databaseId,
|
||||
collectionId,
|
||||
|
@ -453,12 +452,11 @@ EdgeMarker EdgeMarker::clone (TRI_df_marker_t const* other,
|
|||
assert(original->_databaseId == databaseId);
|
||||
assert(original->_collectionId == collectionId);
|
||||
|
||||
TRI_document_edge_t const edge = {
|
||||
._fromCid = original->_fromCid,
|
||||
._toCid = original->_toCid,
|
||||
._toKey = (TRI_voc_key_t) base + original->_offsetToKey,
|
||||
._fromKey = (TRI_voc_key_t) base + original->_offsetFromKey
|
||||
};
|
||||
TRI_document_edge_t edge;
|
||||
edge._fromCid = original->_fromCid;
|
||||
edge._toCid = original->_toCid;
|
||||
edge._toKey = (TRI_voc_key_t) base + original->_offsetToKey;
|
||||
edge._fromKey = (TRI_voc_key_t) base + original->_offsetFromKey;
|
||||
|
||||
return EdgeMarker(original->_databaseId,
|
||||
original->_collectionId,
|
||||
|
|
|
@ -269,6 +269,9 @@ size_t JsonLegend::getSize () const {
|
|||
+ roundup8(_shape_data.length()); // shape data, padded
|
||||
}
|
||||
|
||||
JsonLegend::AttributeComparerClass JsonLegend::AttributeComparerObject;
|
||||
JsonLegend::ShapeComparerClass JsonLegend::ShapeComparerObject;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief dump the legend to the buffer pointed to by buf
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
|
||||
namespace triagens {
|
||||
namespace basics {
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief create a legend for one or more shaped json objects
|
||||
|
|
Loading…
Reference in New Issue