From a88827cf901f7d8d70c6c09907232042c357e477 Mon Sep 17 00:00:00 2001 From: gotmor Date: Fri, 30 Mar 2007 15:47:15 +0000 Subject: cosmetic changes git-svn-id: http://dzen.googlecode.com/svn/trunk@9 f2baff5b-bf2c-0410-a398-912abdc3d8b2 --- action.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'action.h') diff --git a/action.h b/action.h index 313efe5..47ed4d7 100644 --- a/action.h +++ b/action.h @@ -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); -- cgit v1.2.3-54-g00ecf