libt3config
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
util.h
1 /* Copyright (C) 2011-2012 G.P. Halkes
2  This program is free software: you can redistribute it and/or modify
3  it under the terms of the GNU General Public License version 3, as
4  published by the Free Software Foundation.
5 
6  This program is distributed in the hope that it will be useful,
7  but WITHOUT ANY WARRANTY; without even the implied warranty of
8  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  GNU General Public License for more details.
10 
11  You should have received a copy of the GNU General Public License
12  along with this program. If not, see <http://www.gnu.org/licenses/>.
13 */
14 #ifndef T3_CONFIG_UTIL_H
15 #define T3_CONFIG_UTIL_H
16 
17 #include "config_api.h"
18 #include "config_internal.h"
19 
20 #ifdef HAS_STRDUP
21 #define _t3_config_strdup strdup
22 #else
23 T3_CONFIG_LOCAL char *_t3_config_strdup(const char *str);
24 #endif
25 
26 T3_CONFIG_LOCAL void _t3_unescape(char *dest, const char *src);
27 T3_CONFIG_LOCAL double _t3_config_strtod(char *text);
28 T3_CONFIG_LOCAL t3_config_type_t _t3_config_str2type(const char *name);
29 T3_CONFIG_LOCAL file_name_t *_t3_config_ref_file_name(const t3_config_t *config);
30 T3_CONFIG_LOCAL void _t3_config_unref_file_name(const t3_config_t *config);
31 #endif