On Tue, Nov 08, 2016 at 10:53:37AM +0100, Moritz Buhl wrote: > Hi, since vgrind was removed in 4.9 I removed the -v option in ctags. > At least the example in ctags(1) could be modified. > > Greetings Moritz Buhl
The diff got mangled by your mail program, please resend it. The synopsis in ctags.1 would also need to be adjusted by removing v. > > ? ctags-vgrind.diff > > Index: ctags.1 > > =================================================================== > > RCS file: /cvs/src/usr.bin/ctags/ctags.1,v > > retrieving revision 1.33 > > diff -u -p -r1.33 ctags.1 > > --- ctags.1 31 Dec 2015 14:01:26 -0000 1.33 > > +++ ctags.1 8 Nov 2016 09:37:27 -0000 > > @@ -91,19 +91,6 @@ Update the specified files in the > > file; that is, all > > references to them are regenerated, keeping only the other values in the > > file. > > -.It Fl v > > -An index of the form expected by vgrind > > -is produced on the standard output. > > -This listing contains the object name, file name, and page number (assuming > > -64 line pages). > > -Since the output will be sorted into lexicographic order, > > -it may be desired to run the output through > > -.Xr sort 1 . > > -Sample use: > > -.Bd -literal -offset indent > > -$ ctags -v files | sort -f > index > > -$ vgrind -x index > > -.Ed > > .It Fl w > > Suppress warning diagnostics. > > .It Fl x > > Index: ctags.c > > =================================================================== > > RCS file: /cvs/src/usr.bin/ctags/ctags.c,v > > retrieving revision 1.18 > > diff -u -p -r1.18 ctags.c > > --- ctags.c 9 Oct 2015 01:37:07 -0000 1.18 > > +++ ctags.c 8 Nov 2016 09:37:27 -0000 > > @@ -55,7 +55,6 @@ long lineftell; /* ftell after getc( in > > int lineno; /* line number of current line */ > > int dflag; /* -d: non-macro defines */ > > -int vflag; /* -v: vgrind style index output */ > > int wflag; /* -w: suppress warnings */ > > int xflag; /* -x: cxref style output */ > > @@ -81,7 +80,7 @@ main(int argc, char *argv[]) > > err(1, "pledge"); > > aflag = uflag = NO; > > - while ((ch = getopt(argc, argv, "BFadf:tuwvx")) != -1) > > + while ((ch = getopt(argc, argv, "BFadf:tuwx")) != -1) > > switch(ch) { > > case 'B': > > searchar = '?'; > > @@ -107,8 +106,6 @@ main(int argc, char *argv[]) > > case 'w': > > wflag = 1; > > break; > > - case 'v': > > - vflag = 1; > > case 'x': > > xflag = 1; > > break; > > @@ -120,12 +117,12 @@ main(int argc, char *argv[]) > > argc -= optind; > > if (!argc) { > > usage: (void)fprintf(stderr, > > - "usage: ctags [-aBdFuvwx] [-f tagsfile] file ...\n"); > > + "usage: ctags [-aBdFuwx] [-f tagsfile] file ...\n"); > > exit(1); > > } > > init(); > > - if (uflag && !vflag && !xflag) > > + if (uflag && !xflag) > > preload_entries(outfile, argc, argv); > > for (exit_val = step = 0; step < argc; ++step) >