diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-07-18 19:51:15 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-07-18 19:51:15 +0200 |
commit | 43d34d2473917521376f7d56126779f941205105 (patch) | |
tree | 15cf7b276d5705923c4dda172786a9a347b98fe6 /src/kike.c | |
parent | 353230b18ba7c8c225c3b23a759798558fabb7de (diff) | |
download | xK-43d34d2473917521376f7d56126779f941205105.tar.gz xK-43d34d2473917521376f7d56126779f941205105.tar.xz xK-43d34d2473917521376f7d56126779f941205105.zip |
Add a LIST_HEADER macro
To save us from specifying the `next' and `prev' pointers all the time.
It's not perfect, just a tiny bit better.
Diffstat (limited to 'src/kike.c')
-rw-r--r-- | src/kike.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -215,9 +215,7 @@ enum struct client { - struct client *next; ///< The next link in a chain - struct client *prev; ///< The previous link in a chain - + LIST_HEADER (client) struct server_context *ctx; ///< Server context int socket_fd; ///< The TCP socket @@ -310,8 +308,7 @@ enum struct channel_user { - struct channel_user *prev; - struct channel_user *next; + LIST_HEADER (channel_user) unsigned modes; char nickname[]; |