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

Function exportascii_sfi_bitfield

util/sfexpasc.c:621–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621void
622exportascii_sfi_bitfield(NHFILE *nhfp, uint8_t *d_bitfield, const char *myname UNUSED, int bflen UNUSED)
623{
624 char *rstr;
625 uint8_t tmp;
626
627 /* cnt is the number of bits in the bitfield, not an array dimension */
628 rstr = get_savefield(nhfp, linebuf, BUFSZ);
629 tmp = (uint8_t) atoi(rstr);
630#ifdef SAVEFILE_DEBUGGING
631 if (nhfp->structlevel && tmp != *d_bitfield)
632 report_problem_ascii(nhfp, myparent, myname, parent);
633 else
634#endif
635 *d_bitfield = tmp;
636}
637
638void
639exportascii_sfi_boolean(NHFILE *nhfp, boolean *d_boolean, const char *myname UNUSED)

Callers

nothing calls this directly

Calls 2

get_savefieldFunction · 0.85
report_problem_asciiFunction · 0.85

Tested by

no test coverage detected