Implement human-readable dialect for xdump

This is for the forthcoming empdump utility program.  The xdump
command still does not support the human-readable dialect.

xundump has supported the human-readable dialect for a long time
(commit 4871a10a).
This commit is contained in:
Markus Armbruster 2008-03-04 21:49:44 +01:00
parent f9e28d0491
commit ed0c98d3c8
3 changed files with 149 additions and 28 deletions

View file

@ -167,7 +167,7 @@ xdump(void)
if (!p || !*p)
return RET_SYN;
xdinit(&xd, player->cnum, pr);
xdinit(&xd, player->cnum, 0, pr);
natp = getnatp(player->cnum);
type = isdigit(p[0]) ? atoi(p) : ef_byname(p);
if (type < 0 || type >= EF_MAX)