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

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

version 1.7, 2003/04/07 21:13:54 version 1.8, 2003/04/25 20:07:09
Line 160 
Line 160 
                 else {                  else {
                         if (uflag) {                          if (uflag) {
                                 for (step = 0; step < argc; step++) {                                  for (step = 0; step < argc; step++) {
                                         (void)asprintf(&cmd,                                          if (asprintf(&cmd,
                                             "mv %s OTAGS; fgrep -v '\t%s\t' OTAGS >%s; rm OTAGS",                                              "mv %s OTAGS; fgrep -v '\t%s\t' OTAGS >%s; rm OTAGS",
                                             outfile, argv[step], outfile);                                              outfile, argv[step], outfile) == -1)
                                         if (cmd == NULL)  
                                                 err(1, "out of space");                                                  err(1, "out of space");
                                         system(cmd);                                          system(cmd);
                                         free(cmd);                                          free(cmd);
Line 176 
Line 175 
                         put_entries(head);                          put_entries(head);
                         (void)fclose(outf);                          (void)fclose(outf);
                         if (uflag) {                          if (uflag) {
                                 (void)asprintf(&cmd, "sort -o %s %s",                                  if (asprintf(&cmd, "sort -o %s %s",
                                     outfile, outfile);                                      outfile, outfile) == -1)
                                 if (cmd == NULL)  
                                                 err(1, "out of space");                                                  err(1, "out of space");
                                 system(cmd);                                  system(cmd);
                                 free(cmd);                                  free(cmd);

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