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.30 by greg, Fri Dec 15 03:42:31 2023 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines