~ubuntu-branches/ubuntu/lucid/gcalctool/lucid-updates

« back to all changes in this revision

Viewing changes to src/functions.h

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2010-04-07 19:41:56 UTC
  • mfrom: (1.3.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100407194156-hgj8g002ffce2de0
Tags: 5.30.0.is.5.28.2-0ubuntu1
Downgrade to 5.28.2 as the new version does not support number bases
as well.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
/*  $Header$
 
3
 *
 
4
 *  Copyright (c) 2004-2008 Sami Pietila
 
5
 *  Copyright (c) 2008 Robert Ancell
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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.
 
21
 */
 
22
 
 
23
#ifndef FUNCTIONS_H
 
24
#define FUNCTIONS_H
 
25
 
 
26
/* Available functions */
 
27
enum
 
28
{
 
29
    FN_SPACE,
 
30
    FN_0, FN_1, FN_2, FN_3,
 
31
    FN_4, FN_5, FN_6, FN_7,
 
32
    FN_8, FN_9, FN_A, FN_B,
 
33
    FN_C, FN_D, FN_E, FN_F,
 
34
    FN_NUMERIC_POINT,
 
35
    FN_CALCULATE,
 
36
    FN_CLEAR, FN_CLEAR_ENTRY,
 
37
    FN_START_BLOCK, FN_END_BLOCK,
 
38
    FN_ADD, FN_SUBTRACT,
 
39
    FN_MULTIPLY, FN_DIVIDE,
 
40
    FN_BACKSPACE,
 
41
    FN_DELETE,        
 
42
    FN_CHANGE_SIGN,
 
43
    FN_INTEGER,
 
44
    FN_FRACTION,
 
45
    FN_PERCENTAGE,
 
46
    FN_SQUARE,
 
47
    FN_SQUARE_ROOT,
 
48
    FN_RECIPROCAL,
 
49
    FN_E_POW_X,
 
50
    FN_10_POW_X,
 
51
    FN_2_POW_X,
 
52
    FN_X_POW_Y,
 
53
    FN_X_POW_Y_INV,
 
54
    FN_FACTORIAL,
 
55
    FN_RANDOM,
 
56
    FN_SIN, FN_SINH, FN_ASIN, FN_ASINH,
 
57
    FN_COS, FN_COSH, FN_ACOS, FN_ACOSH,
 
58
    FN_TAN, FN_TANH, FN_ATAN, FN_ATANH,
 
59
    FN_NATURAL_LOGARITHM,
 
60
    FN_LOGARITHM,
 
61
    FN_LOGARITHM2,
 
62
    FN_ABSOLUTE_VALUE,
 
63
    FN_ABSOLUTE_VALUE_FUNC,        
 
64
    FN_TRUNC,
 
65
    FN_MODULUS_DIVIDE,
 
66
    FN_1S_COMPLEMENT,
 
67
    FN_2S_COMPLEMENT,
 
68
    FN_EXPONENTIAL,
 
69
    FN_NOT, FN_OR, FN_AND, FN_XOR, FN_XNOR,
 
70
    FN_TOGGLE_BIT,
 
71
    FN_FINC_CTRM,
 
72
    FN_FINC_DDB,
 
73
    FN_FINC_FV,
 
74
    FN_FINC_GPM,
 
75
    FN_FINC_PMT,
 
76
    FN_FINC_PV,
 
77
    FN_FINC_RATE,
 
78
    FN_FINC_SLN,
 
79
    FN_FINC_SYD,
 
80
    FN_FINC_TERM,
 
81
    FN_SHIFT,
 
82
    FN_STORE, FN_RECALL, FN_EXCHANGE,
 
83
    FN_SET_ACCURACY,
 
84
    FN_SET_BASE,
 
85
    FN_SET_NUMBERTYPE,
 
86
    FN_SET_TRIG_TYPE,
 
87
    FN_SET_WORDLEN,
 
88
    FN_UNDO,
 
89
    FN_REDO,
 
90
    FN_CONSTANT,
 
91
    FN_FUNCTION,
 
92
    FN_PASTE,
 
93
    FN_INSERT_CHARACTER,
 
94
    NFUNCTIONS
 
95
};
 
96
 
 
97
void do_expression(int function, int arg, int cursor_start, int cursor_end);
 
98
 
 
99
#endif /*FUNCTIONS_H*/