summaryrefslogtreecommitdiff
path: root/xcalc.h
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-12 20:09:07 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-12 20:09:07 -0200
commitdd6ca812a9e540ade4afd5db9dd13ea7ed3ea3ab (patch)
treec3e1491e12e511d463f827103ef6eb2fcd5c2a11 /xcalc.h
parentfd75efe1d9b57c483f7cedd9e2dce34b97eef75e (diff)
Ansification and compile warning fixes.
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and all gcc 4.3 and sparse warnings.
Diffstat (limited to 'xcalc.h')
-rw-r--r--xcalc.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/xcalc.h b/xcalc.h
index df8916e..5020bfe 100644
--- a/xcalc.h
+++ b/xcalc.h
@@ -39,6 +39,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 +115,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 +146,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