]> git.tuebingen.mpg.de Git - paraslash.git/commit
afs: Provide generic counter for matching rows.
authorAndre Noll <maan@systemlinux.org>
Wed, 6 Jul 2011 20:30:59 +0000 (22:30 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 6 Nov 2011 11:29:13 +0000 (12:29 +0100)
commita5842a27e24fae1053b23ef51777564e87adb395
tree6878d3b187d64d6e8b42f8e7b54d0137850fd330
parentff70d3f74c6116cf5b3c9a6708218788363efa7c
afs: Provide generic counter for matching rows.

Several afs commands implemented their own counters, often only to
find out whether they should print an error message because no rows
matched the given pattern(s).

This patch makes counting matching rows generic by increasing the new
pattern_match_data->num_matches counter in action_if_pattern_matches()
so that all commands which use this facility for iterating over all
audio files can evaluate the counter afterwards. This allows to remove
several per-command counters.
afs.c
afs.h
aft.c
blob.c