diff options
author | Guido van Rossum <guido@python.org> | 1991-11-19 20:26:28 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-11-19 20:26:28 (GMT) |
commit | d97f048ae825d852bba1eea361ac41cb428cd3b0 (patch) | |
tree | 4fed59cd2114770addd119e30577a3e025b5d8a4 /Modules/flmodule.c | |
parent | 670ceb30d3c7e093c31d9155e5a0548154b17d86 (diff) | |
download | cpython-d97f048ae825d852bba1eea361ac41cb428cd3b0.zip cpython-d97f048ae825d852bba1eea361ac41cb428cd3b0.tar.gz cpython-d97f048ae825d852bba1eea361ac41cb428cd3b0.tar.bz2 |
Fixed duplicate use of OFF macro.
Diffstat (limited to 'Modules/flmodule.c')
-rw-r--r-- | Modules/flmodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/flmodule.c b/Modules/flmodule.c index 143a1ee..277b1fa 100644 --- a/Modules/flmodule.c +++ b/Modules/flmodule.c @@ -281,6 +281,8 @@ static struct memberlist generic_memberlist[] = { {NULL} /* Sentinel */ }; +#undef OFF + static object * generic_getattr(g, name) genericobject *g; @@ -1734,6 +1736,8 @@ form_dealloc(f) DEL(f); } +#define OFF(x) offsetof(FL_FORM, x) + static struct memberlist form_memberlist[] = { {"window", T_LONG, OFF(window), RO}, {"w", T_FLOAT, OFF(w)}, @@ -1747,6 +1751,8 @@ static struct memberlist form_memberlist[] = { {NULL} /* Sentinel */ }; +#undef OFF + static object * form_getattr(f, name) formobject *f; |