Get rid of all compile warnings, make PLIST reflect reality.
This commit is contained in:
parent
d6ab100eeb
commit
cef9f9b6ca
@ -1,26 +1,68 @@
|
|||||||
*** xengine.c~ Wed Oct 3 10:58:17 1990
|
--- xengine.c.orig Sun Mar 1 15:12:37 1998
|
||||||
--- xengine.c Sun Dec 8 22:17:43 1996
|
+++ xengine.c Sun Mar 1 15:40:55 1998
|
||||||
***************
|
@@ -29,8 +29,8 @@
|
||||||
*** 180,191 ****
|
|
||||||
|
#define PI 3.141592654
|
||||||
Arg args[10];
|
|
||||||
|
-XtCallbackProc redraw_callback();
|
||||||
! XtSetArg(args[0], XtNwidth, 0);
|
-XtTimerCallbackProc Cylcle();
|
||||||
! XtSetArg(args[1], XtNheight, 0);
|
+void redraw_callback( Widget, XEvent*, String*, Cardinal*);
|
||||||
XtGetValues(w, args, 2);
|
+void Cycle( XtPointer, XtIntervalId* );
|
||||||
-
|
|
||||||
- width = args[0].value;
|
Widget toplevel, base, rpm_info, engine;
|
||||||
- height = args[1].value;
|
GC gcPiston, gcShaft, gcCylinder, gcRoter, gcBack, gcDep, gcPre, gcEngine;
|
||||||
|
@@ -47,7 +47,7 @@
|
||||||
XFreePixmap(XtDisplay(engine), enginePixmap);
|
Arg args[10];
|
||||||
enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine)));
|
XtTranslations newTranslations;
|
||||||
--- 180,188 ----
|
static XtActionsRec redrawActions[] = {
|
||||||
|
- {"expose", (XtCallbackProc) redraw_callback},
|
||||||
Arg args[10];
|
+ {"expose", redraw_callback},
|
||||||
|
};
|
||||||
! XtSetArg(args[0], XtNwidth, &width);
|
|
||||||
! XtSetArg(args[1], XtNheight, &height);
|
static char *overrideTranslations =
|
||||||
XtGetValues(w, args, 2);
|
@@ -59,8 +59,6 @@
|
||||||
|
int i;
|
||||||
XFreePixmap(XtDisplay(engine), enginePixmap);
|
int count;
|
||||||
enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine)));
|
|
||||||
|
- XtTimerCallbackProc Cycle();
|
||||||
|
-
|
||||||
|
toplevel = XtInitialize("xengine", "XEngine", NULL, 0, &argc, argv);
|
||||||
|
|
||||||
|
for (count = 1; count < argc; count++) {
|
||||||
|
@@ -170,7 +168,7 @@
|
||||||
|
XtMainLoop();
|
||||||
|
}
|
||||||
|
|
||||||
|
-XtCallbackProc
|
||||||
|
+void
|
||||||
|
redraw_callback(w, event, params, nparams)
|
||||||
|
Widget w;
|
||||||
|
XEvent *event;
|
||||||
|
@@ -180,22 +178,19 @@
|
||||||
|
|
||||||
|
Arg args[10];
|
||||||
|
|
||||||
|
- XtSetArg(args[0], XtNwidth, 0);
|
||||||
|
- XtSetArg(args[1], XtNheight, 0);
|
||||||
|
+ XtSetArg(args[0], XtNwidth, &width);
|
||||||
|
+ XtSetArg(args[1], XtNheight, &height);
|
||||||
|
XtGetValues(w, args, 2);
|
||||||
|
|
||||||
|
- width = args[0].value;
|
||||||
|
- height = args[1].value;
|
||||||
|
-
|
||||||
|
XFreePixmap(XtDisplay(engine), enginePixmap);
|
||||||
|
enginePixmap = XCreatePixmap(XtDisplay(engine), XtWindow(engine), width, height, DefaultDepthOfScreen(XtScreen(engine)));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
-XtTimerCallbackProc
|
||||||
|
+void
|
||||||
|
Cycle(client_data, id)
|
||||||
|
- caddr_t client_data;
|
||||||
|
- XtIntervalId id;
|
||||||
|
+ XtPointer client_data;
|
||||||
|
+ XtIntervalId* id;
|
||||||
|
{
|
||||||
|
|
||||||
|
Arg args[10];
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
bin/xengine
|
bin/xengine
|
||||||
|
man/cat1/xengine.0
|
||||||
share/doc/xengine/README
|
share/doc/xengine/README
|
||||||
man/man1/xengine.1
|
@dirrm share/doc/xengine
|
||||||
|
Loading…
Reference in New Issue
Block a user