Revert "topl.c globals moved to instance_globals."

This reverts commit b384223e1b.
This commit is contained in:
nhmall
2018-11-23 22:16:45 -05:00
parent 01bc4ab5e2
commit 44af1c78f3
6 changed files with 33 additions and 37 deletions

View File

@@ -679,12 +679,14 @@ dump_plines()
{
int i, j;
char buf[BUFSZ], **strp;
extern char *saved_plines[];
extern unsigned saved_pline_index;
Strcpy(buf, " "); /* one space for indentation */
putstr(0, 0, "Latest messages:");
for (i = 0, j = (int) g.saved_pline_index; i < DUMPLOG_MSG_COUNT;
for (i = 0, j = (int) saved_pline_index; i < DUMPLOG_MSG_COUNT;
++i, j = (j + 1) % DUMPLOG_MSG_COUNT) {
strp = &g.saved_plines[j];
strp = &saved_plines[j];
if (*strp) {
copynchars(&buf[1], *strp, BUFSZ - 1 - 1);
putstr(0, 0, buf);