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

Function startup

outdated/sys/msdos/ovlinit.c:98–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96#pragma startup _resizeOvrBuffer 0 /* Put function in table */
97
98void
99startup()
100{
101 if (appFail) {
102 printf("NetHack fits in memory, but it cannot allocate memory");
103 printf(" for the overlay buffer\nand the runtime functions. ");
104 printf("Please free up just %ld more bytes.",
105 (long) (MIN_OVRBUF - tmpbuffer * 16L));
106 exit(-1);
107 } else {
108 /* Now try to use expanded memory for the overlay manager */
109 /* If that doesn't work, we revert to extended memory */
110
111 emsstatus = _OvrInitEms(0, 0, 0);
112#ifdef RECOGNIZE_XMS
113 xmsstatus = (emsstatus) ? _OvrInitExt(0, 0) : -1;
114#endif
115 }
116}
117
118void
119show_borlandc_stats(win)

Callers 1

pcmainFunction · 0.85

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected