RFC on plans to implement a c2ffi->cffi generator

Attila Lendvai attila at lendvai.name
Mon Dec 14 12:46:38 UTC 2015


FTR, tried to compile stuff and according to gcc error messages the
following two namespaces are used in C:

 - functions, variables, typedefs
 - structs and unions

e.g. this is valid C:

// an anonymous struct typedef'd as foo
typedef struct {
    char c;
} foo;

// a different body!
struct foo {
    int i;
};

union a_union {
    struct foo s1;
    foo s2;
};

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Foreign aid might be defined as a transfer from poor people in rich
countries to rich people in poor countries.”
	— Douglas Casey



More information about the cffi-devel mailing list