4 #define GC_DIR_SEPARATOR G_DIR_SEPARATOR
5 #define GC_DIR_SEPARATOR_S G_DIR_SEPARATOR_S
6 #define GC_IS_DIR_SEPARATOR(c) G_IS_DIR_SEPARATOR(c)
7 #define boolean gboolean
9 #define mem_new0 g_new0
10 #define mem_free g_free
11 #define str_dup g_strdup
12 #define str_ndup g_strndup
13 #define path_get_basename g_path_get_basename
14 #define file_get_contents(filename,contents,length) \
15 g_file_get_contents(filename,contents,length,NULL)
16 #define string_new g_string_new
17 #define string_append g_string_append
18 #define string_append_len g_string_append_len
19 #define string_append_c g_string_append_c
20 #define string_free g_string_free
21 #define string_set_size g_string_set_size
23 #else /* !HAVE_GLIB */
25 #include <gclib/macros.h>
26 #include <gclib/types.h>
27 #include <gclib/mem.h>
28 #include <gclib/fileutils.h>
29 #include <gclib/strfuncs.h>
30 #include <gclib/gcstring.h>
31 #include <gclib/utils.h>
33 #endif /* HAVE_GLIB */
35 #include <gclib/textfileutils.h>
36 #include <gclib/spawn.h>