gclib/utils.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
ali@0
     1
#ifndef GC_UTIL_H
ali@0
     2
#define GC_UTIL_H
ali@0
     3
ali@0
     4
#ifdef WIN32
ali@0
     5
#define GC_DIR_SEPARATOR '\\'
ali@0
     6
#define GC_DIR_SEPARATOR_S "\\"
ali@0
     7
#define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR || (c)=='/')
ali@0
     8
#else
ali@0
     9
#define GC_DIR_SEPARATOR '/'
ali@0
    10
#define GC_DIR_SEPARATOR_S "/"
ali@0
    11
#define GC_IS_DIR_SEPARATOR(c) ((c)==GC_DIR_SEPARATOR)
ali@0
    12
#endif
ali@0
    13
ali@0
    14
char *path_get_basename(const char *filename);
ali@0
    15
ali@0
    16
#endif /* GC_UTIL_H */