| 135 |
|
mp->modname = modn; /* XXX assumes static string */ |
| 136 |
|
mp->params = prms; /* XXX assumes static string */ |
| 137 |
|
mp->binv = ebinv; |
| 138 |
+ |
mp->bin0 = 0; |
| 139 |
|
mp->nbins = bincnt; |
| 140 |
|
memset(mp->cbin, 0, sizeof(DCOLOR)*bincnt); |
| 141 |
< |
/* allocate output streams */ |
| 142 |
< |
for (i = bincnt; i-- > 0; ) |
| 143 |
< |
getostream(mp->outspec, mp->modname, i, 1); |
| 141 |
> |
/* figure out starting bin */ |
| 142 |
> |
while (!getostream(mp->outspec, mp->modname, mp->bin0, 1)) |
| 143 |
> |
mp->bin0++; |
| 144 |
> |
/* allocate other output streams */ |
| 145 |
> |
for (i = 0; ++i < mp->nbins; ) |
| 146 |
> |
getostream(mp->outspec, mp->modname, mp->bin0+i, 1); |
| 147 |
|
lep->data = (char *)mp; |
| 148 |
|
return(mp); |
| 149 |
|
} |