1 |
– |
/* Copyright (c) 1993 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* Ce programme calcule les directions et les energies des rayons lumineux |
5 |
|
resultant du passage d'un rayon au travers d'un vitrage prismatique |
6 |
|
|
400 |
|
if (egalite == 0) |
401 |
|
{ |
402 |
|
if (nbrayons == 0) ray = (TRAYON *)calloc(1,sizeof(TRAYON)); |
403 |
< |
else ray = (TRAYON *)realloc(ray, (nbrayons+1)*(sizeof(TRAYON))); |
403 |
> |
else ray = (TRAYON *)realloc((void *)ray, (nbrayons+1)*(sizeof(TRAYON))); |
404 |
|
if (ray == NULL) |
405 |
|
error(SYSTEM, "out of memory in sortie\n"); |
406 |
|
raytemp = &ray[nbrayons]; |
728 |
|
|
729 |
|
|
730 |
|
static double |
731 |
< |
l_get_val() |
731 |
> |
l_get_val(char *nm) |
732 |
|
|
733 |
|
{ |
734 |
|
int val, dir, i, trouve, curseur; |