Commit ae07042e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

ifdef the OFOF development tool

parent add1d82b
......@@ -140,6 +140,7 @@ cli_debug_sizeof(struct cli *cli, const char * const *av, void *priv)
SZOF(struct vbc);
SZOF(struct VSC_C_main);
SZOF(struct lock);
#if 0
#define OFOF(foo, bar) { foo __foo; VCLI_Out(cli, \
"%-30s = 0x%4zx @ 0x%4zx\n", \
#foo "." #bar, sizeof(__foo.bar), offsetof(foo, bar)); }
......@@ -199,6 +200,8 @@ cli_debug_sizeof(struct cli *cli, const char * const *av, void *priv)
OFOF(struct object, esidata);
OFOF(struct object, last_use);
#endif
#undef OFOF
#endif
}
/*--------------------------------------------------------------------*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment