[BACK]Return to main.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/main.c between version 1.241 and 1.243

version 1.241, 2015/07/19 00:07:42 version 1.243, 2015/07/21 03:26:21
Line 458  main(int argc, char *argv[])
Line 458  main(int argc, char *argv[])
                                 passthrough(resp->file, fd,                                  passthrough(resp->file, fd,
                                     conf.output.synopsisonly);                                      conf.output.synopsisonly);
   
                         rctmp = mparse_wait(curp.mp);  
                         if (rc < rctmp)  
                                 rc = rctmp;  
   
                         if (argc > 1 && curp.outtype <= OUTT_UTF8)                          if (argc > 1 && curp.outtype <= OUTT_UTF8)
                                 ascii_sepline(curp.outdata);                                  ascii_sepline(curp.outdata);
                 }                  }
Line 997  spawn_pager(void)
Line 993  spawn_pager(void)
   
         /* Read all text right away and use the tag file. */          /* Read all text right away and use the tag file. */
   
         if ((cmdlen = strlen(argv[0])) >= 4) {          for (;;) {
                   if ((cmdlen = strlen(argv[0])) < 4)
                           break;
                 cp = argv[0] + cmdlen - 4;                  cp = argv[0] + cmdlen - 4;
                 if (strcmp(cp, "less") == 0 ||                  if (strcmp(cp, "less") && strcmp(cp, "more"))
                     strcmp(cp, "more") == 0) {                          break;
                         tag_init();                  if ((cp = tag_init()) == NULL)
                         argv[argc++] = mandoc_strdup("+G1G");                          break;
                         argv[argc++] = mandoc_strdup("-T");                  argv[argc++] = mandoc_strdup("+G1G");
                         argv[argc++] = tag_filename();                  argv[argc++] = mandoc_strdup("-T");
                 }                  argv[argc++] = cp;
                   break;
         }          }
         argv[argc] = NULL;          argv[argc] = NULL;
   

Legend:
Removed from v.1.241  
changed lines
  Added in v.1.243

CVSweb