[BACK]Return to tic.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tic

Diff for /src/usr.bin/tic/tic.c between version 1.7 and 1.8

version 1.7, 1999/03/02 06:23:55 version 1.8, 1999/03/11 21:08:10
Line 44 
Line 44 
 #include <dump_entry.h>  #include <dump_entry.h>
 #include <term_entry.h>  #include <term_entry.h>
   
 MODULE_ID("$From: tic.c,v 1.48 1999/03/01 00:26:51 tom Exp $")  MODULE_ID("$From: tic.c,v 1.49 1999/03/07 01:21:14 tom Exp $")
   
 const char *_nc_progname = "tic";  const char *_nc_progname = "tic";
   
Line 86 
Line 86 
         "  -T         remove size-restrictions on compiled description",          "  -T         remove size-restrictions on compiled description",
         "  -c         check only, validate input without compiling or translating",          "  -c         check only, validate input without compiling or translating",
         "  -f         format complex strings for readability",          "  -f         format complex strings for readability",
           "  -G         format %{number} to %'char'",
         "  -g         format %'char' to %{number}",          "  -g         format %'char' to %{number}",
         "  -e<names>  translate/compile only entries named by comma-separated list",          "  -e<names>  translate/compile only entries named by comma-separated list",
         "  -o<dir>    set output directory for compiled entry writes",          "  -o<dir>    set output directory for compiled entry writes",
Line 386 
Line 387 
 int     fd;  int     fd;
 int     width = 60;  int     width = 60;
 bool    formatted = FALSE;      /* reformat complex strings? */  bool    formatted = FALSE;      /* reformat complex strings? */
 bool    numbers = TRUE;         /* format "%'char'" to "%{number}" */  bool    numbers = 0;            /* format "%'char'" to/from "%{number}" */
 bool    infodump = FALSE;       /* running as captoinfo? */  bool    infodump = FALSE;       /* running as captoinfo? */
 bool    capdump = FALSE;        /* running as infotocap? */  bool    capdump = FALSE;        /* running as infotocap? */
 bool    forceresolve = FALSE;   /* force resolution */  bool    forceresolve = FALSE;   /* force resolution */
Line 415 
Line 416 
          * design decision to allow the numeric values for -w, -v options to           * design decision to allow the numeric values for -w, -v options to
          * be optional.           * be optional.
          */           */
         while ((this_opt = getopt(argc, argv, "0123456789CILNR:TVce:fgo:rsvwx")) != EOF) {          while ((this_opt = getopt(argc, argv, "0123456789CILNR:TVce:fGgo:rsvwx")) != -1) {
                 if (isdigit(this_opt)) {                  if (isdigit(this_opt)) {
                         switch (last_opt) {                          switch (last_opt) {
                         case 'v':                          case 'v':
Line 469 
Line 470 
                 case 'f':                  case 'f':
                         formatted = TRUE;                          formatted = TRUE;
                         break;                          break;
                   case 'G':
                           numbers = 1;
                           break;
                 case 'g':                  case 'g':
                         numbers = FALSE;                          numbers = -1;
                         break;                          break;
                 case 'o':                  case 'o':
                         outdir = optarg;                          outdir = optarg;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8