4 * Copyright (c) 1987-2008 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"
31 #define R_REGS "showregisters"
32 #define R_TRIG "trigtype"
33 #define R_ZEROES "showzeroes"
34 #define R_TSEP "showthousands"
35 #define R_WORDLEN "wordlen"
36 #define R_XPOS "xposition"
37 #define R_YPOS "yposition"
39 extern const char *Rbstr
[];
40 extern const char *Rtstr
[];
42 void resources_init();
44 void set_resource(const char *key
, const char *value
);
45 void set_int_resource(const char *key
, int value
);
46 void set_boolean_resource(const char *key
, int value
);
47 void set_enumerated_resource(const char *key
, const char *values
[], int value
);
49 char *get_resource(const char *key
);
50 int get_int_resource(const char *key
, int *value
);
51 int get_boolean_resource(const char *key
, int *value
);
52 int get_enumerated_resource(const char *key
, const char *values
[], int *value
);
54 const char *get_radix();
55 const char *get_tsep();