1 /* Prototypes etc for calc program.
2
3 Copyright 2001 Free Software Foundation, Inc.
4
5 This file is part of the GNU MP Library.
6
7 This program is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free Software
9 Foundation; either version 3 of the License, or (at your option) any later
10 version.
11
12 This program is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 PARTICULAR PURPOSE. See the GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License along with
17 this program. If not, see https://www.gnu.org/licenses/. */
18
19 #include <stddef.h> /* for size_t */
20 #ifndef NO_CALC_H
21 #include "calc.h"
22 #endif
23 #include "calc-config.h"
24
25 struct calc_keywords_t {
26 char *name;
27 int value;
28 };
29
30 extern int calc_option_readline;
31 extern int calc_more_input;
32 extern const struct calc_keywords_t calc_keywords[];
33
34 int calc_input (char *buf, size_t max_size);
35 void calc_init_readline (void);