aboutsummaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
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);