IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2006, 10:58:49 PM (20 years ago)
Author:
eugene
Message:

major updates to use gprint for buffered / threaded printing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/parse.c

    r3317 r7917  
    7474      free (B);
    7575
    76       if (status) fprintf (stderr, "warning: exit status of command %d\n", status);
     76      if (status) gprint (GP_ERR, "warning: exit status of command %d\n", status);
    7777
    7878      /* convert all but last return to ' '.  drop last return */
     
    131131    free (V0); V0 = (char *) NULL;
    132132    if (Nval >= vec[0].Nelements) {
    133       fprintf (stderr, "no element %d\n", Nval);
     133      gprint (GP_ERR, "no element %d\n", Nval);
    134134      goto escape;
    135135    }
     
    170170    c1 = strchr (L, '}');
    171171    if (c1 == NULL) {
    172       fprintf (stderr, "no close brackets!\n");
     172      gprint (GP_ERR, "no close brackets!\n");
    173173      goto escape;
    174174    }
    175175    c2 = strchr (L, '{');
    176176    if ((c2 != NULL) && (c2 < c1)) {
    177       fprintf (stderr, "can't nest brackets!\n");
     177      gprint (GP_ERR, "can't nest brackets!\n");
    178178      goto escape;
    179179    }
     
    205205
    206206  error:
    207   fprintf (stderr, "syntax error\n");
     207  gprint (GP_ERR, "syntax error\n");
    208208
    209209  escape:
Note: See TracChangeset for help on using the changeset viewer.