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.7 by schorsch, Sat Jun 7 12:50:20 2003 UTC vs.
Revision 2.10 by greg, Thu Mar 4 16:34:34 2004 UTC

# Line 23 | Line 23 | static const char      RCSid[] = "$Id$";
23   #include <string.h>
24   #include <stdlib.h>
25  
26 < #include "standard.h"
26 > #include "rtmisc.h"
27 > #include "rterror.h"
28 > #include "rtio.h"
29  
30   #ifndef  NHASH
31 < #define  NHASH          509             /* hash table size (prime!) */
31 > #define  NHASH          2039            /* hash table size (prime!) */
32   #endif
33  
34   typedef struct s_head {
# 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