summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2001-12-21 17:28:36 +0100
committerKevin Ryde <user42@zip.com.au>2001-12-21 17:28:36 +0100
commit6f97e0d49fcb961b84c69d97c81baeb462d1d6dc (patch)
treea0305e828d5f9383a8494644d98a9ecf597523ec /demos
parentf162b5eeab274718539dd1211eec970cc8ed65c5 (diff)
downloadgmp-6f97e0d49fcb961b84c69d97c81baeb462d1d6dc.tar.gz
* demos/calc/calcread.c, demos/calc/calc-common.h,
demos/calc/calc-config-h.in, demos/calc/README: New files.
Diffstat (limited to 'demos')
-rw-r--r--demos/calc/calc-common.h36
-rw-r--r--demos/calc/calc-config-h.in22
2 files changed, 58 insertions, 0 deletions
diff --git a/demos/calc/calc-common.h b/demos/calc/calc-common.h
new file mode 100644
index 000000000..e1330cd03
--- /dev/null
+++ b/demos/calc/calc-common.h
@@ -0,0 +1,36 @@
+/* Prototypes etc for calc program.
+
+Copyright 2001 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along with
+this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+#include <stddef.h> /* for size_t */
+#ifdef NO_CALC_H
+#include "calc.h"
+#endif
+#include "calc-config.h"
+
+struct calc_keywords_t {
+ char *name;
+ int value;
+};
+
+extern int calc_option_readline;
+extern int calc_more_input;
+extern const struct calc_keywords_t calc_keywords[];
+
+int calc_input (char *buf, size_t max_size);
+void calc_init_readline (void);
diff --git a/demos/calc/calc-config-h.in b/demos/calc/calc-config-h.in
new file mode 100644
index 000000000..5aed7c3d2
--- /dev/null
+++ b/demos/calc/calc-config-h.in
@@ -0,0 +1,22 @@
+/* Templates for calc program configuration. -*- mode:c -*-
+
+Copyright 2001 Free Software Foundation, Inc.
+
+This file is part of the GNU MP Library.
+
+This program is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free Software
+Foundation; either version 2 of the License, or (at your option) any later
+version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License along with
+this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+Place - Suite 330, Boston, MA 02111-1307, USA. */
+
+
+/* Define if GNU readline should be used. */
+#undef WITH_READLINE