Updated Danish translation
[gcalctool.git] / src / calctool.h
blobf945057ed8c093e98567208cc5edcd6bfa896e9c
1 /* Copyright (c) 1987-2008 Sun Microsystems, Inc. All Rights Reserved.
2 * Copyright (c) 2008-2009 Robert Ancell
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17 * 02111-1307, USA.
20 #ifndef CALCTOOL_H
21 #define CALCTOOL_H
23 #include <glib/gi18n.h>
25 #include "config.h"
26 #include "mp.h"
27 #include "display.h"
29 /* To make lint happy. */
30 #define SNPRINTF (void) snprintf
31 #define STRNCPY (void) strncpy
33 #define MAX_DIGITS 200 /* Maximum displayable number of digits. */
34 #define MAX_LOCALIZED (MAX_DIGITS * (1 + MB_LEN_MAX) + MB_LEN_MAX)
36 #ifndef MAXLINE
37 #define MAXLINE 512 /* Length of character strings. */
38 #endif
40 #ifndef RCNAME
41 #define RCNAME ".gcalctoolrc"
42 #endif
44 #undef TRUE
45 #define TRUE 1
46 #undef FALSE
47 #define FALSE 0
49 /* Calctool variables and options. */
50 typedef struct {
51 char *progname; /* Name of this program. */
53 GCDisplay display; /* Display stack */
55 const char *digits[16]; /* Localized digit values */
56 const char *radix; /* Locale specific radix string. */
57 const char *tsep; /* Locale specific thousands separator. */
58 int tsep_count; /* Number of digits between separator. */
59 } CalculatorVariables;
61 extern CalculatorVariables *v; /* Calctool variables and options. */
63 #endif /* CALCTOOL_H */