Remove unused "ignore" field in widl structures
Dan Hipschman
dsh at linux.ucla.edu
Mon Jul 24 13:49:35 CDT 2006
This field is superfluous:
[widl]$ find -name "*.[chly]" | xargs fgrep -n ignore
./parser.y:1049: t->ignore = parse_only;
./parser.y:1126: f->ignore = parse_only;
./widltypes.h:208: int ignore, is_const, sign;
./widltypes.h:238: int ignore, idx;
./parser.tab.c:3841: t->ignore = parse_only;
./parser.tab.c:3918: f->ignore = parse_only;
This cleans up widl a bit by removing it.
ChangeLog:
* Remove unused "ignore" field in type_t and func_t structures
---
tools/widl/parser.y | 2 --
tools/widl/widltypes.h | 4 ++--
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/tools/widl/parser.y b/tools/widl/parser.y
index 7257bd8..4e8ce9e 100644
--- a/tools/widl/parser.y
+++ b/tools/widl/parser.y
@@ -1046,7 +1046,6 @@ static type_t *make_type(unsigned char t
t->attrs = NULL;
t->funcs = NULL;
t->fields = NULL;
- t->ignore = parse_only;
t->is_const = FALSE;
t->sign = 0;
t->defined = FALSE;
@@ -1123,7 +1122,6 @@ static func_t *make_func(var_t *def, var
func_t *f = xmalloc(sizeof(func_t));
f->def = def;
f->args = args;
- f->ignore = parse_only;
f->idx = -1;
INIT_LINK(f);
return f;
diff --git a/tools/widl/widltypes.h b/tools/widl/widltypes.h
index 508284e..7f575d7 100644
--- a/tools/widl/widltypes.h
+++ b/tools/widl/widltypes.h
@@ -205,7 +205,7 @@ struct _type_t {
const attr_t *attrs;
func_t *funcs;
var_t *fields;
- int ignore, is_const, sign;
+ int is_const, sign;
int defined, written, user_types_registered;
int typelib_idx;
/* parser-internal */
@@ -235,7 +235,7 @@ struct _var_t {
struct _func_t {
var_t *def;
var_t *args;
- int ignore, idx;
+ int idx;
/* parser-internal */
DECL_LINK(func_t);
More information about the wine-patches
mailing list