예제 #1
0
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;
}
예제 #2
0
파일: shell.c 프로젝트: Grotke/shell
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;
}