Allow to match multiple patterns (#100).
authorDaniel Carl <danielcarl@gmx.de>
Sat, 6 Sep 2014 22:35:06 +0000 (00:35 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 6 Sep 2014 22:35:06 +0000 (00:35 +0200)
commit584b9fa94f9020c2b14b074002a9caf9bc5c8043
treedf483387f421faaadca434cf9725e844afcb31bd
parent9dd67ade189d799ead56857c01ede3798aa23215
Allow to match multiple patterns (#100).

Change the matching functions to not end at the NUL of the pattern. In stead
we give a pattern length parameter. This allows to process multiple patterns
without the need to put NUL-bytes into it or to allocate memory for the parts
to match.
src/autocmd.c
src/util.c
src/util.h
tests/test-util.c