Changeset 4810 for trunk/Ohana/src/relphot
- Timestamp:
- Aug 17, 2005, 9:36:55 AM (21 years ago)
- Location:
- trunk/Ohana/src/relphot
- Files:
-
- 1 deleted
- 3 edited
-
include/relphot.h (modified) (1 diff)
-
src/get_regions.c (modified) (1 diff)
-
src/misc.c (modified) (1 diff)
-
src/time.c (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/include/relphot.h
r4805 r4810 100 100 /*** relphot prototypes ***/ 101 101 void ConfigInit PROTO((int *argc, char **argv)); 102 int Fseek PROTO((FILE *f, long offset, int whence));103 102 void GetConfig PROTO((char *config, char *field, char *format, int N, void *ptr)); 104 103 char *GetPhotnamebyCode PROTO((PhotCodeData *photcodes, int code)); -
trunk/Ohana/src/relphot/src/get_regions.c
r4805 r4810 114 114 strncpy (temp, &buffer[i*48], 48); 115 115 temp[49] = 0; 116 h ms_to_deg (&RA0, &RA1, &DEC0, &DEC1, &temp[7]);116 hstgsc_hms_to_deg (&RA0, &RA1, &DEC0, &DEC1, &temp[7]); 117 117 if (RA1 < RA0) RA1 += 360.0; 118 118 if ((DEC1 > 0) && (minDec < DEC1) && (maxDec > DEC0) && (minRa < RA1) && (maxRa > RA0)) { -
trunk/Ohana/src/relphot/src/misc.c
r4805 r4810 181 181 } 182 182 } 183 184 /* fseek with timeout - 0.5 sec */185 int Fseek (FILE *f, long offset, int whence) {186 187 int status;188 189 status = fseek (f, offset, whence);190 if (status == -1) {191 int k;192 /* fprintf (stderr, "problem seeking position: %d\n", errno); */193 for (k = 0; (k < 10) && ((status = fseek (f, 0, SEEK_SET)) == -1); k++) usleep (50000);194 if (status == -1) {195 /* fprintf (stderr, "ERROR: serious problem seeking position: %d\n", errno); */196 /* clear lock at this point? */197 return (0);198 }199 }200 return (1);201 }
Note:
See TracChangeset
for help on using the changeset viewer.
