74 short int *irev, *status;
80 static short int iadj, idote, idur, iend_, ival, k1,
81 k2, k3, k4, k5, k6, lwal, nday, ndig, nflag,
82 nhour, nmin, nmon, nsec, num, nyear,
i, flag,
95 if ( DEBUG1 )
printf(
"\nshdeca:begin");
160 else if( *status == 2 )
176 else if( *status == 2 )
181 else if( *status == 3 )
196 else if( *status == 2 )
201 else if( *status == 3 )
238 else if( *status == 2 )
359 shtadj( &nyear, &nmon, &nday, &nhour, &nmin, &nsec, &iadj,
407 shtdat( &nyear, &nmon, &nday, status );
426 shtadj( &nyear, &nmon, &nday, &nhour, &nmin, &nsec, &iadj, &flag,
451 shtadj( &k1, &k2, &k3, &k4, &k5, &k6, &iadj, &flag, status );
496 itest = nmon - Idate[1];
497 if ( itest > 6 ) nyear--;
498 if ( itest < -6 ) nyear++;
499 if ( (itest == -6 ) & ( nday < Idate[2] ) )
501 if ( (itest == 6 ) && ( nday > Idate[2] ) )
506 check_24( &nyear, &nmon, &nday, &nhour, &nmin, &nsec );
515 "%c%c%c%c%c%c%c%c %4d %2d %2d %2d %2d %2d %4d %2d %2d %2d %2d %2d ",
518 nyear, nmon, nday, nhour, nmin, nsec, k1, k2, k3, k4, k5, k6);
521 "%c%c%c%c%c%c%c %4d %20.6f %20.6f %c %d %c%c%c%c%c%c%c%c %d %s\n",
532 "%c%c%c%c%c%c%c%c %4d %2d %2d %2d %2d %2d %4d %2d %2d %2d %2d %2d ",
535 nyear, nmon, nday, nhour, nmin, nsec, k1, k2, k3, k4, k5, k6);
538 "%c%c%c%c%c%c%c %4d %20.6f %20.6f %c %d %c%c%c%c%c%c%c%c %d %s\n",
619 else if( *status == 2 )
637 else if( *status == 2 )
long check_24(short int *year, short int *month, short int *day, short int *hour, short int *minute, short int *second)
void irang(short int *i, short int *min_, short int *max_, short int *status)
printf("fbuf is %s\n", fbuf)
fprintf(fp,"%d %d %d %d 1\n", iminx, iminy, maxi, maxj)
void nextch(short int *ichar, short int *status)
void shdeca(short int *irev, short int *status)
void shdtype(short int *iflag, short int *status)
struct t_comment comment_
struct t_sendflg_ sendflg_
struct t_durprob_ durprob_
void sherr(short int *ier)
void shlocl(short int *nyear, short int *nmon, short int *nday, short int *nhour, short int *nmin, short int *nsec, short int *nadjtz, short int *iadj, short int *status)
void shpcode(short int *kodp, short int *kode, short int *icodd, short int *kodt, short int *kods, short int *kodex, float *codp, double *factor, short int *status)
void shpos(short int *status)
void shreal(double *value, short int *iflag, short int *ndig, short int *status)
void shtadj(short int *lyear, short int *lmon, short int *lday, short int *lhour, short int *lmin, short int *lsec, short int *kadj, short int *iadj, short int *status)
void shtdat(short int *lyear, short int *lmon, short int *lday, short int *status)
short int ibuf[MAX_SHEF_INPUT]