[fpc-devel] Apache header translation Patch
Inoussa OUEDRAOGO
inoussa12 at gmail.com
Mon Nov 12 10:32:13 CET 2007
> You can't get rid of that warning, and it should actually even be
> worded more strongly. It is simply not possible to access C-style
> varargs parameters at the callee side in FPC (you may be able to hak
> using pointers which will work on some platforms, but it will crash
> and burn in most cases).
This is the c prototype ( type ) translated, actualy it is a array of PCHAR.
<code taken from apache source>
const char *(*take_argv) (cmd_parms *parms, void *mconfig,
int argc, char *const argv[]);
</code>
Is the following translation valid ?
take_argv_t = function (parms: Pcmd_parms; mconfig: Pointer; argc:
cint; argv: array of PChar): PChar; cdecl;
--
Inoussa O.
More information about the fpc-devel
mailing list