
28 Appendix A2 Exported Function Summary
Description
Makes pv of type OX
ARRAY and allocates an array of c OxVALUEsinthat
OX
ARRAY.
If pv is not received from Ox, you should set it to an integer before calling this
function, also see OxLibValMatMalloc
OxLibValMatDup
void OxLibValMatDup(OxVALUE *pv, MATRIX mSrc, int r, int c);
pv in: value
out: allocated to type matrix
mSrc in: source matrix
r,c in: number of rows, columns of source matrix
No return value.
Description
Makes pv of type OX
MATRIX, allocates an r × c matrix for it, and duplicates
mSrc in that matrix. You could use OxFreeByValue to free the matrix, but nor-
mally that would be left to the Ox run-time system.
If pv is not received from Ox, you should set it to an integer before calling this
function, also see OxLibValMatMalloc
OxLibValMatMalloc
void OxLibValMatMalloc(OxVALUE *pv, int r, int c);
pv in: value
out: allocated to type matrix
r,c in: number of rows, columns of source matrix
No return value.
Description
Makes pv of type OX
MATRIX and allocates an r × c matrix for it. You could
use OxFreeByValue to free the matrix, but normally that would be left to the Ox
run-time system.
If pv is not received from Ox, you should set it to an integer before calling this
function, for example:
OxVALUE tmp;
OxSetInt(&tmp, 0, 0);
OxLibValMatMalloc(&tmp, 2, 2);
Failure to do so could bring down the Ox system.
OxMain,OxMainCmd
int OxMain(int argc, char *argv[]);
int OxMainCmd(char *sCommand);
Komentarze do niniejszej Instrukcji