IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 21, 2007, 2:10:20 PM (19 years ago)
Author:
eugene
Message:

convert str_to_time and related functions to ohana_...; various cleanups for -Wall -Werror

Location:
trunk/Ohana/src/opihi/cmd.astro
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.astro/ctimes.c

    r7917 r14590  
    2929    value = atof (argv[2]);
    3030    time = TimeRef (value, TimeReference, TimeFormat);
    31     date = sec_to_date (time);
     31    date = ohana_sec_to_date (time);
    3232   
    3333    if (Variable != (char *) NULL) {
     
    4848    }
    4949
    50     if (!str_to_time (argv[2], &time)) {
     50    if (!ohana_str_to_time (argv[2], &time)) {
    5151      gprint (GP_ERR, "syntax error\n");
    5252      return (FALSE);
  • trunk/Ohana/src/opihi/cmd.astro/getlst.c

    r7964 r14590  
    1616  if (argc != 3) goto syntax;
    1717
    18   if (!str_to_time (argv[1], &time)) {
     18  if (!ohana_str_to_time (argv[1], &time)) {
    1919      if (Variable != NULL) free (Variable);
    2020      return (FALSE);
     
    2323  longitude = atof (argv[2]);
    2424
    25   jd = sec_to_jd (time);
     25  jd = ohana_sec_to_jd (time);
    2626  fprintf (stderr, "jd: %f\n", jd);
    2727
  • trunk/Ohana/src/opihi/cmd.astro/region.c

    r14501 r14590  
    5858  }
    5959 
    60   if (!str_to_radec (&Ra, &Dec, argv[1], argv[2])) return (FALSE);
     60  if (!ohana_str_to_radec (&Ra, &Dec, argv[1], argv[2])) return (FALSE);
    6161  Radius = atof (argv[3]);
    6262  strcpy (graphmode.coords.ctype, "RA---TAN");
  • trunk/Ohana/src/opihi/cmd.astro/sexigesimal.c

    r7917 r14590  
    2323
    2424  if (HMS) {
    25     if (!dms_to_ddd (&value, argv[1])) {
     25    if (!ohana_dms_to_ddd (&value, argv[1])) {
    2626      gprint (GP_ERR, "syntax error in input\n");
    2727      return (FALSE);
Note: See TracChangeset for help on using the changeset viewer.