Changeset 27435 for trunk/Ohana/src/imregister/spreg/match.c
- Timestamp:
- Mar 24, 2010, 11:22:25 AM (16 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/imregister/spreg/match.c (modified) (4 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/imregister/spreg/match.c
r3509 r27435 2 2 # include "spreg.h" 3 3 4 int *match_criteria (Spectrum *spectrum, int Nspectrum, int *Nmatch) {4 off_t *match_criteria (Spectrum *spectrum, off_t Nspectrum, off_t *Nmatch) { 5 5 6 int i, j;7 int N, NMATCH;8 int *match;9 int reject;10 int Nfilename, Nobject, Ntelescope, Ninstrument;6 off_t i, j; 7 off_t N, NMATCH; 8 off_t *match; 9 off_t reject; 10 off_t Nfilename, Nobject, Ntelescope, Ninstrument; 11 11 12 12 /* create selection index */ 13 13 N = 0; 14 14 NMATCH = 1000; 15 ALLOCATE (match, int, NMATCH);15 ALLOCATE (match, off_t, NMATCH); 16 16 17 17 Nfilename = Nobject = Ntelescope = Ninstrument = 0; … … 42 42 if (N == NMATCH) { 43 43 NMATCH += 1000; 44 REALLOCATE (match, int, NMATCH);44 REALLOCATE (match, off_t, NMATCH); 45 45 } 46 46 } … … 51 51 # if (0) 52 52 53 int *match_spectra (Spectrum *subset, int Nsubset, int *Nmatch) {53 off_t *match_spectra (Spectrum *subset, off_t Nsubset, off_t *Nmatch) { 54 54 55 int i, j, N, Nspectrum, Nfound;56 int *match;55 off_t i, j, N, Nspectrum, Nfound; 56 off_t *match; 57 57 Spectrum *spectrum; 58 58 … … 60 60 61 61 /* find matching spectra - very inefficient : sort by obstime, find those first? */ 62 ALLOCATE (match, int, Nsubset);62 ALLOCATE (match, off_t, Nsubset); 63 63 for (j = 0; j < Nsubset; j++) { 64 64 match[j] = -1;
Note:
See TracChangeset
for help on using the changeset viewer.
