Changeset 39194
- Timestamp:
- Nov 29, 2015, 9:35:02 AM (11 years ago)
- Location:
- branches/eam_branches/ipp-20151113/Ohana/src/opihi
- Files:
-
- 2 added
- 6 edited
-
cmd.astro/Makefile (modified) (1 diff)
-
cmd.astro/cneedles.c (added)
-
cmd.astro/init.c (modified) (2 diffs)
-
cmd.data/Makefile (modified) (1 diff)
-
cmd.data/init.c (modified) (2 diffs)
-
cmd.data/needles.c (added)
-
include/dvomath.h (modified) (1 diff)
-
lib.shell/VectorOps.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/Makefile
r39183 r39194 23 23 $(SRC)/cdot.$(ARCH).o \ 24 24 $(SRC)/cline.$(ARCH).o \ 25 $(SRC)/cneedles.$(ARCH).o \ 25 26 $(SRC)/cplot.$(ARCH).o \ 26 27 $(SRC)/csystem.$(ARCH).o \ -
branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.astro/init.c
r39183 r39194 7 7 int cdot PROTO((int, char **)); 8 8 int cline PROTO((int, char **)); 9 int cneedles PROTO((int, char **)); 9 10 int cplot PROTO((int, char **)); 10 11 int csystem PROTO((int, char **)); … … 73 74 {1, "cdot", cdot, "plot point in sky coordinates"}, 74 75 {1, "cline", cline, "plot line connecting two sky coordinates"}, 76 {1, "cneedles", cneedles, "plot vectors in sky coordinates"}, 75 77 {1, "cplot", cplot, "plot vectors in sky coordinates"}, 76 78 {1, "csystem", csystem, "convert between coordinate systems"}, -
branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.data/Makefile
r38463 r39194 97 97 $(SRC)/medimage_commands.$(ARCH).o \ 98 98 $(SRC)/mset.$(ARCH).o \ 99 $(SRC)/needles.$(ARCH).o \ 99 100 $(SRC)/peak.$(ARCH).o \ 100 101 $(SRC)/periodogram.$(ARCH).o \ -
branches/eam_branches/ipp-20151113/Ohana/src/opihi/cmd.data/init.c
r38463 r39194 86 86 int medimage_command PROTO((int, char **)); 87 87 int mset PROTO((int, char **)); 88 int needles PROTO((int, char **)); 88 89 int peak PROTO((int, char **)); 89 90 int periodogram PROTO((int, char **)); … … 261 262 {1, "mset", mset, "insert a vector in an image"}, 262 263 {1, "imset", mset, "insert a vector in an image"}, 264 {1, "needles", needles, "plot vectors needles"}, 263 265 {1, "parity", parity, "set image parity"}, 264 266 {1, "peak", peak, "find vector peak in range"}, -
branches/eam_branches/ipp-20151113/Ohana/src/opihi/include/dvomath.h
r38441 r39194 147 147 Vector *InitVector PROTO((void)); 148 148 void FreeVectorArray PROTO((Vector **vec, int Nvec)); 149 void FreeVector PROTO((Vector *vec)); 149 150 int CopyVector PROTO((Vector *out, Vector *in)); 150 151 int ResetVector PROTO((Vector *vec, char type, int Nelements)); -
branches/eam_branches/ipp-20151113/Ohana/src/opihi/lib.shell/VectorOps.c
r33662 r39194 15 15 16 16 // this function is NOT thread protected : it is only used in startup and/or shutdown 17 void FreeVector (Vector *vec) { 18 19 if (!vec) return; 20 if (vec->elements.Int) { 21 free (vec->elements.Int); 22 } 23 free (vec); 24 } 25 26 // this function is NOT thread protected : it is only used in startup and/or shutdown 17 27 void FreeVectorArray (Vector **vec, int Nvec) { 18 28 … … 21 31 if (!vec) return; 22 32 for (i = 0; i < Nvec; i++) { 23 if (!vec[i]) continue; 24 if (vec[i]->elements.Int) { 25 free (vec[i]->elements.Int); 26 } 27 free (vec[i]); 33 FreeVector (vec[i]); 28 34 } 29 35 free (vec);
Note:
See TracChangeset
for help on using the changeset viewer.
