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)
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
23 #include <glib/gi18n.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)
37 #define MAXLINE 512 /* Length of character strings. */
41 #define RCNAME ".gcalctoolrc"
49 /* Calctool variables and options. */
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 */