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.11 by greg, Sun Apr 9 21:33:24 2017 UTC vs.
Revision 2.14 by greg, Thu Jun 8 17:48:01 2023 UTC

# Line 15 | Line 15 | static const char      RCSid[] = "$Id$";
15   *  frees memory associated with the string; it should
16   *  never be referenced again.
17   *
18 < *  External symbols declared in standard.h
18 > *  External symbols declared in rtio.h
19   */
20  
21   #include "copyright.h"
22  
23 #include <string.h>
23   #include <stdlib.h>
24  
26 #include "rtmisc.h"
25   #include "rterror.h"
26   #include "rtio.h"
27  
# Line 48 | Line 46 | static S_HEAD  *stab[NHASH];
46  
47  
48   char *
49 < savestr(char *str)                              /* save a string */
49 > savestr(const char *str)                        /* save a string */
50   {
51          int  hval;
52          S_HEAD  *sp;
# Line 99 | Line 97 | freestr(char *s)                               /* free a string */
97  
98  
99   int
100 < shash(char *s)
100 > shash(const char *s)
101   {
102          int  h = 0;
103  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines