aboutsummaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
authorgotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-03-30 15:47:15 +0000
committergotmor <gotmor@f2baff5b-bf2c-0410-a398-912abdc3d8b2>2007-03-30 15:47:15 +0000
commita88827cf901f7d8d70c6c09907232042c357e477 (patch)
treefb83618e404eb86fd3b80cb516746014589bfc5d /action.h
parent317b0417b2b189fa15de3fc9542fb9c6ffe8239e (diff)
downloaddzen-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.h10
1 files changed, 7 insertions, 3 deletions
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);