IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 16, 2005, 6:41:16 PM (21 years ago)
Author:
eugene
Message:

cleaning include files, merging time/coord functions in libohana

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libohana/include/ohana.h

    r3903 r4805  
    9191extern double hypot();
    9292
    93 char *ohana_version ();
    94 
    9593/* in string.c */
    96 int   stripwhite (char *string);
    97 int   strnumcmp (char *str1, char *str2);
    98 char *strcreate (char *string);
    99 char *strncreate (char *string, int n);
    100 int   scan_line (FILE *f, char *line);
    101 int   dparse (double *X, int NX, char *line);
    102 int   fparse (float *X, int NX, char *line);
    103 int   get_argument (int argc, char **argv, char *arg);
    104 int   remove_argument (int N, int *argc, char **argv);
    105 void  uppercase (char *string);
     94int     stripwhite             PROTO((char *string));
     95int     strnumcmp              PROTO((char *str1, char *str2));
     96char   *strcreate              PROTO((char *string));
     97char   *strncreate             PROTO((char *string, int n));
     98int     scan_line              PROTO((FILE *f, char *line));
     99int     dparse                 PROTO((double *X, int NX, char *line));
     100int     fparse                 PROTO((float *X, int NX, char *line));
     101int     get_argument           PROTO((int argc, char **argv, char *arg));
     102int     remove_argument        PROTO((int N, int *argc, char **argv));
     103void    uppercase              PROTO((char *string));
    106104
    107105/* in findexec.c */
    108 char *pathname (char *name);
    109 char *filebasename (char *name);
    110 char *filerootname (char *name);
    111 char *findexec (int argc, char **argv);
    112 int   mkdirhier (char *path);
    113 void  make_backup (char *filename);
     106char   *pathname               PROTO((char *name));
     107char   *filebasename           PROTO((char *name));
     108char   *filerootname           PROTO((char *name));
     109char   *findexec               PROTO((int argc, char **argv));
     110int     mkdirhier              PROTO((char *path));
     111void    make_backup            PROTO((char *filename));
    114112
    115113/* in glockfile.c */
    116 FILE *fsetlockfile (char *filename, double timeout, int type, int *state);
    117 int   fclearlockfile (char *filename, FILE *f, int type, int *state);
     114FILE   *fsetlockfile           PROTO((char *filename, double timeout, int type, int *state));
     115int     fclearlockfile         PROTO((char *filename, FILE *f, int type, int *state));
    118116
    119117/* in config.c */
    120 char *SelectConfigFile (int *argc, char **argv, char *progname);
    121 char *LoadConfigFile (char *filename);
    122 char *ScanConfig (char *config, char *field, char *mode, int N,...);
    123 char *expandline (char *line, char *config);
    124 char *fileextname (char *file);
    125 char *LoadRawConfigFile (char *, int);
     118char   *SelectConfigFile       PROTO((int *argc, char **argv, char *progname));
     119char   *LoadConfigFile         PROTO((char *filename));
     120char   *ScanConfig             PROTO((char *config, char *field, char *mode, int N,...));
     121char   *expandline             PROTO((char *line, char *config));
     122char   *fileextname            PROTO((char *file));
     123char   *LoadRawConfigFile      PROTO((char *, int));
    126124
    127 /* in Fseek.c */
    128 int   Fseek (FILE *f, long offset, int whence);
     125/* others */
     126int     Fseek                  PROTO((FILE *f, long offset, int whence));
     127char   *ohana_version          PROTO(());
     128
     129/* in time.c */
     130enum {TIME_NONE, TIME_DATE, TIME_DAYS, TIME_HOURS, TIME_MINUTES, TIME_SECONDS, TIME_JD, TIME_MJD};
     131
     132int     chk_time               PROTO((char *line));
     133time_t  date_to_sec            PROTO((char *date));
     134int     dms_to_ddd             PROTO((double *Value, char *string));
     135time_t  jd_to_sec              PROTO((double jd));
     136char   *sec_to_date            PROTO((time_t second));
     137double  sec_to_jd              PROTO((time_t second));
     138int     str_to_dtime           PROTO((char *line, double *second));
     139int     str_to_time            PROTO((char *line, time_t *second));
     140double  sec_to_mjd             PROTO((time_t second));
     141time_t  mjd_to_sec             PROTO((double mjd));
     142int     hms_to_deg             PROTO((double *h0, double *h1, double *d0, double *d1, char *string));
    129143
    130144/*
Note: See TracChangeset for help on using the changeset viewer.