IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7393


Ignore:
Timestamp:
Jun 7, 2006, 7:20:35 AM (20 years ago)
Author:
eugene
Message:

dropping old functions and prototypes

Location:
trunk/Ohana/src/delstar
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/delstar/Makefile

    r6677 r7393  
    2828$(SRC)/delete_times.$(ARCH).o     \
    2929$(SRC)/gimages.$(ARCH).o          \
    30 $(SRC)/gregion_image.$(ARCH).o    \
    31 $(SRC)/gregion_patch.$(ARCH).o    \
    32 $(SRC)/RegionOps.$(ARCH).o        \
    3330$(SRC)/gcatalog.$(ARCH).o         \
    3431$(SRC)/wcatalog.$(ARCH).o         \
     
    3936$(SRC)/check_permissions.$(ARCH).o \
    4037$(SRC)/Shutdown.$(ARCH).o         
     38
     39OLD = \
     40$(SRC)/gregion_image.$(ARCH).o    \
     41$(SRC)/gregion_patch.$(ARCH).o    \
     42$(SRC)/RegionOps.$(ARCH).o       
    4143
    4244default: $(PROGRAM)
  • trunk/Ohana/src/delstar/include/delstar.h

    r5451 r7393  
    3939void       ConfigInit             PROTO((int *argc, char **argv));
    4040int        FindDecBand            PROTO((double dec, double *DEC0, double *DEC1));
    41 int        FindRegionByPoint      PROTO((GSCRegion *region, double ra, double dec, GSCRegion *gsc, int Ngsc));
    42 int        FindRegionDecBandStart PROTO((GSCRegion *region, int Nregion, double dec));
    43 int        FindRegionDecBandStop  PROTO((GSCRegion *region, int Nregion, double dec));
    4441FILE      *GetDB                  PROTO((int *state));
    4542Image     *GetImages              PROTO((int *nimage));
    46 GSCRegion *LoadRegions            PROTO((int *nregions));
    4743int        SetImages              PROTO((Image *new, int Nnew));
    4844void       SetProtect             PROTO((int mode));
     
    6258int        gcatalog               PROTO((Catalog *catalog));
    6359Image     *gimages                PROTO((char *filename));
    64 GSCRegion *gregion_image          PROTO((Image *image, int *Nregions));
    65 GSCRegion *gregion_patch          PROTO((GSCRegion *patch, int *nregions));
    6660Image     *gtimes                 PROTO((int *NIMAGE));
    6761void       help                   PROTO(());
     
    7367int        save_image_db          PROTO(());
    7468void       sort_lists             PROTO((float *X, float *Y, int *S, int N));
    75 void       sort_regions           PROTO((GSCRegion *region, int N));
    7669void       unlock_image_db        PROTO((FITS_DB *db));
    7770void       usage                  PROTO(());
  • trunk/Ohana/src/delstar/src/orphans.c

    r4607 r7393  
     1// this file is a stub : fix up / clean up
    12
    23delete_orphans () {
    3     ALLOCATE (region, GSCRegion, 1);
     4    ALLOCATE (region, SkyRegion, 1);
    45    catalog.filename = argv[1];
    56    gcatalog (&catalog);
  • trunk/Ohana/src/delstar/src/sort_lists.c

    r4680 r7393  
    4646}
    4747
    48 void sort_regions (GSCRegion *region, int N) {
    49 
    50   int l,j,ir,i;
    51   GSCRegion tmp;
    52  
    53   l = N >> 1;
    54   ir = N - 1;
    55   for (;;) {
    56     if (l > 0) {
    57       l--;
    58       tmp = region[l];
    59     } else {
    60       tmp = region[ir];
    61       region[ir] = region[0];
    62       if (--ir == 0) {
    63         region[0] = tmp;
    64         return;
    65       }
    66     }
    67     i = l;
    68     j = (l << 1) + 1;
    69     while (j <= ir) {
    70       if (j < ir && region[j].DEC[0] < region[j+1].DEC[0]) j++;
    71       if (tmp.DEC[0] < region[j].DEC[0]) {
    72         region[i] = region[j];
    73         j += (i=j) + 1;
    74       }
    75       else j = ir + 1;
    76     }
    77     region[i] = tmp;
    78   }
    79 }
    80 
Note: See TracChangeset for help on using the changeset viewer.