Kaydet (Commit) d97f048a authored tarafından Guido van Rossum's avatar Guido van Rossum

Fixed duplicate use of OFF macro.

üst 670ceb30
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment