33 lines
663 B
C
33 lines
663 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 VAR_NODE *d;
|
|
register int i;
|
|
VAR_NODE desc;
|
|
char buf[BUFSIZ];
|
|
|
|
setbuf(stdout, buf);
|
|
printf("struct var_node == VAR_NODE [h/tree.h]\n");
|
|
d = &desc;
|
|
off(d->qt_hdr);
|
|
out("qt_hdr (char [QT_HDR_SIZ])");
|
|
off(&d->varno);
|
|
out("varno (char)");
|
|
off(&d->attno);
|
|
out("attno (char)");
|
|
off(&d->frmt);
|
|
out("frmt (char)");
|
|
off(&d->frml);
|
|
out("frml (char)");
|
|
off(&d->valptr);
|
|
out("valptr (char *)");
|
|
fflush(stdout);
|
|
}
|