1 |
< |
/* Copyright (c) 1991 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1995 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
180 |
|
error(SYSTEM, "out of memory in init"); |
181 |
|
rt.nrays = 0; |
182 |
|
/* set up urand */ |
183 |
< |
initurand(2048); |
183 |
> |
initurand(16384); |
184 |
|
} |
185 |
|
|
186 |
|
|
263 |
|
case 'm': /* material name */ |
264 |
|
if (*++cp != '=') |
265 |
|
break; |
266 |
< |
if (!*++cp) |
266 |
> |
if (!*++cp || isspace(*cp)) |
267 |
|
break; |
268 |
|
atos(thisillum.matname, MAXSTR, cp); |
269 |
|
cp = sskip(cp); |
275 |
|
case 'f': /* data file name */ |
276 |
|
if (*++cp != '=') |
277 |
|
break; |
278 |
< |
if (!*++cp) { |
278 |
> |
if (!*++cp || isspace(*cp)) { |
279 |
|
strcpy(thisillum.datafile,thisillum.matname); |
280 |
|
thisillum.dfnum = 0; |
281 |
|
thisillum.flags &= ~IL_DATCLB; |
361 |
|
case 'o': /* output file */ |
362 |
|
if (*++cp != '=') |
363 |
|
break; |
364 |
< |
if (!*++cp) |
364 |
> |
if (!*++cp || isspace(*cp)) |
365 |
|
break; |
366 |
|
atos(buf, sizeof(buf), cp); |
367 |
|
cp = sskip(cp); |
379 |
|
return; |
380 |
|
} |
381 |
|
opterr: /* skip faulty option */ |
382 |
< |
cp = sskip(cp); |
382 |
> |
while (*cp && !isspace(*cp)) |
383 |
> |
cp++; |
384 |
|
nerrs++; |
385 |
|
} |
386 |
|
/* print header? */ |