Invocation::Invocation(const Script& script) : m_script(script) , m_environment(pdal::GlobalEnvironment::get().getPythonEnvironment()) , m_bytecode(NULL) , m_module(NULL) , m_dictionary(NULL) , m_function(NULL) , m_varsIn(NULL) , m_varsOut(NULL) , m_scriptArgs(NULL) , m_scriptResult(NULL) { resetArguments(); return; }
int main(){ while(should_run){ startNewLine(); while(hasMoreCharacters){ currentChar = getc(stdin); handleCharacter(); checkAndHandleEndOfLine(); } checkAndHandleHistoryCommands(); addCommandToHistory(args, background, tokenNumber); int returnCode = handleCommand(background); if(returnCode != -1){ return returnCode; } exitIfCommanded(); resetArguments(tokenNumber); } return 0; }