Correctly populate the constant and function menus (Bug #527545)
[gcalctool.git] / gcalctool / functions.h
blobd8b0037c555b7aafa1e3b8f91ef04eaddfbf79e7
2 /* $Header$
4 * Copyright (C) 2004-2008 Sami Pietila
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 * 02111-1307, USA.
22 #ifndef FUNCTIONS_H
23 #define FUNCTIONS_H
25 #include "calctool.h"
27 void show_error(char *);
28 char *str_replace(char *, char *, char *);
29 void syntaxdep_show_display(void);
30 char *gc_strdup(char *str);
31 int usable_num(int MPnum[MP_SIZE]);
33 void make_exp(char *number, int t[MP_SIZE]);
34 int exp_insert(char *text, int);
35 void exp_replace(char *text);
36 void exp_clear(void);
38 struct exprm_state *get_state(void);
40 void perform_undo(void);
41 void perform_redo(void);
42 void clear_undo_history(void);
44 void do_base(enum base_type);
45 void do_business(void);
46 void do_calc(void);
47 void do_expression(int function, int arg, int cursor);
48 void do_clear(void);
49 void do_clear_entry(void);
50 void do_backspace(void);
51 void do_delete(void);
52 void do_numtype(enum num_type);
53 void do_expno(void);
54 void do_immed(void);
55 void do_number(void);
56 void do_paren(void);
57 void do_shift(int);
58 void do_sto(int);
59 void do_rcl(int);
60 void do_exchange(int);
61 void do_accuracy(int);
62 void do_constant(int);
63 void do_function(int);
64 void do_point(void);
65 void do_portion(void);
66 void do_sin(void);
67 void do_sinh(void);
68 void do_asin(void);
69 void do_asinh(void);
70 void do_cos(void);
71 void do_cosh(void);
72 void do_acos(void);
73 void do_acosh(void);
74 void do_tan(void);
75 void do_tanh(void);
76 void do_atan(void);
77 void do_atanh(void);
78 void do_trigtype(enum trig_type);
79 void do_percent(void);
80 void do_factorial(int *, int *);
81 int do_rcl_reg(int reg, int value[MP_SIZE]);
82 int do_sto_reg(int reg, int value[MP_SIZE]);
84 #endif /*FUNCTIONS_H*/