33 #include "system/program.h" 51 if (vars ==
nullptr && funcs ==
nullptr)
57 len += vars !=
nullptr ?
StrLen(vars
) : 0;
58 len += funcs !=
nullptr ?
StrLen(funcs
) : 0;
Base class for all statements in a syntax tree.
CharBuffer(unsigned int size)
Initialize while allocating specified amount of memory.
class FilesystemBase * Filesystem
void Append(const char *source)
char * ListDefinitions() const
class FunctionList * Functions
class VariableList * Variables
int StrLen(const char *string)
Get the length of a null terminated string.
unsigned int AllocAndCopy(char **destination, const char *source)
Allocate memory and copy a string into the array.
virtual bool SaveTextFile(const char *name, const char *text)=0
Encapsulate an character array which can be used as a string.
char * ListDefinitions() const
SaveStatement(const char *file)