gclib/gclib.h
author ali <ali@juiblex.co.uk>
Wed Jan 25 19:33:43 2012 +0000 (2012-01-25)
changeset 2 cbd63f7ba40f
permissions -rw-r--r--
Don't test that gutcheck ignores paragraphs with only short lines
     1 #if HAVE_GLIB
     2 
     3 #include <glib.h>
     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
     8 #define String GString
     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
    22 
    23 #else	/* !HAVE_GLIB */
    24 
    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>
    32 
    33 #endif	/* HAVE_GLIB */
    34 
    35 #include <gclib/textfileutils.h>
    36 #include <gclib/spawn.h>