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.6 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.7 by schorsch, Sat Jun 7 12:50:20 2003 UTC

# Line 20 | Line 20 | static const char      RCSid[] = "$Id$";
20  
21   #include "copyright.h"
22  
23 + #include <string.h>
24 + #include <stdlib.h>
25 +
26 + #include "standard.h"
27 +
28   #ifndef  NHASH
29   #define  NHASH          509             /* hash table size (prime!) */
30   #endif
# Line 32 | Line 37 | typedef struct s_head {
37   static S_HEAD  *stab[NHASH];
38  
39   #define  hash(s)        (shash(s)%NHASH)
35
36 extern char  *savestr(), *strcpy(), *malloc();
37
38 #define  NULL           0
40  
41   #define  string(sp)     ((char *)((sp)+1))
42  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines