From 16850c175d2b12ea5dace6eaa3734037e65c0d4a Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 1 Feb 2012 12:52:46 -0500 Subject: Include headers instead of using extern definitions Caught a mistake in SmeThreeD.h: smeThreeDWidgetClass was declared instead of smeThreeDObjectClass. Also fixes redundant redeclaration warnings. Signed-off-by: Matt Turner --- include/X11/Xaw3d/SmeThreeD.h | 2 +- src/AllWidgets.c | 74 ++++++++++++++++++------------------------- 2 files changed, 32 insertions(+), 44 deletions(-) diff --git a/include/X11/Xaw3d/SmeThreeD.h b/include/X11/Xaw3d/SmeThreeD.h index dfe7a64..19020af 100644 --- a/include/X11/Xaw3d/SmeThreeD.h +++ b/include/X11/Xaw3d/SmeThreeD.h @@ -69,7 +69,7 @@ SOFTWARE. typedef struct _SmeThreeDClassRec *SmeThreeDObjectClass; typedef struct _SmeThreeDRec *SmeThreeDObject; -extern WidgetClass smeThreeDWidgetClass; +extern WidgetClass smeThreeDObjectClass; _XFUNCPROTOBEGIN diff --git a/src/AllWidgets.c b/src/AllWidgets.c index 57a485f..830b856 100644 --- a/src/AllWidgets.c +++ b/src/AllWidgets.c @@ -31,49 +31,37 @@ in this Software without prior written authorization from the X Consortium. #include #include -extern WidgetClass applicationShellWidgetClass; -extern WidgetClass asciiSinkObjectClass; -extern WidgetClass asciiSrcObjectClass; -extern WidgetClass asciiTextWidgetClass; -extern WidgetClass boxWidgetClass; -extern WidgetClass commandWidgetClass; -extern WidgetClass compositeWidgetClass; -extern WidgetClass constraintWidgetClass; -extern WidgetClass coreWidgetClass; -extern WidgetClass dialogWidgetClass; -extern WidgetClass formWidgetClass; -extern WidgetClass gripWidgetClass; -extern WidgetClass labelWidgetClass; -extern WidgetClass layoutWidgetClass; -extern WidgetClass listWidgetClass; -extern WidgetClass menuButtonWidgetClass; -extern WidgetClass objectClass; -extern WidgetClass overrideShellWidgetClass; -extern WidgetClass panedWidgetClass; -extern WidgetClass pannerWidgetClass; -extern WidgetClass portholeWidgetClass; -extern WidgetClass rectObjClass; -extern WidgetClass repeaterWidgetClass; -extern WidgetClass scrollbarWidgetClass; -extern WidgetClass shellWidgetClass; -extern WidgetClass simpleMenuWidgetClass; -extern WidgetClass simpleWidgetClass; -extern WidgetClass smeBSBObjectClass; -extern WidgetClass smeLineObjectClass; -extern WidgetClass smeObjectClass; -extern WidgetClass smeThreeDObjectClass; -extern WidgetClass stripChartWidgetClass; -extern WidgetClass textSinkObjectClass; -extern WidgetClass textSrcObjectClass; -extern WidgetClass textWidgetClass; -extern WidgetClass threeDWidgetClass; -extern WidgetClass toggleWidgetClass; -extern WidgetClass topLevelShellWidgetClass; -extern WidgetClass transientShellWidgetClass; -extern WidgetClass treeWidgetClass; -extern WidgetClass vendorShellWidgetClass; -extern WidgetClass viewportWidgetClass; -extern WidgetClass wmShellWidgetClass; +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include XmuWidgetNode XawWidgetArray[] = { { "applicationShell", &applicationShellWidgetClass }, -- cgit v1.2.3