Mercurial > hg
comparison mcabber/src/compl.h @ 965:1bdf0f1b16c0
Use U suffix for unsigned defines
Also fix a few small typos: value 2 (1<<1) weren't used in enums.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 27 Sep 2006 22:57:23 +0200 |
parents | ae23c8826efb |
children | 6de60e142372 |
comparison
equal
deleted
inserted
replaced
964:2c645e0a3304 | 965:1bdf0f1b16c0 |
---|---|
1 #ifndef __COMPL_H__ | 1 #ifndef __COMPL_H__ |
2 #define __COMPL_H__ 1 | 2 #define __COMPL_H__ 1 |
3 | 3 |
4 #include <glib.h> | 4 #include <glib.h> |
5 | 5 |
6 #define COMPL_CMD (1<<0) | 6 #define COMPL_CMD (1U<<0) |
7 #define COMPL_JID (1<<2) | 7 #define COMPL_JID (1U<<1) |
8 #define COMPL_URLJID (1<<3) // Not implemented yet | 8 #define COMPL_URLJID (1U<<2) // Not implemented yet |
9 #define COMPL_NAME (1<<4) // Not implemented yet | 9 #define COMPL_NAME (1U<<3) // Not implemented yet |
10 #define COMPL_STATUS (1<<5) | 10 #define COMPL_STATUS (1U<<4) |
11 #define COMPL_FILENAME (1<<6) // Not implemented yet | 11 #define COMPL_FILENAME (1U<<5) // Not implemented yet |
12 #define COMPL_ROSTER (1<<7) | 12 #define COMPL_ROSTER (1U<<6) |
13 #define COMPL_BUFFER (1<<8) | 13 #define COMPL_BUFFER (1U<<7) |
14 #define COMPL_GROUP (1<<9) | 14 #define COMPL_GROUP (1U<<8) |
15 #define COMPL_GROUPNAME (1<<10) | 15 #define COMPL_GROUPNAME (1U<<9) |
16 #define COMPL_MULTILINE (1<<11) | 16 #define COMPL_MULTILINE (1U<<10) |
17 #define COMPL_ROOM (1<<12) | 17 #define COMPL_ROOM (1U<<11) |
18 #define COMPL_RESOURCE (1<<13) | 18 #define COMPL_RESOURCE (1U<<12) |
19 #define COMPL_AUTH (1<<14) | 19 #define COMPL_AUTH (1U<<13) |
20 #define COMPL_REQUEST (1<<15) | 20 #define COMPL_REQUEST (1U<<14) |
21 #define COMPL_EVENTS (1<<16) | 21 #define COMPL_EVENTS (1U<<15) |
22 #define COMPL_EVENTSID (1<<17) | 22 #define COMPL_EVENTSID (1U<<16) |
23 | 23 |
24 void compl_add_category_word(guint, const char *command); | 24 void compl_add_category_word(guint, const char *command); |
25 void compl_del_category_word(guint categ, const char *word); | 25 void compl_del_category_word(guint categ, const char *word); |
26 GSList *compl_get_category_list(guint cat_flags); | 26 GSList *compl_get_category_list(guint cat_flags); |
27 | 27 |