]> git.ipfire.org Git - thirdparty/sarg.git/commit - include/conf.h
Factorisation of the usage of indexonly
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 27 Jan 2011 15:26:45 +0000 (15:26 +0000)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Thu, 27 Jan 2011 15:26:45 +0000 (15:26 +0000)
commit6588b1372885d667b40e0af155342bf46b42e2fa
treed5b6aed091a3cb9646adb6771bdd019af06ed89f
parent9e1caac59f318dd955709f1042fba744debd0dea
Factorisation of the usage of indexonly

Several functions were called and then decided to return immediately
if indexonly was set. Most of those functions were called once or
twice but never from more than one place.

This change let the calling function decide if the call must be made
based on the value of indexonly which is always known.

The gain is mainly a reduction of the number of parameters passed to a
few functions. It also makes the code more readable as it is not
necessary to dig into the function to discover that it does nothing in
that case.
include/conf.h
include/defs.h
log.c
report.c
sort.c
totday.c