| 5 |
|
* Radiance holodeck generation controller |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
– |
#include "rholo.h" |
| 9 |
– |
#include "random.h" |
| 8 |
|
#include <signal.h> |
| 9 |
|
#include <sys/stat.h> |
| 10 |
+ |
#include <string.h> |
| 11 |
|
|
| 12 |
+ |
#include "rholo.h" |
| 13 |
+ |
#include "random.h" |
| 14 |
+ |
|
| 15 |
|
#ifndef FRAGWARN |
| 16 |
|
#define FRAGWARN 20 /* fragmentation for warning (%) */ |
| 17 |
|
#endif |
| 533 |
|
while (pl != NULL) { |
| 534 |
|
p = pl; pl = p->next; p->next = NULL; |
| 535 |
|
if (p->nr > 0) { /* add to holodeck */ |
| 536 |
< |
bcopy((void *)p->ra, |
| 537 |
< |
(void *)hdnewrays(hdlist[p->hd],p->bi,p->nr), |
| 536 |
> |
memcpy( (void *)hdnewrays(hdlist[p->hd],p->bi,p->nr), |
| 537 |
> |
(void *)p->ra, |
| 538 |
|
p->nr*sizeof(RAYVAL)); |
| 539 |
|
if (outdev != NULL) /* display it */ |
| 540 |
|
disp_packet((PACKHEAD *)p); |