XQueryKeymap function declaration (in xlib.pp) seems to be wrong
Original Reporter info from Mantis: etrusco
-
Reporter name: Flávio Etrusco
Original Reporter info from Mantis: etrusco
- Reporter name: Flávio Etrusco
Description:
Function declaration is as follows (line 1574):
function XQueryKeymap(para1:PDisplay; para2:chararr32):cint;cdecl;external libX11;
The chararr32 type is declared as:
type chararr32 = array[0..31] of char;
Unless 'cdecl' imply/implement automatic conversion from char arrays to pointer, 'para2' should be declared 'out' or a pointer type should be declared.
If the declaration is correct, maybe the documentation could be augmented a bit further than "Remark: The parameters in our declaration of the C function should match exactly the ones in the declaration in C."...
Mantis conversion info:
- Mantis ID: 15845
- Version: 2.5.1
- Fixed in version: 2.4.4
- Fixed in revision: 16401 (#b4e9a218)