mirror of https://github.com/python/cpython.git
Fixed duplicate use of OFF macro.
This commit is contained in:
parent
670ceb30d3
commit
d97f048ae8
|
@ -281,6 +281,8 @@ static struct memberlist generic_memberlist[] = {
|
||||||
{NULL} /* Sentinel */
|
{NULL} /* Sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#undef OFF
|
||||||
|
|
||||||
static object *
|
static object *
|
||||||
generic_getattr(g, name)
|
generic_getattr(g, name)
|
||||||
genericobject *g;
|
genericobject *g;
|
||||||
|
@ -1734,6 +1736,8 @@ form_dealloc(f)
|
||||||
DEL(f);
|
DEL(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define OFF(x) offsetof(FL_FORM, x)
|
||||||
|
|
||||||
static struct memberlist form_memberlist[] = {
|
static struct memberlist form_memberlist[] = {
|
||||||
{"window", T_LONG, OFF(window), RO},
|
{"window", T_LONG, OFF(window), RO},
|
||||||
{"w", T_FLOAT, OFF(w)},
|
{"w", T_FLOAT, OFF(w)},
|
||||||
|
@ -1747,6 +1751,8 @@ static struct memberlist form_memberlist[] = {
|
||||||
{NULL} /* Sentinel */
|
{NULL} /* Sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#undef OFF
|
||||||
|
|
||||||
static object *
|
static object *
|
||||||
form_getattr(f, name)
|
form_getattr(f, name)
|
||||||
formobject *f;
|
formobject *f;
|
||||||
|
|
Loading…
Reference in New Issue