4 * Copyright (c) 1987-2007 Sun Microsystems, Inc. All Rights Reserved.
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)
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
27 #define R_ACCURACY "accuracy"
29 #define R_DISPLAY "display"
30 #define R_MODE "modetype"
31 #define R_REGS "showregisters"
32 #define R_TRIG "trigtype"
33 #define R_ZEROES "showzeroes"
34 #define R_TSEP "showthousands"
35 #define R_SYNTAX "syntax"
36 #define R_BITCALC "bitcalculating"
37 #define R_XPOS "xposition"
38 #define R_YPOS "yposition"
40 extern char *Rbstr
[]; /* Base mode X resource strings. */
41 extern char *Rdstr
[]; /* Display mode X resource strings. */
42 extern char *Rmstr
[]; /* Mode mode X resource strings. */
43 extern char *Rtstr
[]; /* Trig mode X resource strings. */
44 extern char *Rsstr
[]; /* Syntax resource strings. */
45 extern char *Rcstr
[]; /* Bitcalculating mode. */
47 void resources_init();
48 void read_resources();
49 char *convert(char *);
52 void set_resource(char *key
, char *value
);
53 void set_int_resource(char *key
, int value
);
54 void set_boolean_resource(char *key
, int value
);
56 char *get_resource(char *key
);
57 int get_int_resource(char *key
, int *value
);
59 const char *get_radix();
60 const char *get_tsep();
61 void read_str(char **, char *);