- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/tap_branches/Ohana/src/libfits/table/F_create_T.c
r15487 r27838 5 5 int gfits_create_table (Header *header, FTable *table) { 6 6 7 int Nbytes;7 off_t Nbytes; 8 8 char type[80]; 9 9 … … 19 19 memset (table[0].buffer, 0, Nbytes); 20 20 } 21 table[0]. size = Nbytes;21 table[0].datasize = Nbytes; 22 22 return (TRUE); 23 23 … … 29 29 int gfits_create_vtable (Header *header, VTable *table, int Nrow) { 30 30 31 int i, Nx, Ny;31 off_t i, Nx, Ny; 32 32 char type[80]; 33 33 … … 37 37 Nx = table[0].header[0].Naxis[0]; 38 38 Ny = table[0].header[0].Naxis[0]; 39 table[0]. size = gfits_data_size (header);40 table[0].pad = table[0]. size - Nx*Ny;39 table[0].datasize = gfits_data_size (header); 40 table[0].pad = table[0].datasize - Nx*Ny; 41 41 42 42 table[0].Nrow = Nrow; 43 43 ALLOCATE (table[0].buffer, char *, MAX (Nrow, 1)); 44 ALLOCATE (table[0].row, int, MAX (Nrow, 1));44 ALLOCATE (table[0].row, off_t, MAX (Nrow, 1)); 45 45 for (i = 0; i < Nrow; i++) { 46 46 ALLOCATE (table[0].buffer[i], char, Nx);
Note:
See TracChangeset
for help on using the changeset viewer.
