]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fixed duplicate use of OFF macro.
authorGuido van Rossum <guido@python.org>
Tue, 19 Nov 1991 20:26:28 +0000 (20:26 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 19 Nov 1991 20:26:28 +0000 (20:26 +0000)
Modules/flmodule.c

index 143a1ee4692f84a775d3d041b006b3ecb60e7fd2..277b1fa9f12570398d65ceffe1b27a168740d1e2 100644 (file)
@@ -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;