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:
parent
990f7b91df
commit
a6a63a147e
12 changed files with 194 additions and 93 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue