aboutsummaryrefslogtreecommitdiff
path: root/apps/xcalc/xcalc.h
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-12-26 20:18:03 +0000
committermarha <marha@users.sourceforge.net>2010-12-26 20:18:03 +0000
commitf28d4c94798d88757227b8c517a05a6ca354dc6f (patch)
tree41ef20b85d86516051d7cac98c77a13a58a227ff /apps/xcalc/xcalc.h
parent98a38f8fe605b90577b7a07f68b8a0866dd18a15 (diff)
downloadvcxsrv-f28d4c94798d88757227b8c517a05a6ca354dc6f.tar.gz
vcxsrv-f28d4c94798d88757227b8c517a05a6ca354dc6f.tar.bz2
vcxsrv-f28d4c94798d88757227b8c517a05a6ca354dc6f.zip
Update to xcalc-1.0.4.1
Diffstat (limited to 'apps/xcalc/xcalc.h')
-rw-r--r--apps/xcalc/xcalc.h44
1 files changed, 42 insertions, 2 deletions
diff --git a/apps/xcalc/xcalc.h b/apps/xcalc/xcalc.h
index df8916ef4..855dc4a46 100644
--- a/apps/xcalc/xcalc.h
+++ b/apps/xcalc/xcalc.h
@@ -1,4 +1,3 @@
-/* $XConsortium: xcalc.h,v 1.4 94/04/17 20:43:32 converse Exp $ */
/*
Copyright (c) 1989 X Consortium
@@ -28,7 +27,6 @@ other dealings in this Software without prior written authorization
from the X Consortium.
*/
-/* $XFree86$ */
/*
* xcalc.h - symbolic constants for xcalc
@@ -39,6 +37,21 @@ from the X Consortium.
#ifndef _XCALC_H_
#define _XCALC_H_
+#include <X11/Intrinsic.h>
+#include <X11/StringDefs.h>
+
+#include <stdio.h>
+#include <X11/Xos.h>
+#include <math.h>
+#include <signal.h>
+#if !defined(IEEE) && defined(SVR4)
+#include <siginfo.h>
+#endif
+#include <setjmp.h>
+#include <errno.h>
+#include <X11/Xlocale.h>
+
+
#ifdef SIGNALRETURNSINT
#define signal_t int
#else
@@ -100,6 +113,17 @@ from the X Consortium.
#define XCalc_GRADAM 4 /* grad indicator */
#define XCalc_PAREN 5 /* parenthesis indicator */
+/* actions.c */
+extern XtActionsRec Actions[];
+extern int ActionsCount;
+
+/* math.c */
+extern signal_t fperr(int sig);
+extern signal_t illerr(int sig);
+extern void fail_op(void);
+extern int pre_op(int keynum);
+extern void post_op(void);
+
extern void numeric(int keynum);
extern void bkspf(void);
extern void decf(void);
@@ -120,4 +144,20 @@ extern void oneop(int keynum);
extern void offf(void);
extern void ResetCalc(void);
+#ifndef IEEE
+extern jmp_buf env;
+#endif
+
+/* xcalc.c */
+extern void do_select(Time time);
+extern void draw(char *string);
+extern void Quit(void);
+extern void ringbell(void);
+extern void setflag(int indicator, Boolean on);
+
+extern int rpn;
+#define LCD_STR_LEN 32
+extern char dispstr[LCD_STR_LEN];
+extern Atom wm_delete_window;
+
#endif