39 #ifndef LocalMacroSpaceManager_HPP_INCLUDED
40 #define LocalMacroSpaceManager_HPP_INCLUDED
47 #include "SysFile.hpp"
50 #define RXVERSION "REXX-ooRexx 6.00"
51 #define RXVERSIZE (sizeof(RXVERSION) - 1)
53 #define SIGNATURE 0xddd5
107 for (
size_t i = 0; i <
count; i++)
133 void create(
size_t count);
135 void read(
void *data,
size_t length);
137 void write(
const void *data,
size_t length);
141 write(str, strlen(str) + 1);
146 write((
void *)&i,
sizeof(
size_t));
RexxReturnCode addMacro(const char *name, ManagedRxstring &imageData, size_t position)
RexxReturnCode mapReturnResult(ServiceMessage &m)
RexxReturnCode removeMacro(const char *name)
RexxReturnCode clearMacroSpace()
void readRxstringFromFile(SysFile *file, ManagedRxstring &target, size_t size)
RexxReturnCode queryMacro(const char *target, size_t *pos)
RexxReturnCode loadMacroSpace(const char *target)
RexxReturnCode getMacro(const char *target, RXSTRING &image)
void translateRexxProgram(const char *sourcefile, ManagedRxstring &imageData)
virtual RexxReturnCode processServiceException(ServiceException *e)
RexxReturnCode saveMacroSpace(const char *target)
RexxReturnCode reorderMacro(const char *target, size_t pos)
RexxReturnCode addMacroFromFile(const char *name, const char *sourceFile, size_t position)
MacroSpaceDescriptor(const char *n, size_t s, size_t o)
void write(const char *str)
void write(RXSTRING &data)
MacroSpaceFile(const char *name)
void create(size_t count)
void setFilePosition(size_t p)
void nextMacro(char *name, ManagedRxstring &image, size_t &order)
void write(const void *data, size_t length)
void read(void *data, size_t length)
void writeMacroDescriptor(const char *name, size_t size, size_t order)
NameTable(const char **n, size_t c)
bool inTable(const char *name)
static int strCaselessCompare(const char *opt1, const char *opt2)