comparison src/EmacsManager.c @ 4528:726060ee587c g++-warning-removal-2008-10-28

First draft of g++ 4.3 warning removal patch. Builds. *Needs ChangeLogs.*
author Stephen J. Turnbull <stephen@xemacs.org>
date Wed, 29 Oct 2008 04:06:33 +0900
parents fc7067b7f407
children 308d34e9f07d
comparison
equal deleted inserted replaced
4524:03ba50f7ecd7 4528:726060ee587c
30 #ifdef LWLIB_MENUBARS_MOTIF 30 #ifdef LWLIB_MENUBARS_MOTIF
31 #include "xmotif.h" 31 #include "xmotif.h"
32 #include <Xm/RowColumn.h> 32 #include <Xm/RowColumn.h>
33 #endif /* LWLIB_MENUBARS_MOTIF */ 33 #endif /* LWLIB_MENUBARS_MOTIF */
34 #include "compiler.h" 34 #include "compiler.h"
35 #include "../lwlib/xt-wrappers.h"
35 36
36 /* For I, Emacs, am a kind god. Unlike the goddess Athena and the 37 /* For I, Emacs, am a kind god. Unlike the goddess Athena and the
37 Titan Motif, I require no ritual sacrifices to placate the lesser 38 Titan Motif, I require no ritual sacrifices to placate the lesser
38 daemons of geometry management. */ 39 daemons of geometry management. */
39 40
40 static XtResource resources[] = { 41 static XtResource resources[] = {
41 #define offset(field) XtOffset(EmacsManagerWidget, emacs_manager.field) 42 #define offset(field) XtOffset(EmacsManagerWidget, emacs_manager.field)
42 { XtNresizeCallback, XtCCallback, 43 #define res(name,_class,intrepr,size,member,extrepr,value) \
43 XtRCallback, sizeof (XtCallbackList), 44 Xt_RESOURCE (name, _class, intrepr, size, offset(member), extrepr, value)
44 offset(resize_callback), XtRImmediate, (XtPointer) 0 }, 45 res (XtNresizeCallback, XtCCallback, XtRCallback, XtCallbackList,
45 { XtNqueryGeometryCallback, XtCCallback, 46 resize_callback, XtRImmediate, 0),
46 XtRCallback, sizeof (XtCallbackList), 47 res (XtNqueryGeometryCallback, XtCCallback, XtRCallback, XtCallbackList,
47 offset(query_geometry_callback), XtRImmediate, (XtPointer) 0 }, 48 query_geometry_callback, XtRImmediate, 0),
48 { XtNuserData, XtCUserData, 49 res (XtNuserData, XtCUserData, XtRPointer, XtPointer,
49 XtRPointer, sizeof (XtPointer), 50 user_data, XtRImmediate, 0),
50 offset(user_data), XtRImmediate, (XtPointer) 0 },
51 }; 51 };
52 52
53 /**************************************************************** 53 /****************************************************************
54 * 54 *
55 * Full class record constant 55 * Full class record constant
73 #ifdef LWLIB_USES_MOTIF 73 #ifdef LWLIB_USES_MOTIF
74 /* superclass */ (WidgetClass) &xmManagerClassRec, 74 /* superclass */ (WidgetClass) &xmManagerClassRec,
75 #else 75 #else
76 /* superclass */ (WidgetClass) &compositeClassRec, 76 /* superclass */ (WidgetClass) &compositeClassRec,
77 #endif 77 #endif
78 /* class_name */ "EmacsManager", 78 /* class_name */ (String) "EmacsManager",
79 /* widget_size */ sizeof (EmacsManagerRec), 79 /* widget_size */ sizeof (EmacsManagerRec),
80 /* class_initialize */ ClassInitialize, 80 /* class_initialize */ ClassInitialize,
81 /* class_part_init */ NULL, 81 /* class_part_init */ NULL,
82 /* class_inited */ FALSE, 82 /* class_inited */ FALSE,
83 /* initialize */ NULL, 83 /* initialize */ NULL,