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

Comparing ray/src/common/rtio.h (file contents):
Revision 3.27 by greg, Mon Feb 6 22:40:21 2023 UTC vs.
Revision 3.33 by greg, Sat Mar 1 00:51:26 2025 UTC

# Line 41 | Line 41 | extern "C" {
41  
42   #define  LATLONSTR      "LATLONG="
43   #define  LLATLONSTR     8
44 < #define  islatlon(hl)           (!strncmp(hl,LATLONSTR,LLATLONSTR))
45 < #define  latlonval(ll,hl)       sscanf((hl)+LLATLONSTR, "%f %f", \
46 <                                                &(ll)[0],&(ll)[1])
44 > #define  islatlon(hl)           !strncmp(hl,LATLONSTR,LLATLONSTR)
45 > #define  latlonval(ll,hl)       (sscanf((hl)+LLATLONSTR, "%f %f", \
46 >                                                &(ll)[0],&(ll)[1]) == 2)
47   #define  fputlatlon(lat,lon,fp) fprintf(fp,"%s %.6f %.6f\n",LATLONSTR,lat,lon)
48                                          /* defined in header.c */
49   extern void     newheader(const char *t, FILE *fp);
# Line 70 | Line 70 | extern int     badarg(int ac, char **av, const char *fl);
70   extern int      envexpchr, filexpchr;
71   extern int      expandarg(int *acp, char ***avp, int n);
72                                          /* defined in fdate.c */
73 < extern time_t   fdate(char *fname);
74 < extern int      setfdate(char *fname, long ftim);
73 > extern time_t   fdate(const char *fname);
74 > extern time_t   fddate(int fd);
75 > extern int      setfdate(const char *fname, long ftim);
76                                          /* defined in fgetline.c */
77   extern char     *fgetline(char *s, int n, FILE *fp);
78                                          /* defined in fgetval.c */
# Line 107 | Line 108 | extern char    *expsave(void);
108   extern void     expset(char *ep);
109   extern char     *eindex(char *sp);
110                                          /* defined in savestr.c */
111 < extern char     *savestr(char *str);
111 > extern char     *savestr(const char *str);
112   extern void     freestr(char *s);
113 < extern int      shash(char *s);
113 > extern int      shash(const char *s);
114                                          /* defined in savqstr.c */
115 < extern char     *savqstr(char *s);
115 > extern char     *savqstr(const char *s);
116   extern void     freeqstr(char *s);
117                                          /* defined in wordfile.c */
118   extern int      wordfile(char **words, int nargs, char *fname);
# Line 135 | Line 136 | extern void    freelamps(void);
136   #ifndef strlcpy                         /* defined in option strlcpy.c */
137   extern size_t   strlcpy(char *dst, const char *src, size_t siz);
138   extern size_t   strlcat(char *dst, const char *src, size_t siz);
139 + #endif
140 + #ifndef strncasecmp                     /* defined in option strncasecmp.c */
141 + extern int      strncasecmp(const char *s1, const char *s2, size_t n);
142 + #endif
143 + #ifndef strnstr                         /* defined in option strnstr.c */
144 + extern char *   strnstr(const char *haystack,
145 +                                const char *needle, size_t len);
146   #endif
147  
148   #ifdef __cplusplus

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines