Command list size now calculated

No longer have to specify size, and keep it up to date
when adding new commands
This commit is contained in:
James Booth
2012-08-10 23:18:02 +01:00
parent cd3a0ddeb8
commit 6644fa953e
2 changed files with 7 additions and 6 deletions

View File

@@ -49,6 +49,8 @@ typedef enum {
#define notify_notification_new(summary, body, icon) notify_notification_new(summary, body, icon, NULL)
#endif
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
void p_slist_free_full(GSList *items, GDestroyNotify free_func);
void create_config_directory(void);
void create_dir(char *name);