1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef GLOBALS_SHARED_H #define GLOBALS_SHARED_H typedef struct { int x; double y; } Inner; typedef struct GlobalState { char name[32]; int counter; Inner inner; int array[4]; struct GlobalState* lib; // pointer to library GlobalState for deref-chain tests } GlobalState; #endif // GLOBALS_SHARED_H