| 96 | #pragma startup _resizeOvrBuffer 0 /* Put function in table */ |
| 97 | |
| 98 | void |
| 99 | startup() |
| 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 | |
| 118 | void |
| 119 | show_borlandc_stats(win) |