version 1.2, 1998/11/03 21:59:53 |
version 1.3, 1999/01/24 19:33:51 |
|
|
#include <termsort.c> /* this C file is generated */ |
#include <termsort.c> /* this C file is generated */ |
#include <parametrized.h> /* so is this */ |
#include <parametrized.h> /* so is this */ |
|
|
MODULE_ID("$From: dump_entry.c,v 1.29 1998/09/26 13:15:00 tom Exp $") |
MODULE_ID("$From: dump_entry.c,v 1.30 1999/01/24 02:44:40 Jeffrey.C.Honig Exp $") |
|
|
#define INDENT 8 |
#define INDENT 8 |
|
|
|
|
{ |
{ |
const struct name_table_entry *np; |
const struct name_table_entry *np; |
|
|
if ((np = _nc_find_entry(name, _nc_info_hash_table)) != 0) |
if ((np = _nc_find_entry(name, _nc_get_hash_table(0))) != 0) |
switch(np->nte_type) |
switch(np->nte_type) |
{ |
{ |
case BOOLEAN: |
case BOOLEAN: |
|
|
|
|
/* implement sort modes */ |
/* implement sort modes */ |
switch(sortmode = sort) |
switch(sortmode = sort) |
{ |
{ |
case S_NOSORT: |
case S_NOSORT: |
if (traceval) |
if (traceval) |
(void) fprintf(stderr, |
(void) fprintf(stderr, |
|
|
* is really just an optimization hack. |
* is really just an optimization hack. |
*/ |
*/ |
char *oldsgr = set_attributes; |
char *oldsgr = set_attributes; |
set_attributes = ABSENT_STRING; |
set_attributes = ABSENT_STRING; |
(void) printf("# (sgr removed to fit entry within %d bytes)\n", |
(void) printf("# (sgr removed to fit entry within %d bytes)\n", |
critlen); |
critlen); |
if ((len = fmt_entry(tterm, pred, TRUE, infodump, numbers)) > critlen) |
if ((len = fmt_entry(tterm, pred, TRUE, infodump, numbers)) > critlen) |