- Timestamp:
- Nov 25, 2008, 4:51:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081124/Ohana/src/opihi/dvo/avextract.c
r20820 r20839 1 1 # include "dvoshell.h" 2 2 3 // XXX need to promote values (and dbStack entries) to opihi_flt, but wait until done testing 3 4 int avextract (int argc, char **argv) { 4 5 … … 116 117 if (!dbBooleanCond (stack, Nstack, values)) continue; 117 118 for (n = 0; n < Nreturn; n++) { 118 vec[n][0].elements [Npts] = values[n];119 vec[n][0].elements.Flt[Npts] = values[n]; 119 120 } 120 121 Npts++; … … 122 123 NPTS += 2000; 123 124 for (n = 0; n < Nreturn; n++) { 124 REALLOCATE (vec[n][0].elements , float, NPTS);125 REALLOCATE (vec[n][0].elements.Flt, opihi_flt, NPTS); 125 126 } 126 127 } … … 132 133 for (n = 0; n < Nreturn; n++) { 133 134 vec[n][0].Nelements = Npts; 134 REALLOCATE (vec[n][0].elements , float, MAX(1,Npts));135 REALLOCATE (vec[n][0].elements.Flt, opihi_flt, MAX(1,Npts)); 135 136 } 136 137
Note:
See TracChangeset
for help on using the changeset viewer.
