[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.18 and 1.19

version 1.18, 2000/03/13 23:53:41 version 1.19, 2000/03/26 16:45:04
Line 42 
Line 42 
 #include <dump_entry.h>  #include <dump_entry.h>
 #include <term_entry.h>  #include <term_entry.h>
   
 MODULE_ID("$From: tic.c,v 1.64 2000/03/11 21:45:07 tom Exp $")  MODULE_ID("$From: tic.c,v 1.67 2000/03/19 02:08:10 tom Exp $")
   
 const char *_nc_progname = "tic";  const char *_nc_progname = "tic";
   
Line 91 
Line 91 
         "  -N         disable smart defaults for source translation",          "  -N         disable smart defaults for source translation",
         "  -R         restrict translation to given terminfo/termcap version",          "  -R         restrict translation to given terminfo/termcap version",
         "  -T         remove size-restrictions on compiled description",          "  -T         remove size-restrictions on compiled description",
   #if NCURSES_XNAMES
           "  -a         retain commented-out capabilities (sets -x also)",
   #endif
         "  -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 %{number} to %'char'",
Line 445 
Line 448 
      * be optional.       * be optional.
      */       */
     while ((this_opt = getopt(argc, argv,      while ((this_opt = getopt(argc, argv,
                 "0123456789CILNR:TVce:fGgo:rsvwx")) != -1) {                  "0123456789CILNR:TVace:fGgo:rsvwx")) != -1) {
         if (isdigit(this_opt)) {          if (isdigit(this_opt)) {
             switch (last_opt) {              switch (last_opt) {
             case 'v':              case 'v':
Line 521 
Line 524 
             width = 0;              width = 0;
             break;              break;
 #if NCURSES_XNAMES  #if NCURSES_XNAMES
           case 'a':
               _nc_disable_period = TRUE;
               /* FALLTHRU */
         case 'x':          case 'x':
             use_extended_names(TRUE);              use_extended_names(TRUE);
             break;              break;
Line 652 
Line 658 
     if (!check_only) {      if (!check_only) {
         if (!infodump && !capdump) {          if (!infodump && !capdump) {
             _nc_set_writedir(outdir);              _nc_set_writedir(outdir);
             for_entry_list(qp)              for_entry_list(qp) {
                 if (matches(namelst, qp->tterm.term_names))                  if (matches(namelst, qp->tterm.term_names))
                 write_it(qp);                      write_it(qp);
               }
         } else {          } else {
             /* this is in case infotocap() generates warnings */              /* this is in case infotocap() generates warnings */
             _nc_curr_col = _nc_curr_line = -1;              _nc_curr_col = _nc_curr_line = -1;
Line 757 
Line 764 
 }  }
   
 static void  static void
 check_sgr(TERMTYPE * tp, char *zero, int num, char *cap, char *name)  check_sgr(TERMTYPE * tp, char *zero, int num, char *cap, const char *name)
 {  {
     char *test = tparm(set_attributes,      char *test = tparm(set_attributes,
         num == 1,          num == 1,

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19