IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2014, 10:07:16 AM (12 years ago)
Author:
eugene
Message:

move INITTIME,MARKTIME to libohana; new parsing functions to deal with string-type FITS columns in ohana

File:
1 edited

Legend:

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

    r35754 r37033  
    7171# endif
    7272
     73# define MARKTIME(MSG,...) {                    \
     74    gettimeofday (&stopTimer, (void *) NULL);   \
     75    float dtime = DTIME (stopTimer, startTimer);        \
     76    fprintf (stderr, MSG, __VA_ARGS__); }
     77
     78# define INITTIME \
     79  struct timeval startTimer, stopTimer; \
     80  gettimeofday (&startTimer, (void *) NULL);
     81
    7382#ifdef __GNUC__
    7483#define OHANA_FORMAT(style, fmt, varargs) __attribute__((format(style, fmt, varargs)))
     
    252261int     scan_line              PROTO((FILE *f, char *line));
    253262int     scan_line_maxlen       PROTO((FILE *f, char *line, int maxlen));
     263char   *parse_nextword         PROTO((char *string));
     264char   *parse_nextword_csv     PROTO((char *string));
    254265int     dparse                 PROTO((double *X, int NX, char *line));
    255266int     dparse_csv             PROTO((double *X, int NX, char *line));
    256267int     iparse                 PROTO((int *X, int NX, char *line));
    257268int     iparse_csv             PROTO((int *X, int NX, char *line));
     269int     charparse_csv          PROTO((char *X, int NX, char *line));
     270char   *ptrparse               PROTO((int NX, char *line));
     271char   *ptrparse_csv           PROTO((int NX, char *line));
    258272int     charparse_csv          PROTO((char *X, int NX, char *line));
    259273int     charparse              PROTO((char *X, int NX, char *line));
     
    266280char   *strip_version          PROTO((char *input));
    267281char   *strsubs                PROTO((char *string, char *match, char *with));
     282
     283char   *getword                PROTO((char *string));
     284char   *skipword               PROTO((char *string));
    268285
    269286/* in findexec.c */
Note: See TracChangeset for help on using the changeset viewer.