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.29 by greg, Thu Jun 8 17:48:01 2023 UTC vs.
Revision 3.31 by greg, Tue Oct 29 00:35:06 2024 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 112 | Line 112 | extern char    *savestr(const char *str);
112   extern void     freestr(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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines