
Appendix A2
Exported Function Summary
A2.1 Introduction
This chapter documents the Ox related functions which are exported from the Ox DLL.
The low level mathematical and statistical functions are listed in §A2.5. The GiveWin
specific functions are documented in §A2.4.
§A2.1 lists the Ox related functions. All these functions section require
oxexport.h.
Functions which interface with Ox use the OXCALL specifier. This, in turn, is just
a relabelling of JDCALL,definedinox/dev/jdsystem.h. Currently, this declares the
calling convention for the Microsoft, Borland and Watcom compilers on the Intel plat-
form. For other compilers on this platform, and on other platforms, it defaults to noth-
ing. So, to add support for a new compiler, you could:
(1) leave jdsystem.h unchanged, and set the right compiler options when compiling
(this is the preferred approach);
(2) add support for the new compiler in jdsystem.h.
Ox extension function syntax
void OXCALL FnFunction(OxVALUE *rtn, OxVALUE *pv, int cArg);
rtn in: pointer to an OxVALUE of type OX
INT and value 0
out: receives the return value of pvFunc
pv in: the arguments of the function call; they must be checked for
type before being accessed.
out: unchanged, apart from possible conversion from OX
INT to
OX
DOUBLE or vice versa
cArg in: number of elements in pv; unless the function has a variable
number of arguments, there is no need to reference this value.
No return value.
Description
This is the syntax required to make a function callable from Ox. FnFunction
should be replaced by an appropriate name, but is not the name under which the
function is known inside an Ox program.
21
Komentarze do niniejszej Instrukcji