aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-05-17 06:33:29 +0000
committermarha <marha@users.sourceforge.net>2010-05-17 06:33:29 +0000
commit66e589cf1596b4d1612a4876440e9f677e4742d5 (patch)
tree2194a1ca1d7af1425ee9fa5e0bce5d9e0e76bca5
parente433a0ea8102dc6eaf845698620ab677d70e4774 (diff)
downloadvcxsrv-66e589cf1596b4d1612a4876440e9f677e4742d5.tar.gz
vcxsrv-66e589cf1596b4d1612a4876440e9f677e4742d5.tar.bz2
vcxsrv-66e589cf1596b4d1612a4876440e9f677e4742d5.zip
Solved compile warnings
-rw-r--r--apps/xcalc/actions.h16
-rw-r--r--apps/xcalc/makefile2
-rw-r--r--apps/xcalc/xcalc.c18
3 files changed, 12 insertions, 24 deletions
diff --git a/apps/xcalc/actions.h b/apps/xcalc/actions.h
index 69f1983a5..741b36597 100644
--- a/apps/xcalc/actions.h
+++ b/apps/xcalc/actions.h
@@ -36,14 +36,14 @@ from the X Consortium.
*/
extern void
- add(), back(), bell(), clearit(), cosine(), decimal(),
- degree(), digit(), divide(), e(), enter(), epower(), equal(),
- exchange(), factorial(),
- inverse(), leftParen(), logarithm(), multiply(), naturalLog(),
- negate(), nop(), off(), pi(), power(), quit(), recall(),
- reciprocal(), rightParen(), roll(), scientific(), selection(), sine(),
- square(), squareRoot(), store(), subtract(), sum(),
- tangent(), tenpower(), XexchangeY();
+ add(Widget,XEvent*,String*,Cardinal*), back(Widget,XEvent*,String*,Cardinal*), bell(Widget,XEvent*,String*,Cardinal*), clearit(Widget,XEvent*,String*,Cardinal*), cosine(Widget,XEvent*,String*,Cardinal*), decimal(Widget,XEvent*,String*,Cardinal*),
+ degree(Widget,XEvent*,String*,Cardinal*), digit(Widget,XEvent*,String*,Cardinal*), divide(Widget,XEvent*,String*,Cardinal*), e(Widget,XEvent*,String*,Cardinal*), enter(Widget,XEvent*,String*,Cardinal*), epower(Widget,XEvent*,String*,Cardinal*), equal(Widget,XEvent*,String*,Cardinal*),
+ exchange(Widget,XEvent*,String*,Cardinal*), factorial(Widget,XEvent*,String*,Cardinal*),
+ inverse(Widget,XEvent*,String*,Cardinal*), leftParen(Widget,XEvent*,String*,Cardinal*), logarithm(Widget,XEvent*,String*,Cardinal*), multiply(Widget,XEvent*,String*,Cardinal*), naturalLog(Widget,XEvent*,String*,Cardinal*),
+ negate(Widget,XEvent*,String*,Cardinal*), nop(Widget,XEvent*,String*,Cardinal*), off(Widget,XEvent*,String*,Cardinal*), pi(Widget,XEvent*,String*,Cardinal*), power(Widget,XEvent*,String*,Cardinal*), quit(Widget,XEvent*,String*,Cardinal*), recall(Widget,XEvent*,String*,Cardinal*),
+ reciprocal(Widget,XEvent*,String*,Cardinal*), rightParen(Widget,XEvent*,String*,Cardinal*), roll(Widget,XEvent*,String*,Cardinal*), scientific(Widget,XEvent*,String*,Cardinal*), selection(Widget,XEvent*,String*,Cardinal*), sine(Widget,XEvent*,String*,Cardinal*),
+ square(Widget,XEvent*,String*,Cardinal*), squareRoot(Widget,XEvent*,String*,Cardinal*), store(Widget,XEvent*,String*,Cardinal*), subtract(Widget,XEvent*,String*,Cardinal*), sum(Widget,XEvent*,String*,Cardinal*),
+ tangent(Widget,XEvent*,String*,Cardinal*), tenpower(Widget,XEvent*,String*,Cardinal*), XexchangeY(Widget,XEvent*,String*,Cardinal*);
/*
* calculator action table
diff --git a/apps/xcalc/makefile b/apps/xcalc/makefile
index eab29a50f..5288e202d 100644
--- a/apps/xcalc/makefile
+++ b/apps/xcalc/makefile
@@ -1,6 +1,6 @@
WINAPP = xcalc
-DEFINES += XT_NO_SM
+DEFINES += XT_NO_SM IEEE
INCLUDELIBFILES = \
$(MHMAKECONF)\libXt\src\$(OBJDIR)\libXt.lib \
diff --git a/apps/xcalc/xcalc.c b/apps/xcalc/xcalc.c
index 0f943115a..5c9bc632a 100644
--- a/apps/xcalc/xcalc.c
+++ b/apps/xcalc/xcalc.c
@@ -339,14 +339,7 @@ void Syntax(argc, argv)
*/
/*ARGSUSED*/
-Boolean convert(w, selection, target, type, value, length, format)
- Widget w;
- Atom *selection;
- Atom *target;
- Atom *type;
- XtPointer *value;
- unsigned long *length;
- int *format;
+Boolean convert(Widget w, Atom *selection, Atom *target, Atom *type, XtPointer *value, unsigned long *length, int *format)
{
if (*target == XA_STRING)
{
@@ -364,9 +357,7 @@ Boolean convert(w, selection, target, type, value, length, format)
* called when xcalc loses ownership of the selection.
*/
/*ARGSUSED*/
-void lose(w, selection)
- Widget w;
- Atom *selection;
+void lose(Widget w, Atom *selection)
{
XawToggleUnsetCurrent(LCD);
}
@@ -375,10 +366,7 @@ void lose(w, selection)
* called when some other client got the selection.
*/
/*ARGSUSED*/
-void done(w, selection, target)
- Widget w;
- Atom *selection;
- Atom *target;
+void done(Widget w, Atom *selection, Atom *target)
{
selstr[0] = '\0';
}