This is the mail archive of the
libffi-discuss@sources.redhat.com
mailing list for the libffi project.
Re: libffi declaration mystery
- From: Andreas Schwab <schwab at suse dot de>
- To: Bo Thorsen <bo at sonofthor dot dk>
- Cc: libffi-discuss at sources dot redhat dot com, gcc at gcc dot gnu dot org
- Date: Fri, 24 May 2002 13:37:11 +0200
- Subject: Re: libffi declaration mystery
- References: <200205241319.18160.bo@sonofthor.dk>
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."