| 1 | #include "gvars3/GUI.h" |
| 2 | #include "src/GUI_impl.h" |
| 3 | #include "gvars3/GStringUtil.h" |
| 4 | |
| 5 | |
| 6 | #include <gvars3/GUI_non_readline.h> |
| 7 | #include <pthread.h> |
| 8 | |
| 9 | #include <cctype> |
| 10 | #include <sstream> |
| 11 | #include <fstream> |
| 12 | #include <stdlib.h> |
| 13 | #include <algorithm> |
| 14 | |
| 15 | using namespace std; |
| 16 | |
| 17 | namespace GVars3 |
| 18 | { |
| 19 | void GUI_impl::SetupReadlineCompletion() |
| 20 | { |
| 21 | } |
| 22 | |
| 23 | char ** GUI_impl::ReadlineCompletionFunction (const char *text, int start, int end) |
| 24 | { |
| 25 | return NULL; |
| 26 | } |
| 27 | |
| 28 | void GUI_impl::StartParserThread() |
| 29 | { |
| 30 | if(mpParserThread) // Only makes sense to have one instance of the parser thread. |
| 31 | return; |
| 32 | |
| 33 | mpParserThread = new spawn_non_readline_thread(""); |
| 34 | } |
| 35 | |
| 36 | |
| 37 | void print_history(ostream &ost) |
| 38 | { |
| 39 | } |
| 40 | |
| 41 | void GUI_impl::StopParserThread() |
| 42 | { |
| 43 | if(!mpParserThread) |
| 44 | return; |
| 45 | |
| 46 | delete( (spawn_non_readline_thread*) mpParserThread); |
| 47 | mpParserThread = NULL; |
| 48 | } |
| 49 | |
| 50 | } |