un-flag-protected regex field-type support
restructured for easy clean-up on failed regex field-type init
support for:
- regex type (ERE/BRE)
- which group to consume (from begining of the input to the end of that group will be considered parsed)
- which group to return as matched content
moved from regex to pcre because of confusion/wierdness in handling of sub-matches
moved from regex to pcre because of confusion/wierdness in handling of sub-matches
fixed a bug with regex field-args parsing + added more tests (for invalid and consume-less-than-returned case)
killed regexp _type_, using as pcre defaults to has posix extended and does not seem to have the same basic mode as glibc
added some tests for regex with negation
added a few tests for tokenized field-type
added a bunch of tests for both regex and tokenized field-types + added enableRegex flag to ln_ctx which enables/disables use of regex based fields (such a flag is required because regex is perf-sensitive and it will allow us to warn the users when they look at documentation for enableRegex flag, it is kept disabled by default because of perf-sensitivity)
added docs for regex field-type
added compatibility layer which allows liblognorm to work with older versions of json-c (eg. 0.9, which debian squeeze uses)
adds valgrind support to "make check" + fixes some invalid memory-access and some memory-leaks in sample-loading, tokenized-parser, regex-parser etc
moved a free in regex parser inside the code-block where memory for it is allocated
Merge branch 'master' of https://github.com/janmejay/liblognorm into janmejay-master
Merge branch 'janmejay-master'
Avoid using uninitialized variable;
reformat to fit my screen
Improve failure handling
Make warning more visible in debug
Add usage output and some error handling