gclib/gclib.h
changeset 0 c2f4c0285180
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gclib/gclib.h	Tue Jan 24 23:54:05 2012 +0000
     1.3 @@ -0,0 +1,36 @@
     1.4 +#if HAVE_GLIB
     1.5 +
     1.6 +#include <glib.h>
     1.7 +#define GC_DIR_SEPARATOR G_DIR_SEPARATOR
     1.8 +#define GC_DIR_SEPARATOR_S G_DIR_SEPARATOR_S
     1.9 +#define GC_IS_DIR_SEPARATOR(c) G_IS_DIR_SEPARATOR(c)
    1.10 +#define boolean gboolean
    1.11 +#define String GString
    1.12 +#define mem_new0 g_new0
    1.13 +#define mem_free g_free
    1.14 +#define str_dup g_strdup
    1.15 +#define str_ndup g_strndup
    1.16 +#define path_get_basename g_path_get_basename
    1.17 +#define file_get_contents(filename,contents,length) \
    1.18 +  g_file_get_contents(filename,contents,length,NULL)
    1.19 +#define string_new g_string_new
    1.20 +#define string_append g_string_append
    1.21 +#define string_append_len g_string_append_len
    1.22 +#define string_append_c g_string_append_c
    1.23 +#define string_free g_string_free
    1.24 +#define string_set_size g_string_set_size
    1.25 +
    1.26 +#else	/* !HAVE_GLIB */
    1.27 +
    1.28 +#include <gclib/macros.h>
    1.29 +#include <gclib/types.h>
    1.30 +#include <gclib/mem.h>
    1.31 +#include <gclib/fileutils.h>
    1.32 +#include <gclib/strfuncs.h>
    1.33 +#include <gclib/gcstring.h>
    1.34 +#include <gclib/utils.h>
    1.35 +
    1.36 +#endif	/* HAVE_GLIB */
    1.37 +
    1.38 +#include <gclib/textfileutils.h>
    1.39 +#include <gclib/spawn.h>