bl/bl.h
author ali <ali@juiblex.co.uk>
Fri Jan 27 10:30:16 2012 +0000 (2012-01-27)
changeset 5 f600b0d1fc5d
parent 0 gclib/gclib.h@c2f4c0285180
child 6 faab25d520dd
permissions -rw-r--r--
Rename to bookloupe
     1 #if HAVE_GLIB
     2 
     3 #include <glib.h>
     4 #define BL_DIR_SEPARATOR G_DIR_SEPARATOR
     5 #define BL_DIR_SEPARATOR_S G_DIR_SEPARATOR_S
     6 #define BL_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 <bl/macros.h>
    26 #include <bl/types.h>
    27 #include <bl/mem.h>
    28 #include <bl/fileutils.h>
    29 #include <bl/strfuncs.h>
    30 #include <bl/blstring.h>
    31 #include <bl/utils.h>
    32 
    33 #endif	/* HAVE_GLIB */
    34 
    35 #include <bl/textfileutils.h>
    36 #include <bl/spawn.h>