PERFORCE change 35228 for review
John Baldwin
jhb at FreeBSD.org
Wed Jul 30 12:53:39 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=35228
Change 35228 by jhb at jhb_laptop on 2003/07/30 12:53:28
Reset db_newlines when we setup the paging function.
Affected files ...
.. //depot/projects/smpng/sys/ddb/db_output.c#7 edit
Differences ...
==== //depot/projects/smpng/sys/ddb/db_output.c#7 (text+ko) ====
@@ -62,7 +62,7 @@
#define NEXT_TAB(i) \
((((i) + db_tab_stop_width) / db_tab_stop_width) * db_tab_stop_width)
db_expr_t db_max_width = 79; /* output line width */
-static int db_newlines = 0; /* # lines this page */
+static int db_newlines; /* # lines this page */
static int db_maxlines = -1; /* max lines per page */
static db_page_calloutfcn_t *db_page_callout = NULL;
static void *db_page_callout_arg = NULL;
@@ -125,7 +125,6 @@
if (db_newlines >= db_maxlines) {
db_maxlines = -1;
db_page_callout(db_page_callout_arg);
- db_newlines = 0;
}
}
}
@@ -161,6 +160,7 @@
db_page_callout = callout;
db_page_callout_arg = arg;
db_maxlines = maxlines;
+ db_newlines = 0;
}
/*
More information about the p4-projects
mailing list