libffi declaration mystery
Andreas Schwab
schwab@suse.de
Fri May 24 04:37:00 GMT 2002
Bo Thorsen <bo@sonofthor.dk> writes:
|> Hi all,
|>
|> This might show a basic misunderstanding in my C skills (or the lack of :) but
|> I can't figure this out.
|>
|> In libffi/include/ffi.h there is this:
|>
|> /* These are defined in ffi.c */
|> extern ffi_type ffi_type_void;
|> extern ffi_type ffi_type_uint8;
|> extern ffi_type ffi_type_sint8;
|> extern ffi_type ffi_type_uint16;
|> extern ffi_type ffi_type_sint16;
|> extern ffi_type ffi_type_uint32;
|> extern ffi_type ffi_type_sint32;
|> extern ffi_type ffi_type_uint64;
|> extern ffi_type ffi_type_sint64;
|> extern ffi_type ffi_type_float;
|> extern ffi_type ffi_type_double;
|> extern ffi_type ffi_type_longdouble;
|> extern ffi_type ffi_type_pointer;
|>
|> extern ffi_type ffi_type_ushort;
|> extern ffi_type ffi_type_sint;
|> extern ffi_type ffi_type_uint;
|> extern ffi_type ffi_type_slong;
|> extern ffi_type ffi_type_ulong;
|>
|> The comment is wrong.
Yes.
|> There is no place in libffi where the vars are defined,
There is, look at src/types.c.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libffi-discuss
mailing list