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