MCPcopy Create free account
hub / github.com/NetHack/NetHack / exportascii_sfi_genericptr

Function exportascii_sfi_genericptr

util/sfexpasc.c:660–678  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658 const char *myname UNUSED);
659
660void
661exportascii_sfi_genericptr(NHFILE *nhfp, genericptr_t *d_genericptr, const char *myname UNUSED)
662{
663 long long lltmp;
664 char *rstr;
665 static const char *glorkum = "glorkum";
666
667 /*
668 * sbrooms is an array of pointers to mkroom.
669 * That array dimension is MAX_SUBROOMS.
670 * Even though the pointers themselves won't
671 * be valid, we need to account for the existence
672 * of that array.
673 */
674 /* these pointers can't actually be valid */
675 rstr = get_savefield(nhfp, linebuf, sizeof linebuf);
676 lltmp = atoll(rstr);
677 *d_genericptr = lltmp ? (genericptr_t) glorkum : (genericptr_t) 0;
678}
679
680void
681exportascii_sfi_int32(NHFILE *nhfp, int32 *d_int32, const char *myname UNUSED)

Callers

nothing calls this directly

Calls 1

get_savefieldFunction · 0.85

Tested by

no test coverage detected