Fix errors from make distcheck
[gcalctool.git] / src / functions.h
blob8cb4f42a82db1de0c2efd2e0080ac87a195c278a
2 /* $Header$
4 * Copyright (c) 2004-2008 Sami Pietila
5 * Copyright (c) 2008 Robert Ancell
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 * 02111-1307, USA.
23 #ifndef FUNCTIONS_H
24 #define FUNCTIONS_H
26 /* Available functions */
27 enum
29 FN_0, FN_1, FN_2, FN_3,
30 FN_4, FN_5, FN_6, FN_7,
31 FN_8, FN_9, FN_A, FN_B,
32 FN_C, FN_D, FN_E, FN_F,
33 FN_NUMERIC_POINT,
34 FN_CALCULATE,
35 FN_CLEAR, FN_CLEAR_ENTRY,
36 FN_START_BLOCK, FN_END_BLOCK,
37 FN_ADD, FN_SUBTRACT,
38 FN_MULTIPLY, FN_DIVIDE,
39 FN_BACKSPACE,
40 FN_DELETE,
41 FN_CHANGE_SIGN,
42 FN_INTEGER,
43 FN_FRACTION,
44 FN_PERCENTAGE,
45 FN_SQUARE,
46 FN_SQUARE_ROOT,
47 FN_RECIPROCAL,
48 FN_E_POW_X,
49 FN_10_POW_X,
50 FN_2_POW_X,
51 FN_X_POW_Y,
52 FN_X_POW_Y_INV,
53 FN_FACTORIAL,
54 FN_RANDOM,
55 FN_SIN, FN_SINH, FN_ASIN, FN_ASINH,
56 FN_COS, FN_COSH, FN_ACOS, FN_ACOSH,
57 FN_TAN, FN_TANH, FN_ATAN, FN_ATANH,
58 FN_NATURAL_LOGARITHM,
59 FN_LOGARITHM,
60 FN_LOGARITHM2,
61 FN_ABSOLUTE_VALUE,
62 FN_TRUNC,
63 FN_MODULUS_DIVIDE,
64 FN_1S_COMPLEMENT,
65 FN_2S_COMPLEMENT,
66 FN_EXPONENTIAL,
67 FN_NOT, FN_OR, FN_AND, FN_XOR, FN_XNOR,
68 FN_TOGGLE_BIT,
69 FN_FINC_CTRM,
70 FN_FINC_DDB,
71 FN_FINC_FV,
72 FN_FINC_GPM,
73 FN_FINC_PMT,
74 FN_FINC_PV,
75 FN_FINC_RATE,
76 FN_FINC_SLN,
77 FN_FINC_SYD,
78 FN_FINC_TERM,
79 FN_SHIFT,
80 FN_STORE, FN_RECALL, FN_EXCHANGE,
81 FN_SET_ACCURACY,
82 FN_SET_BASE,
83 FN_SET_NUMBERTYPE,
84 FN_SET_TRIG_TYPE,
85 FN_SET_WORDLEN,
86 FN_UNDO,
87 FN_REDO,
88 FN_CONSTANT,
89 FN_FUNCTION,
90 FN_PASTE,
91 FN_INSERT_CHARACTER,
92 NFUNCTIONS
95 void do_expression(int function, int arg, int cursor);
97 #endif /*FUNCTIONS_H*/