more simplification, got gtk.c under 3k lines
[gcalctool.git] / gcalctool / functions.h
blobf631df8461d2bbc26b20b87968de6bb347eab5c1
2 /* $Header$
4 * Copyright (C) 2004-2007 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 void str_replace(char **, char *, char *);
29 void syntaxdep_show_display();
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 void exp_append(char *text);
35 void exp_replace(char *text);
36 void exp_del();
38 struct exprm_state *get_state(void);
39 void new_state(void);
41 void perform_undo(void);
42 void perform_redo(void);
43 void clear_undo_history(void);
45 void do_base(enum base_type);
46 void do_business();
47 void do_calc();
48 void do_lr_calc();
49 void do_expression();
50 void do_clear();
51 void do_clear_entry();
52 void do_delete();
53 void do_numtype(enum num_type);
54 void do_expno();
55 void do_immed();
56 void do_mode(int);
57 void do_number();
58 void do_paren();
59 void do_shift(int);
60 void do_sto();
61 void do_rcl();
62 void do_exchange();
63 void do_accuracy();
64 void do_constant();
65 void do_function();
66 void do_point();
67 void do_portion();
68 void do_sin();
69 void do_sinh();
70 void do_asin();
71 void do_asinh();
72 void do_cos();
73 void do_cosh();
74 void do_acos();
75 void do_acosh();
76 void do_tan();
77 void do_tanh();
78 void do_atan();
79 void do_atanh();
80 void do_trigtype(enum trig_type);
81 void do_percent();
82 void do_factorial(int *, int *);
83 int do_rcl_reg(int reg, int value[MP_SIZE]);
84 int do_sto_reg(int reg, int value[MP_SIZE]);
86 #endif /*FUNCTIONS_H*/