This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libffi declaration mystery


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]