| 5 |
|
* Routines for computing and applying brightness mapping. |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
+ |
#include <string.h> |
| 9 |
+ |
|
| 10 |
|
#include "pcond.h" |
| 11 |
|
|
| 12 |
|
|
| 56 |
|
if (nfixations % FIXHUNK == 0) { |
| 57 |
|
if (nfixations) |
| 58 |
|
fixlst = (short (*)[2]) |
| 59 |
< |
realloc((char *)fixlst, |
| 59 |
> |
realloc((void *)fixlst, |
| 60 |
|
(nfixations+FIXHUNK)* |
| 61 |
|
2*sizeof(short)); |
| 62 |
|
else |
| 352 |
|
double ceiling, trimmings; |
| 353 |
|
register int i; |
| 354 |
|
/* copy initial histogram */ |
| 355 |
< |
bcopy((char *)bwhist, (char *)modhist, sizeof(modhist)); |
| 355 |
> |
memcpy((void *)modhist, (void *)bwhist, sizeof(modhist)); |
| 356 |
|
s = (bwmax - bwmin)/HISTRES; /* s is delta b */ |
| 357 |
|
/* loop until satisfactory */ |
| 358 |
|
do { |