1 |
– |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ SGI"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* mx_func.c - routine for mixture functions. |
9 |
– |
* |
10 |
– |
* 11/2/88 |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "copyright.h" |
9 |
+ |
|
10 |
|
#include "ray.h" |
11 |
|
|
12 |
|
#include "func.h" |
51 |
|
setfunc(m, r); |
52 |
|
errno = 0; |
53 |
|
coef = evalue(mf->ep[0]); |
54 |
< |
if (errno) { |
54 |
> |
if (errno == EDOM || errno == ERANGE) { |
55 |
|
objerror(m, WARNING, "compute error"); |
56 |
|
return(0); |
57 |
|
} |