pkgsrc/sysutils/lnav/patches/patch-src_pretty__printer.hh
wiz 937d9e5be1 Import lnav-0.7.3 as sysutils/lnav.
An advanced log file viewer for the small-scale.  Watch and analyze
your log files from a terminal.

Many logging tools, like Splunk, provide great features but are
optimized for large-scale deployments.  They require installing
and configuring servers before they can be effectively used.  There
is still a need for a robust log file analyzer for the terminal.

Just point lnav to a directory and it will take care of the rest.
File formats are automatically detected and compressed files are
unpacked on the fly.

Log files are a wealth of information, lnav can help highlight the
parts that are important and filter out the noise.
2015-09-05 22:12:04 +00:00

19 lines
649 B
C++

$NetBSD: patch-src_pretty__printer.hh,v 1.1 2015/09/05 22:12:04 wiz Exp $
Avoid name conflict with included header.
--- src/pretty_printer.hh.orig 2015-04-11 02:51:00.000000000 +0000
+++ src/pretty_printer.hh
@@ -171,10 +171,10 @@ private:
void ascend() {
if (this->pp_depth > 0) {
- int lines = this->pp_body_lines.top();
+ int clines = this->pp_body_lines.top();
this->pp_depth -= 1;
this->pp_body_lines.pop();
- this->pp_body_lines.top() += lines;
+ this->pp_body_lines.top() += clines;
}
else {
this->pp_body_lines.top() = 0;