View | Details | Raw Unified | Return to bug 80473
Collapse All | Expand All

(-)widgets.c (-8 / +4 lines)
Lines 18-24 Link Here
18
#include "LoadFace.h"
18
#include "LoadFace.h"
19
#include "ArrangeBox.h"
19
#include "ArrangeBox.h"
20
#include "MachineInfo.h"
20
#include "MachineInfo.h"
21
#include <varargs.h>
21
#include <stdarg.h>
22
#include "version.h"
22
#include "version.h"
23
#include <math.h>
23
#include <math.h>
24
#include <X11/Xresource.h>
24
#include <X11/Xresource.h>
Lines 49-55 Link Here
49
49
50
static void exitDisplay(),popdown(),showHelp(),popdownHelp();
50
static void exitDisplay(),popdown(),showHelp(),popdownHelp();
51
51
52
Widget mkWidget();
52
Widget mkWidget(char* name, ...);
53
53
54
static XrmOptionDescRec optionTable[] = {
54
static XrmOptionDescRec optionTable[] = {
55
{"-interval",	"*interval",		XrmoptionSepArg,(caddr_t)NULL},
55
{"-interval",	"*interval",		XrmoptionSepArg,(caddr_t)NULL},
Lines 571-581 Link Here
571
 *                 resource-name, resource, ... , NULL);
571
 *                 resource-name, resource, ... , NULL);
572
 */
572
 */
573
Widget
573
Widget
574
mkWidget(va_alist)
574
mkWidget(char* name, ...)
575
va_dcl
576
{
575
{
577
	va_list arg;
576
	va_list arg;
578
	char *name;
579
	WidgetClass class;
577
	WidgetClass class;
580
	Widget parent;
578
	Widget parent;
581
	String argname;
579
	String argname;
Lines 583-590 Link Here
583
	int n = 0;
581
	int n = 0;
584
	Arg args[20];
582
	Arg args[20];
585
	
583
	
586
	va_start(arg);
584
	va_start(arg, name);
587
	name   = va_arg(arg,char*);
588
	class  = va_arg(arg,WidgetClass);
585
	class  = va_arg(arg,WidgetClass);
589
	parent = va_arg(arg,Widget);
586
	parent = va_arg(arg,Widget);
590
587
591
----------------------- end of patch ------------------------

Return to bug 80473