tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH] style(5): No struct typedefs
> Sometimes I even wonder why typedef exists in C. Feels like I could
> accomplish the same with a #define
For `typedef struct foo Something', yes, you could (well, except for
their different scopes, and possibly some other corner cases).
For `typedef void (*callback_t)(void *, status_t, int)', not so much.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index