bool REPL::IOHandlerIsInputComplete(IOHandler &io_handler, StringList &lines) { // Check for meta command const size_t num_lines = lines.GetSize(); if (num_lines == 1) { const char *first_line = lines.GetStringAtIndex(0); if (first_line[0] == ':') return true; // Meta command is a single line where that starts with ':' } // Check if REPL input is done std::string source_string(lines.CopyList()); return SourceIsComplete(source_string); }
virtual void SetSourceOrder(StringList &sourceNames) { StringList* order = new StringList(); order->CopyList(sourceNames); PostMessage(hwndMain, OBS_SETSOURCEORDER, 0, (LPARAM) order); }