• Circular Typedefs
    Structs can easily have circular references: struct ATag { struct BTag* pB; }; struct BTag { struct ATag* pA; }; Can the same thing be done with typedefs? typedef struct { BType* pB; } AType;...
  • typedef & optimisation
    In the book "TCP/IP Lean" [1], the author states: "I have used #define in preference to typedef because compilers use better optimisation strategies for their native data types." Is this true of...
  • typedef & optimisation
    In the book "TCP/IP Lean" [1], the author states: "I have used #define in preference to typedef because compilers use better optimisation strategies for their native data types." Is this true of...
  • Circular Typedefs
    Structs can easily have circular references: struct ATag { struct BTag* pB; }; struct BTag { struct ATag* pA; }; Can the same thing be done with typedefs? typedef struct { BType* pB; } AType;...
  • typedef struct error
    Hi I have code something like in hello.h #ifndef _HELLO_H #define _HELLO_H #define S16 signed short int #define S8 signed char typedef struct player { int x; int y; int score; }; extern...