
A2.2 Ox function summary 25
void OxFnDouble4(OxVALUE *rtn, OxVALUE *pv,
double (OXCALL * fn4)(double,double,double,double) );
void OXCALL OxFnDoubleInt(OxVALUE *rtn, OxVALUE *pv,
double (OXCALL * fndi)(double,int) )
rtn out: return value of function
pv in: arguments for function fn
fn1 in: function of one double, returning a double
fn2 in: function of two doubles, returning a double
fn3 in: function of three doubles, returning a double
fn4 in: function of four doubles, returning a double
fndi in: function of a double and an int, returning a double
No return value.
Description
These functions are to simplify calling C functions, as for example in:
static void OXCALL
fnPro/jointfilesconvert/324257/bgamma(OxVALUE *rtn, OxVALUE *pv, int cArg)
{ OxFnDouble3(rtn, pv, DProbGamma);
}
static void OXCALL
fnProbchi(OxVALUE *rtn, OxVALUE *pv, int cArg)
{ OxFnDouble2(rtn, pv, DProbChi);
}
static void OXCALL
fnProbnormal(OxVALUE *rtn, OxVALUE *pv, int cArg)
{ OxFnDouble(rtn, pv, DProbNormal);
}
OxFreeByValue
void OxFreeByValue(OxVALUE *pv);
pv in: pointer to value to free
out: freed value
No return value.
Description
Frees the matrix/string/array (i.e. pv is OX
MATRIX, OX ARRAY,orOX STRING)if
it has property OX
VALUE.
OxDeleteObject
void OxDeleteObject(OxVALUE *pvClass);
sClass in: name of class
No return value.
Komentarze do niniejszej Instrukcji