
A2.2 Ox function summary 29
argc in: number of command line arguments
argv in: command line argument list (first is program
name)
sCommand in: command line as one string
Return value
The entry point for main() if successful, or a value ≤ 1 if there was a compilation
or link error.
Description
Processes the Ox command line, including compilation, linking and running. The
arguments to OxMain are provided as an array of pointers to strings, with the first
entry being ignored.
The arguments to OxMainCmd are provided as one command line string, with
arguments separated by a space. A part in double quotes is considered one argu-
ment, so "-r- ranapp.ox" and "-r- "ranapp.ox"" are the same.
OxMainExit
void OxMainExit(void);
No return value.
Description
Deallocates run-time buffers.
OxMainInit
void OxMainInit(void);
No return value.
Description
Sets output destination to stdout, and links the standard run-time and drawing
library.
OxMakeByValue
void OxMakeByValue(OxVALUE *pv);
pv in: pointer to value to make by value
out: copied value (if not already by value)
No return value.
Description
Makes the matrix/string/array (i.e. pv is OX
MATRIX, OX ARRAY,orOX STRING)
by value. That is, if it doesn’t already have the OX
VALUE property, the contents
are copied, and the OX
VALUE flag is set. Note that a newly allocated value auto-
matically has the OX
VALUE flag.
Komentarze do niniejszej Instrukcji