#define INT32 int
unsigned INT32 i = 10; //正确
typedef int int32;
unsigned int32 j = 10; //出错 为啥子喃 ???
因为在预编译的时候INT32被替换为int 而unsigned int i = 10;语句是正确的 但是 用typedef取的别名不支持这种类型扩展.
define PCHAR char *
PCHAR p3,p4;
//以上扩展开来就是: char *p3,p4; == char *p3; char p4;
typedef char* pchar;
pchar p1,p2;
//正是因为typedef取的别名不支持类型扩展 所以这二句扩展开来为: char *p1; char *p2;