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

Function exportascii_sfi_aligntyp

util/sfexpasc.c:603–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603void
604exportascii_sfi_aligntyp(NHFILE *nhfp, aligntyp *d_aligntyp, const char *myname UNUSED)
605{
606 char *rstr;
607 aligntyp tmp;
608 long long lltmp;
609
610 rstr = get_savefield(nhfp, linebuf, BUFSZ);
611 lltmp = atoll(rstr);
612 tmp = (aligntyp) lltmp;
613#ifdef SAVEFILE_DEBUGGING
614 if (nhfp->structlevel && tmp != *d_aligntyp)
615 report_problem_ascii(nhfp, myparent, myname, parent);
616 else
617#endif
618 *d_aligntyp = tmp;
619}
620
621void
622exportascii_sfi_bitfield(NHFILE *nhfp, uint8_t *d_bitfield, const char *myname UNUSED, int bflen UNUSED)

Callers

nothing calls this directly

Calls 2

get_savefieldFunction · 0.85
report_problem_asciiFunction · 0.85

Tested by

no test coverage detected