mirror of https://gitee.com/bigwinds/arangodb
added ifdefs
This commit is contained in:
parent
f3e96f05ca
commit
ca6e16a5d2
|
@ -36,10 +36,12 @@
|
||||||
#define completion_matches rl_completion_matches
|
#define completion_matches rl_completion_matches
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef TRI_ENABLE_MRUBY
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "mruby.h"
|
#include "mruby.h"
|
||||||
#include "compile.h"
|
#include "compile.h"
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
@ -278,6 +280,8 @@ bool MRLineEditor::open (const bool autoComplete) {
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
bool MRLineEditor::isComplete (string const& source, size_t lineno, size_t column) {
|
bool MRLineEditor::isComplete (string const& source, size_t lineno, size_t column) {
|
||||||
|
|
||||||
|
#ifdef TRI_ENABLE_MRUBY
|
||||||
char const* msg = "syntax error, unexpected $end";
|
char const* msg = "syntax error, unexpected $end";
|
||||||
char* text = TRI_DuplicateString(source.c_str());
|
char* text = TRI_DuplicateString(source.c_str());
|
||||||
|
|
||||||
|
@ -300,6 +304,7 @@ bool MRLineEditor::isComplete (string const& source, size_t lineno, size_t colum
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue