[Syslog-ng-commit] syslog-ng--mainline: tightened LogMessage struct, added support for more than 9 match groups
-e Link: <http://intra.balabit/cgi-bin/viewarch.cgi/devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-137> Revision: syslog-ng--mainline--2.0--patch-137 Archive: devel@balabit.hu--other-1 Creator: Balazs Scheidler <bazsi@balabit.hu> Date: Sat Mar 3 15:01:24 CET 2007 Standard-date: 2007-03-03 14:01:24 GMT Modified-files: ChangeLog src/afuser.c src/filter.c src/logmsg.c src/logmsg.h src/logreader.c src/logwriter.c src/macros.c src/sgroup.c src/templates.c tests/unit/test_msgparse.c tests/unit/test_template.c New-patches: devel@balabit.hu--other-1/syslog-ng--mainline--2.0--patch-137 Summary: tightened LogMessage struct, added support for more than 9 match groups Keywords: * src/logmsg.h (LogMessage): structure tightened a bit, avoid double-referencing various message-parts by inlining GString declarations, instead of allocating them at runtime to be more cache friendly, use 8 bit values for ref_cnt, flags, pri; re_matches is allocated at runtime to allow more matches * src/filter.c (filter_re_eval): dynamically allocate the msg->re_matches array, follow LogMessage changes * src/templates.c (log_template_compile): support ${} syntax for regex match replacements to allow more than 9 matches * src/afuser.c, src/logreader.c, src/logwriter.c, src/sgroup.c, src/test_msgparse.c, src/test_template.c: follow LogMessage changes Diff stats: ChangeLog | 30 +++++++++++++++++++ src/afuser.c | 2 - src/filter.c | 19 ++++++++---- src/logmsg.c | 69 ++++++++++++++++++++++++++++----------------- src/logmsg.h | 14 +++++---- src/logreader.c | 2 - src/logwriter.c | 4 +- src/macros.c | 24 +++++++-------- src/sgroup.c | 24 +++++++-------- src/templates.c | 13 +++++++- tests/unit/test_msgparse.c | 8 ++--- tests/unit/test_template.c | 2 - 12 files changed, 139 insertions(+), 72 deletions(-)
participants (1)
-
bazsi@balabit.hu