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

Function what_datamodel_is_this

src/hacklib.c:999–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997}
998
999const char *
1000what_datamodel_is_this(int retidx, int szshort, int szint, int szlong, int szll,
1001 int szptr)
1002{
1003 int i;
1004 static const char *unknown = "Unknown";
1005
1006 for (i = 1; i < SIZE(dm); ++i) {
1007 if (szshort == dm[i].sz[0] && szint == dm[i].sz[1]
1008 && szlong == dm[i].sz[2] && szll == dm[i].sz[3]
1009 && szptr == dm[i].sz[4])
1010 return (retidx == 0) ? dm[i].datamodel : dm[i].dmplatform;
1011 }
1012 return unknown;
1013}
1014#undef MAX_D
1015/*hacklib.c*/

Callers 2

compare_critical_bytesFunction · 0.85
process_savefileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected