I also extracted all the common code out of the LoadMonitor functions.
The combined result of these changes is to make the code about 300 lines shorter.
Patch is versus 1.23.3
Code: Select all
src/zm_config.cpp | 21 +--
src/zm_db.cpp | 175 +++++++++++--
src/zm_db.h | 56 ++++-
src/zm_event.cpp | 167 ++++--------
src/zm_monitor.cpp | 756 ++++++++++++---------------------------------------
src/zm_monitor.h | 2 +
src/zm_user.cpp | 78 ++----
src/zm_user.h | 2 +-
src/zm_zone.cpp | 88 +++----
src/zmfix.cpp | 50 +---
src/zmu.cpp | 25 +--
11 files changed, 535 insertions(+), 885 deletions(-)
Actual patch is at http://www.dgmo.org/diffs/zm-1.diff