1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-29 05:21:00 +01:00

19242: Make job table dynamically reallocatable.

This commit is contained in:
Peter Stephenson 2003-11-13 14:34:33 +00:00
parent 990f7b91df
commit a6a63a147e
12 changed files with 194 additions and 93 deletions

View file

@ -291,7 +291,7 @@ putpromptchar(int doprint, int endchar)
test = 1;
break;
case 'j':
for (numjobs = 0, j = 1; j < MAXJOB; j++)
for (numjobs = 0, j = 1; j <= maxjob; j++)
if (jobtab[j].stat && jobtab[j].procs &&
!(jobtab[j].stat & STAT_NOPRINT)) numjobs++;
if (numjobs >= arg)
@ -383,7 +383,7 @@ putpromptchar(int doprint, int endchar)
bp += strlen(bp);
break;
case 'j':
for (numjobs = 0, j = 1; j < MAXJOB; j++)
for (numjobs = 0, j = 1; j <= maxjob; j++)
if (jobtab[j].stat && jobtab[j].procs &&
!(jobtab[j].stat & STAT_NOPRINT)) numjobs++;
addbufspc(DIGBUFSIZE);