| 116 | } |
| 117 | |
| 118 | void |
| 119 | show_borlandc_stats(win) |
| 120 | winid win; |
| 121 | { |
| 122 | char buf[BUFSZ]; |
| 123 | |
| 124 | putstr(win, 0, ""); |
| 125 | putstr(win, 0, ""); |
| 126 | putstr(win, 0, "Memory usage stats"); |
| 127 | putstr(win, 0, ""); |
| 128 | putstr(win, 0, ""); |
| 129 | Sprintf(buf, "Overlay buffer memory allocation: %ld bytes.", |
| 130 | memAlloc * 16L); |
| 131 | putstr(win, 0, buf); |
| 132 | Sprintf(buf, "_ovrbuffer = %u.", _ovrbuffer); |
| 133 | putstr(win, 0, buf); |
| 134 | Sprintf(buf, "Startup memory usage: 0x%X", ProgramSize); |
| 135 | putstr(win, 0, buf); |
| 136 | runAlloc = *(unsigned far *) MK_FP(_psp - 1, 0x03); |
| 137 | Sprintf(buf, "Current memory usage: 0x%X", runAlloc); |
| 138 | putstr(win, 0, buf); |
| 139 | if (emsstatus) |
| 140 | Sprintf(buf, "EMS search failed (%d).", emsstatus); |
| 141 | else |
| 142 | Sprintf(buf, "EMS search successful."); |
| 143 | putstr(win, 0, buf); |
| 144 | #ifdef RECOGNIZE_XMS |
| 145 | if (xmsstatus) |
| 146 | Sprintf(buf, "XMS search failed (%d).", xmsstatus); |
| 147 | else |
| 148 | Sprintf(buf, "XMS search successful."); |
| 149 | putstr(win, 0, buf); |
| 150 | #endif |
| 151 | } |
| 152 | |
| 153 | #endif /* #ifdef RESIZE_OVL */ |
| 154 | #endif /* #ifdef __BORLANDC__ */ |