Changeset 34405 for trunk/Ohana/src/libfits/header/F_scan.c
- Timestamp:
- Sep 5, 2012, 4:25:56 PM (14 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/libfits/header/F_scan.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
- Property svn:mergeinfo set to
-
trunk/Ohana/src/libfits/header/F_scan.c
r28246 r34405 85 85 86 86 // XXX is this safe for 64bit off_t and 32bit off_t? 87 // XXX the problem is that we read FITS files on many machine types: I need to ensure 88 // that we are portable -- this sseems inconsistent 87 89 if (!strcmp (mode, "%jd")) { *va_arg (argp, intmax_t *) = value; return (TRUE); } 88 90 … … 220 222 if ((*q == 'd') || (*q == 'D')) value *= pow (10.0, atof (q + 1)); 221 223 222 if (!strcmp (mode, "%d")) { *va_arg (argp, int *) = value; return (TRUE); } 223 if (!strcmp (mode, "%ld")) { *va_arg (argp, long *) = value; return (TRUE); } 224 if (!strcmp (mode, OFF_T_FMT)) { *va_arg (argp, long long *) = value; return (TRUE); } 225 if (!strcmp (mode, "%Ld")) { *va_arg (argp, long long *) = value; return (TRUE); } 226 if (!strcmp (mode, "%u")) { *va_arg (argp, unsigned *) = value; return (TRUE); } 227 if (!strcmp (mode, "%lu")) { *va_arg (argp, unsigned long *) = value; return (TRUE); } 228 if (!strcmp (mode, "%llu")) { *va_arg (argp, unsigned long long *) = value; return (TRUE); } 229 if (!strcmp (mode, "%Lu")) { *va_arg (argp, unsigned long long *) = value; return (TRUE); } 230 if (!strcmp (mode, "%hd")) { *va_arg (argp, short *) = value; return (TRUE); } 224 if (!strcmp (mode, "%d")) { *va_arg (argp, int *) = value; return (TRUE); } 225 if (!strcmp (mode, "%ld")) { *va_arg (argp, long *) = value; return (TRUE); } 226 if (!strcmp (mode, OFF_T_FMT)) { *va_arg (argp, off_t *) = value; return (TRUE); } 227 if (!strcmp (mode, "%Ld")) { *va_arg (argp, long long *) = value; return (TRUE); } 228 if (!strcmp (mode, "%u")) { *va_arg (argp, unsigned *) = value; return (TRUE); } 229 if (!strcmp (mode, "%lu")) { *va_arg (argp, unsigned long *) = value; return (TRUE); } 230 if (!strcmp (mode, "%llu")) { *va_arg (argp, unsigned long long *) = value; return (TRUE); } 231 if (!strcmp (mode, "%Lu")) { *va_arg (argp, unsigned long long *) = value; return (TRUE); } 232 if (!strcmp (mode, "%hd")) { *va_arg (argp, short *) = value; return (TRUE); } 233 if (!strcmp (mode, "%jd")) { *va_arg (argp, intmax_t *) = value; return (TRUE); } 231 234 232 235 /* no valid mode found */
Note:
See TracChangeset
for help on using the changeset viewer.
