1 #include <stdarg.h> 2 #include <stdbool.h> 3 #include <stdint.h> 4 #include <stdlib.h> 5 6 #if !defined(DEFINE_FREEBSD) 7 typedef struct NoExternTy { 8 uint8_t field; 9 } NoExternTy; 10 #endif 11 12 #if !defined(DEFINE_FREEBSD) 13 typedef struct ContainsNoExternTy { 14 NoExternTy field; 15 } ContainsNoExternTy; 16 #endif 17 18 #if defined(DEFINE_FREEBSD) 19 typedef struct ContainsNoExternTy { 20 uint64_t field; 21 } ContainsNoExternTy; 22 #endif 23 24 typedef struct RenamedTy { 25 uint64_t y; 26 } RenamedTy; 27 28 typedef struct Foo { 29 int32_t x; 30 } Foo; 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif // __cplusplus 35 36 void no_extern_func(ContainsNoExternTy a); 37 38 void renamed_func(RenamedTy a); 39 40 void root(Foo a); 41 42 #ifdef __cplusplus 43 } // extern "C" 44 #endif // __cplusplus 45