radiant/xmlstuff.o \
radiant/xywindow.o \
libcmdlib.$(A) \
- libfilematch.$(A) \
libgtkutil.$(A) \
libl_net.$(A) \
libmathlib.$(A) \
plugins/vfspk3/archive.o \
plugins/vfspk3/vfs.o \
plugins/vfspk3/vfspk3.o \
+ libfilematch.$(A) \
$(INSTALLDIR)/plugins/bobtoolz.$(DLL): LIBS_EXTRA := $(LIBS_GLIB) $(LIBS_GTK)
$(INSTALLDIR)/plugins/bobtoolz.$(DLL): CPPFLAGS_EXTRA := $(CPPFLAGS_GLIB) $(CPPFLAGS_GTK) -Ilibs -Iinclude
#if !defined(INCLUDED_FILEMATCH_H)
#define INCLUDED_FILEMATCH_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
int matchpattern(const char *in, const char *pattern, int caseinsensitive);
int matchpattern_with_separator(const char *in, const char *pattern, int caseinsensitive, const char *separators, int wildcard_least_one);
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include "stream/stringstream.h"
#include "os/path.h"
#include "moduleobservers.h"
+#include "filematch.h"
#define VFS_MAXDIRS 64
for(j = 0; j < g_numForbiddenDirs; ++j)
{
const char *p = strrchr(directory, '/');
- p = (p ? (p+1) : path);
+ p = (p ? (p+1) : directory);
if(matchpattern(p, g_strForbiddenDirs[j], TRUE))
break;
}