Changeset 38441 for trunk/Ohana/src/libfits/table/F_copy_T.c
- Timestamp:
- Jun 12, 2015, 6:18:23 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/libfits/table/F_copy_T.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ohana.20150429 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/libfits/table/F_copy_T.c
r34088 r38441 6 6 7 7 /* find buffer size */ 8 out[0].validsize = in[0].validsize; 9 out[0].datasize = in[0].datasize; 8 out[0].validsize = in[0].validsize; 9 out[0].datasize = in[0].datasize; 10 out[0].heap_start = in[0].heap_start; 10 11 11 12 ALLOCATE (out[0].buffer, char, out[0].datasize); 12 13 memcpy (out[0].buffer, in[0].buffer, out[0].datasize); 14 return (TRUE); 15 } 16 17 /*********************** copy ftable pointers (does not copy memory) ***********************************/ 18 int gfits_copy_ftable_ptr (FTable *in, FTable *out) { 19 20 if (!in) return FALSE; 21 if (!out) return FALSE; 22 23 /* find buffer size */ 24 out[0].validsize = in[0].validsize; 25 out[0].datasize = in[0].datasize; 26 out[0].heap_start = in[0].heap_start; 27 out[0].header = in[0].header; 28 out[0].buffer = in[0].buffer; 13 29 return (TRUE); 14 30 } … … 28 44 29 45 /* find buffer size */ 30 out[0].datasize = in[0].datasize; 31 out[0].pad = in[0].pad; 32 out[0].Nrow = in[0].Nrow; 46 out[0].datasize = in[0].datasize; 47 // out[0].heap_start = in[0].heap_start; 48 out[0].pad = in[0].pad; 49 out[0].Nrow = in[0].Nrow; 33 50 34 51 off_t Nrows = out[0].Nrow;
Note:
See TracChangeset
for help on using the changeset viewer.
