csync_exclude: Use PathMatchSpecA instead of PathMatchSpecW
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 20 Oct 2015 15:06:32 +0000 (17:06 +0200)
committerOlivier Goffart <ogoffart@woboq.com>
Tue, 20 Oct 2015 16:38:47 +0000 (18:38 +0200)
commit71827549d6bc8083baa61d8c2a5f3f3198526002
tree13c9d94c291972919cb331c88bff2b31ee1069a2
parentde5de7acc57875e70997f7aff16a396ee9c5c6ad
csync_exclude: Use PathMatchSpecA instead of PathMatchSpecW

So we avoid lots of memory allocation.
We can work with char* directly since both the pattern and the file
name are in UTF-8 and there is no need to understand unicode for
such pattern.

(In fact, '?' would not match anyore non-ascii characters, but I
don't think that's a problem. I don't think anyone use '?' in its
exclude list. And the two allocations per call to csync_fnmatch are
really worth getting rid of)
csync/src/csync_misc.c
csync/tests/csync_tests/check_csync_exclude.c