又读expert c programming.
/usr/include$ grep time_t time.h
typedef __time_t time_t;
/usr/include$ grep __time_t time.h
# include /* This defines __time_t for us. */ (这个注释的好处...)
/usr/include$ grep __time_t bits/types.h
__STD_TYPE __TIME_T_TYPE __time_t; /* Seconds since the Epoch. */
而__STD_TYPE 其实就是typedef
l5g@desktop:/usr/include$ grep include bits/types.h
* Never include this file directly; use instead.
#include
#include
#include /* Defines __*_T_TYPE macros. */
l5g@desktop:/usr/include$ grep __TIMER_T_TYPE bits/typesizes.h
#define __TIMER_T_TYPE void *
终于到最后了 其实就是一个 void *
0 comments:
Post a Comment