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/cmd.basic/run_if.c

    r4689 r7917  
    1212
    1313  if ((argc != 2) && (argc != 3)) {
    14     fprintf (stderr, "USAGE: if (conditional) [break], end with the word 'END'\n");
     14    gprint (GP_ERR, "USAGE: if (conditional) [break], end with the word 'END'\n");
    1515    return (FALSE);
    1616  }
    1717  if ((argc == 3) && strcmp (argv[2], "break")) {
    18     fprintf (stderr, "USAGE: if (conditional) [break], end with the word 'END'\n");
     18    gprint (GP_ERR, "USAGE: if (conditional) [break], end with the word 'END'\n");
    1919    return (FALSE);
    2020  }
     
    5555
    5656    if ((ThisList == 0) && (input == (char *) NULL)) {
    57       fprintf (stderr, "end if-block with 'END'\n");
     57      gprint (GP_ERR, "end if-block with 'END'\n");
    5858      continue;
    5959    }
    6060    if ((ThisList >  0) && (input == (char *) NULL)) {
    61       fprintf (stderr, "missing 'END' in if-block\n");
     61      gprint (GP_ERR, "missing 'END' in if-block\n");
    6262      input = strcreate ("end");
    6363    }
Note: See TracChangeset for help on using the changeset viewer.