#include <SysInterpreterInstance.hpp>
Public Member Functions | |
void | live (size_t) |
void | liveGeneral (int) |
void | initialize (InterpreterInstance *i, RexxOption *options) |
void | terminate () |
RexxString * | resolveProgramName (RexxString *_name, RexxString *_parentDir, RexxString *_parentExtension) |
void | registerCommandHandlers (InterpreterInstance *i) |
void | setupProgram (RexxActivation *activation) |
void | live (size_t) |
void | liveGeneral (int) |
void | initialize (InterpreterInstance *i, RexxOption *options) |
void | terminate () |
RexxString * | resolveProgramName (RexxString *_name, RexxString *_parentDir, RexxString *_parentExtension) |
void | registerCommandHandlers (InterpreterInstance *i) |
void | setupProgram (RexxActivation *activation) |
Protected Member Functions | |
void | addSearchExtension (const char *name) |
void | addSearchExtension (const char *name) |
Protected Attributes | |
InterpreterInstance * | instance |
bool | externalTraceEnabled |
char * | externalTraceOption |
Definition at line 49 of file unix/SysInterpreterInstance.hpp.
|
protected |
Append a system default extension to the extension search order.
name | The name to add. |
Definition at line 96 of file unix/SysInterpreterInstance.cpp.
References RexxList::append(), RexxList::hasItem(), instance, new_string(), InterpreterInstance::searchExtensions, and TheFalseObject.
Referenced by initialize().
|
protected |
void SysInterpreterInstance::initialize | ( | InterpreterInstance * | i, |
RexxOption * | options | ||
) |
Initialize the interpreter instance.
i | Our interpreter instance container. |
options | The options used to initialize us. We can add additional platform-specific options if we wish. |
Definition at line 55 of file unix/SysInterpreterInstance.cpp.
References addSearchExtension(), SystemInterpreter::allocateResultMemory(), externalTraceEnabled, externalTraceOption, and instance.
Referenced by InterpreterInstance::initialize().
void SysInterpreterInstance::initialize | ( | InterpreterInstance * | i, |
RexxOption * | options | ||
) |
void SysInterpreterInstance::live | ( | size_t | ) |
void SysInterpreterInstance::live | ( | size_t | ) |
void SysInterpreterInstance::liveGeneral | ( | int | ) |
void SysInterpreterInstance::liveGeneral | ( | int | ) |
void SysInterpreterInstance::registerCommandHandlers | ( | InterpreterInstance * | instance | ) |
Register the standard system command handlers.
instance | The created instance. |
Definition at line 801 of file unix/SystemCommands.cpp.
References InterpreterInstance::addCommandHandler(), and systemCommandHandler().
Referenced by InterpreterInstance::initialize().
void SysInterpreterInstance::registerCommandHandlers | ( | InterpreterInstance * | i | ) |
RexxString * SysInterpreterInstance::resolveProgramName | ( | RexxString * | _name, |
RexxString * | _parentDir, | ||
RexxString * | _parentExtension | ||
) |
Resolve a program for intial loading or a subroutine call.
_name | The target name. This can be fully qualified, or a simple name without an extension. |
_parentDir | The directory of the file of our calling program. The first place we'll look is in the same directory as the program. |
_parentExtension | The extension our calling program has. If there is an extension, we'll use that version first before trying any of the default extensions. |
Definition at line 89 of file unix/FileSystem.cpp.
References RexxList::firstIndex(), RexxString::getStringData(), RexxList::getValue(), SysFileSystem::hasExtension(), instance, LIST_END, new_string(), RexxList::nextIndex(), OREF_NULL, SysSearchPath::path, InterpreterInstance::searchExtensions, SysFileSystem::searchName(), and InterpreterInstance::searchPath.
Referenced by InterpreterInstance::resolveProgramName().
RexxString* SysInterpreterInstance::resolveProgramName | ( | RexxString * | _name, |
RexxString * | _parentDir, | ||
RexxString * | _parentExtension | ||
) |
void SysInterpreterInstance::setupProgram | ( | RexxActivation * | activation | ) |
Definition at line 106 of file unix/SysInterpreterInstance.cpp.
References RexxActivation::enableExternalTrace(), externalTraceEnabled, and externalTraceOption.
Referenced by InterpreterInstance::setupProgram().
void SysInterpreterInstance::setupProgram | ( | RexxActivation * | activation | ) |
void SysInterpreterInstance::terminate | ( | ) |
Terminate the interpreter instance.
Definition at line 85 of file unix/SysInterpreterInstance.cpp.
References externalTraceOption, and SystemInterpreter::releaseResultMemory().
Referenced by InterpreterInstance::terminate().
void SysInterpreterInstance::terminate | ( | ) |
|
protected |
Definition at line 65 of file unix/SysInterpreterInstance.hpp.
Referenced by initialize(), and setupProgram().
|
protected |
Definition at line 66 of file unix/SysInterpreterInstance.hpp.
Referenced by initialize(), setupProgram(), and terminate().
|
protected |
Definition at line 64 of file unix/SysInterpreterInstance.hpp.
Referenced by addSearchExtension(), initialize(), and resolveProgramName().