Drop opt_e{,_t,_enable}, use filter.h/.c to implement -e parsing
diff --git a/options.h b/options.h
index 9a00629..2a10ddf 100644
--- a/options.h
+++ b/options.h
@@ -1,6 +1,8 @@
#include <stdio.h>
#include <sys/types.h>
+struct filter;
+
struct options_t {
int align; /* -a: default alignment column for results */
char * user; /* -u: username to run command as */
@@ -19,6 +21,7 @@
#if defined(HAVE_LIBUNWIND)
int bt_depth; /* how may levels of stack frames to show */
#endif /* defined(HAVE_LIBUNWIND) */
+ struct filter *filter;
};
extern struct options_t options;
@@ -32,11 +35,6 @@
struct opt_p_t *next;
};
-struct opt_e_t {
- char *name;
- struct opt_e_t *next;
-};
-
struct opt_F_t {
char *filename;
struct opt_F_t *next;
@@ -51,9 +49,6 @@
extern struct opt_p_t *opt_p; /* attach to process with a given pid */
-extern struct opt_e_t *opt_e; /* list of function names to display */
-extern int opt_e_enable; /* 0 if '!' is used, 1 otherwise */
-
extern struct opt_F_t *opt_F; /* alternate configuration file(s) */
extern struct opt_x_t *opt_x; /* list of functions to break at */