33 lines
676 B
C
33 lines
676 B
C
# include <stdio.h>
|
|
# include "../conf/conf.h"
|
|
# include "../h/ing_db.h"
|
|
# include "../h/tree.h"
|
|
|
|
# define off(x) i = ((char *) x) - ((char *) d)
|
|
# define out(arg) printf("%4d %06o #%04x:\t%s\n", i, i, i, arg)
|
|
|
|
main()
|
|
{
|
|
register ROOT_NODE *d;
|
|
register int i;
|
|
ROOT_NODE desc;
|
|
char buf[BUFSIZ];
|
|
|
|
setbuf(stdout, buf);
|
|
printf("struct root_node == ROOT_NODE [h/tree.h]\n");
|
|
d = &desc;
|
|
off(d->qt_hdr);
|
|
out("qt_hdr (char [QT_HDR_SIZ])");
|
|
off(&d->tvarc);
|
|
out("tvarc (char)");
|
|
off(&d->lvarc);
|
|
out("lvarc (char)");
|
|
off(&d->lvarm);
|
|
out("lvarm (short)");
|
|
off(&d->rvarm);
|
|
out("rvarm (short)");
|
|
off(&d->rootuser);
|
|
out("rootuser (short)");
|
|
fflush(stdout);
|
|
}
|