Blame demos/calc/calc-common.h
|
Packit |
5c3484 |
/* Prototypes etc for calc program.
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
Copyright 2001 Free Software Foundation, Inc.
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
This file is part of the GNU MP Library.
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
This program is free software; you can redistribute it and/or modify it under
|
|
Packit |
5c3484 |
the terms of the GNU General Public License as published by the Free Software
|
|
Packit |
5c3484 |
Foundation; either version 3 of the License, or (at your option) any later
|
|
Packit |
5c3484 |
version.
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
Packit |
5c3484 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
Packit |
5c3484 |
PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
You should have received a copy of the GNU General Public License along with
|
|
Packit |
5c3484 |
this program. If not, see https://www.gnu.org/licenses/. */
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
#include <stddef.h> /* for size_t */
|
|
Packit |
5c3484 |
#ifndef NO_CALC_H
|
|
Packit |
5c3484 |
#include "calc.h"
|
|
Packit |
5c3484 |
#endif
|
|
Packit |
5c3484 |
#include "calc-config.h"
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
struct calc_keywords_t {
|
|
Packit |
5c3484 |
char *name;
|
|
Packit |
5c3484 |
int value;
|
|
Packit |
5c3484 |
};
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
extern int calc_option_readline;
|
|
Packit |
5c3484 |
extern int calc_more_input;
|
|
Packit |
5c3484 |
extern const struct calc_keywords_t calc_keywords[];
|
|
Packit |
5c3484 |
|
|
Packit |
5c3484 |
int calc_input (char *buf, size_t max_size);
|
|
Packit |
5c3484 |
void calc_init_readline (void);
|