Changeset 27435 for trunk/Ohana/src/libfits/table/F_get_column.c
- Timestamp:
- Mar 24, 2010, 11:22:25 AM (16 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/libfits/table/F_get_column.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/20091201/Ohana merged eligible /branches/eam_branches/largefiles.20100314/Ohana merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/libfits/table/F_get_column.c
r26384 r27435 16 16 tmp = Pin[3]; Pin[3] = Pin[4]; Pin[4] = tmp; } 17 17 18 void *gfits_get_bintable_column_data (Header *header, FTable *table, char *label, char *type, int *Nrow, int *Ncol) { 19 20 int i, N, Nfields, Nval, Nbytes, Nx, Ny, Nstart, Nv, Nb; 18 void *gfits_get_bintable_column_data (Header *header, FTable *table, char *label, char *type, off_t *Nrow, int *Ncol) { 19 20 off_t Nx, Ny; 21 int i, N, Nfields, Nval, Nbytes, Nstart, Nv, Nb; 21 22 char tlabel[80], field[80], format[80], tmpline[16]; 22 23 char *Pin, *Pout, *array; … … 50 51 51 52 /* check existing table dimensions */ 52 gfits_scan (header, "NAXIS1", "% d", 1,&Nx);53 gfits_scan (header, "NAXIS2", "% d", 1,&Ny);53 gfits_scan (header, "NAXIS1", "%lld", 1, (long long *) &Nx); 54 gfits_scan (header, "NAXIS2", "%lld", 1, (long long *) &Ny); 54 55 55 56 /* scan columns to find insert point */ … … 153 154 int gfits_get_bintable_column (Header *header, FTable *table, char *label, void **data) { 154 155 155 int i, N, Nfields, Nval, Nbytes, Nx, Ny, Nstart, Nv, Nb; 156 off_t Nx, Ny; 157 int i, N, Nfields, Nval, Nbytes, Nstart, Nv, Nb; 156 158 char tlabel[80], field[80], format[80], type[16], tmpline[16]; 157 159 char *Pin, *Pout, *array; … … 185 187 186 188 /* check existing table dimensions */ 187 gfits_scan (header, "NAXIS1", "% d", 1,&Nx);188 gfits_scan (header, "NAXIS2", "% d", 1,&Ny);189 gfits_scan (header, "NAXIS1", "%lld", 1, (long long *) &Nx); 190 gfits_scan (header, "NAXIS2", "%lld", 1, (long long *) &Ny); 189 191 190 192 /* scan columns to find insert point */ … … 307 309 int gfits_get_table_column (Header *header, FTable *table, char *label, void **data) { 308 310 309 int i, N, Nfields, Nval, Nbytes, Nx, Ny, Nstart, Nv, Nb; 311 off_t Nx, Ny; 312 int i, N, Nfields, Nval, Nbytes, Nstart, Nv, Nb; 310 313 char tlabel[80], field[80], format[80], cformat[80], type[16], tmp[16]; 311 314 char *array, *Pin, *Pout, *line; … … 333 336 334 337 /* check existing table dimensions */ 335 gfits_scan (header, "NAXIS1", "% d", 1,&Nx);336 gfits_scan (header, "NAXIS2", "% d", 1,&Ny);338 gfits_scan (header, "NAXIS1", "%lld", 1, (long long *) &Nx); 339 gfits_scan (header, "NAXIS2", "%lld", 1, (long long *) &Ny); 337 340 338 341 /* scan columns to find insert point */
Note:
See TracChangeset
for help on using the changeset viewer.
