Commit b5919771 authored by Paul Eggert's avatar Paul Eggert

Assume C89 offsetof in xterm.c, xlwmenu.c

* lwlib/xlwmenu.c (offset):
* src/xterm.c (cvt_string_to_pixel_args):
Use offsetof, not XtOffset.
parent 96a858a4
......@@ -105,7 +105,7 @@ xlwMenuTranslations [] =
/* FIXME: F10 should enter the menu, the first one in the menu-bar. */
#define offset(field) XtOffset(XlwMenuWidget, field)
#define offset(field) offsetof (XlwMenuRec, field)
static XtResource
xlwMenuResources[] =
......@@ -1378,9 +1378,9 @@ x_alloc_lighter_color_for_widget (Widget widget, Display *display, Colormap cmap
static XtConvertArgRec cvt_string_to_pixel_args[] =
{XtWidgetBaseOffset, (XtPointer) XtOffset (Widget, core.screen),
{XtWidgetBaseOffset, (XtPointer) offsetof (WidgetRec, core.screen),
sizeof (Screen *)},
{XtWidgetBaseOffset, (XtPointer) XtOffset (Widget, core.colormap),
{XtWidgetBaseOffset, (XtPointer) offsetof (WidgetRec, core.colormap),
sizeof (Colormap)}
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