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/macro_create.c

    r3907 r7917  
    2121
    2222  if (argc != 2) {
    23     fprintf (stderr, "USAGE: macro <name> [-c \"comment line\"]\n");
    24     fprintf (stderr, "  (enter commands, end with the word 'END')\n");
     23    gprint (GP_ERR, "USAGE: macro <name> [-c \"comment line\"]\n");
     24    gprint (GP_ERR, "  (enter commands, end with the word 'END')\n");
    2525    return (FALSE);
    2626  }
     
    3131 
    3232  if ((macro == NULL) && (cmd != NULL)) {
    33     fprintf (stderr, "cannot redefine inherent command %s\n", argv[1]);
     33    gprint (GP_ERR, "cannot redefine inherent command %s\n", argv[1]);
    3434    return (FALSE);
    3535  }
    3636  if ((macro != NULL) && (cmd == NULL)) {
    37     fprintf (stderr, "programming error: macro not in command list (%s)\n", argv[1]);
     37    gprint (GP_ERR, "programming error: macro not in command list (%s)\n", argv[1]);
    3838    return (FALSE);
    3939  }
     
    7575
    7676    if ((ThisList == 0) && (input == (char *) NULL)) {
    77       fprintf (stderr, "end macro with 'END'\n");
     77      gprint (GP_ERR, "end macro with 'END'\n");
    7878      continue;
    7979    }
     
    8181
    8282    if ((ThisList > 0) && (input == (char *) NULL)) {
    83       fprintf (stderr, "missing 'END' in macro definition\n");
     83      gprint (GP_ERR, "missing 'END' in macro definition\n");
    8484      input = strcreate ("end");
    8585    }
Note: See TracChangeset for help on using the changeset viewer.