- Timestamp:
- Jun 1, 2015, 8:56:11 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20150429/src/libautocode/def/autocode.c
r29537 r38344 27 27 /*** add test of EXTNAME and header-defined columns? ***/ 28 28 /* return internal structure representation */ 29 $STRUCT *gfits_table_get_$STRUCT (FTable *ftable, off_t *Ndata, char *swapped) { 29 /* scaledData & nativeBytes describe the current state of the ftable.buffer */ 30 $STRUCT *gfits_table_get_$STRUCT (FTable *ftable, off_t *Ndata, char *scaledValue, char *nativeOrder) { 30 31 31 32 int Ncols; … … 40 41 *Ndata = ftable[0].header[0].Naxis[1]; 41 42 data = ($STRUCT *) ftable[0].buffer; 42 if ((swapped == NULL) || (*swapped == FALSE)) { 43 44 // if the pointer is not passed, we need to swap 45 if (!nativeOrder || !*nativeOrder) { 43 46 if (!gfits_convert_$STRUCT (data, sizeof ($STRUCT), *Ndata)) { 44 47 return NULL; 45 48 } 49 if (nativeOrder) *nativeOrder = TRUE; 50 } 51 // if the pointer is not passed, we need to scale 52 if (!scaledValue || !*scaledValue) { 46 53 gfits_table_scale_data (ftable); 47 if (s wapped != NULL) *swapped= TRUE;54 if (scaledValue) *scaledValue = TRUE; 48 55 } 49 56 return (data);
Note:
See TracChangeset
for help on using the changeset viewer.
