ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/savestr.c
(Generate patch)

Comparing ray/src/common/savestr.c (file contents):
Revision 2.8 by schorsch, Mon Oct 27 10:19:31 2003 UTC vs.
Revision 2.9 by schorsch, Fri Nov 14 17:22:06 2003 UTC

# Line 24 | Line 24 | static const char      RCSid[] = "$Id$";
24   #include <stdlib.h>
25  
26   #include "rtmisc.h"
27 + #include "rterror.h"
28 + #include "rtio.h"
29  
30   #ifndef  NHASH
31   #define  NHASH          509             /* hash table size (prime!) */
# Line 46 | Line 48 | static S_HEAD  *stab[NHASH];
48  
49  
50   char *
51 < savestr(str)                            /* save a string */
50 < char  *str;
51 > savestr(char *str)                              /* save a string */
52   {
53          register int  hval;
54          register S_HEAD  *sp;
# Line 73 | Line 74 | char  *str;
74  
75  
76   void
77 < freestr(s)                              /* free a string */
77 < char  *s;
77 > freestr(char *s)                                /* free a string */
78   {
79          int  hval;
80          register S_HEAD  *spl, *sp;
# Line 97 | Line 97 | char  *s;
97  
98  
99   int
100 < shash(s)
101 < register char  *s;
100 > shash(register char  *s)
101   {
102          register int  h = 0;
103  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines