diff options
author | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-03-30 15:47:15 +0000 |
---|---|---|
committer | gotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2> | 2007-03-30 15:47:15 +0000 |
commit | a88827cf901f7d8d70c6c09907232042c357e477 (patch) | |
tree | fb83618e404eb86fd3b80cb516746014589bfc5d /action.h | |
parent | 317b0417b2b189fa15de3fc9542fb9c6ffe8239e (diff) | |
download | dzen-a88827cf901f7d8d70c6c09907232042c357e477.tar.gz dzen-a88827cf901f7d8d70c6c09907232042c357e477.zip |
cosmetic changes
git-svn-id: http://dzen.googlecode.com/svn/trunk@9 f2baff5b-bf2c-0410-a398-912abdc3d8b2
Diffstat (limited to 'action.h')
-rw-r--r-- | action.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -4,6 +4,10 @@ * */ +#define MAXEVENTS 32 +#define MAXACTIONS 256 +#define MAXOPTIONS 256 + /* Event, Action data structures */ typedef struct AS As; typedef struct EV Ev; @@ -30,16 +34,16 @@ struct action_lookup { }; struct AS { - char *options[256]; + char *options[MAXOPTIONS]; int (*handler)(char **); }; struct EV { int isset; - As *action[256]; + As *action[MAXACTIONS]; }; -extern Ev ev_table[256]; +extern Ev ev_table[MAXEVENTS]; /* utility functions */ void do_action(int); |