diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-05-29 03:00:22 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1997-05-29 03:00:22 +0000 |
commit | 47fbf830fdaea6d0c3f97d0122948ab9b5cce3a6 (patch) | |
tree | 177d4ad55f701d432a16c5941b4f4801e9e30c23 /sys/ddb/db_output.c | |
parent | abbb8eba7a43e3bdbc4a0987fc824a6850d1d944 (diff) |
move db_radix to the db_output.c, where all the vars are.
some preliminary support for kernfs&syms&~ddb
Diffstat (limited to 'sys/ddb/db_output.c')
-rw-r--r-- | sys/ddb/db_output.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/ddb/db_output.c b/sys/ddb/db_output.c index 237f6b1f043..927a240e2df 100644 --- a/sys/ddb/db_output.c +++ b/sys/ddb/db_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_output.c,v 1.9 1997/03/21 00:44:18 niklas Exp $ */ +/* $OpenBSD: db_output.c,v 1.10 1997/05/29 03:00:21 mickey Exp $ */ /* $NetBSD: db_output.c,v 1.13 1996/04/01 17:27:14 christos Exp $ */ /* @@ -78,8 +78,11 @@ int db_tab_stop_width = 8; /* how wide are tab stops? */ ((((i) + db_tab_stop_width) / db_tab_stop_width) * db_tab_stop_width) int db_max_line = DB_MAX_LINE; /* output max lines */ int db_max_width = DB_MAX_WIDTH; /* output line width */ +int db_radix = 16; /* output numbers radix */ +#ifdef DDB static void db_more __P((void)); +#endif static char *db_ksprintn __P((u_long, int, int *)); static void db_printf_guts __P((const char *, va_list)); @@ -108,6 +111,7 @@ db_force_whitespace() db_last_non_space = db_output_position; } +#ifdef DDB static void db_more() { @@ -137,6 +141,7 @@ db_more() /* NOTREACHED */ } } +#endif /* * Output character. Buffer whitespace. @@ -145,8 +150,10 @@ void db_putchar(c) int c; /* character to output */ { +#ifdef DDB if (db_max_line >= DB_MIN_MAX_LINE && db_output_line >= db_max_line-1) db_more(); +#endif if (c > ' ' && c <= '~') { /* * Printing character. @@ -172,7 +179,9 @@ db_putchar(c) db_output_position = 0; db_last_non_space = 0; db_output_line++; +#ifdef DDB db_check_interrupt(); +#endif } else if (c == '\t') { /* assume tabs every 8 positions */ |