patch-1.3.35 linux/scripts/tkparse.h

Next file: linux/Documentation/networking/z8530drv.txt
Previous file: linux/scripts/tkparse.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.34/linux/scripts/tkparse.h linux/scripts/tkparse.h
@@ -0,0 +1,64 @@
+
+enum token {
+  tok_menuname, 
+  tok_menuoption, 
+  tok_comment, 
+  tok_bool, 
+  tok_tristate, 
+  tok_dep_tristate,
+  tok_nop,
+  tok_if, 
+  tok_else, 
+  tok_fi, 
+  tok_int,
+  tok_unknown
+};
+
+enum operator {
+  op_eq,
+  op_neq,
+  op_and,
+  op_or,
+  op_bang,
+  op_lparen,
+  op_rparen,
+  op_variable,
+  op_kvariable,
+  op_constant,
+  op_nuked
+};
+
+union var
+{
+  char * str;
+  struct kconfig * cfg;
+};
+
+struct condition
+{
+  struct condition * next;
+  enum operator op;
+  union var variable;
+};
+
+#define GLOBAL_WRITTEN 1
+struct kconfig
+{
+  struct kconfig * next;
+  int flags;
+  enum token tok;
+  char   menu_number;
+  char   menu_line;
+  char   submenu_start;
+  char   submenu_end;
+  char * optionname;
+  char * dflt;
+  char * label;
+  union var depend;
+  struct condition * cond;
+};
+
+extern struct kconfig * config;
+extern struct kconfig * clast;
+extern struct kconfig * koption;
+


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this