Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 1998 19:25:59 +0100 (CET)
From:      dada@sbox.tu-graz.ac.at
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/9318: vgrind(1): no JAVA support
Message-ID:  <199812311825.TAA01891@localhost.tu-graz.ac.at>

next in thread | raw e-mail | index | archive | help

>Number:         9318
>Category:       bin
>Synopsis:       vgrind(1): no JAVA support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan  4 17:30:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Martin Kammerhofer
>Release:        FreeBSD 2.2.8-STABLE i386
>Organization:
Graz University of Technology
>Environment:

>Description:

Problem 1:
  Option -t as documented in vgrind(1) does not work. The manpage says
  it's redirecting output to stdout. In reality it tells troff(1) to
  run the tbl(1) preprocessor.

Problem 2:
  vgrind(1) is missing support for java.

>How-To-Repeat:

vgrind -t anyfile.c
vgrind -ljava anotherfile.java

>Fix:

================================================	
diff -u vgrind~/vgrind.1 vgrind/vgrind.1
--- vgrind~/vgrind.1	Sun Jul 19 22:33:46 1998
+++ vgrind/vgrind.1	Thu Dec 31 18:56:55 1998
@@ -140,9 +140,11 @@
 .Pq Fl l Ns Ar isp ,
 .Tn ICON
 .Pq Fl l Ns Ar I ,
-and
 .Tn PERL
-.Pq Fl l Ns Ar perl .
+.Pq Fl l Ns Ar perl
+and
+.Tn JAVA
+.Pq Fl l Ns Ar java .
 .It Fl n
 forces no keyword bolding
 .It Fl p Ar postproc
@@ -155,9 +157,9 @@
 specifies a point size to use on output (exactly the same as the argument
 of a .ps)
 .It Fl t
-similar to the same option in
-.Xr troff
-causing formatted text to go to the standard output
+causes formatted text to go to the standard output (short for
+.Fl p Qq Ar groff -Tps -C
+)
 .It Fl x
 outputs the index file in a ``pretty'' format. 
 The index file itself is produced whenever 
diff -u vgrind~/vgrind.sh vgrind/vgrind.sh
--- vgrind~/vgrind.sh	Sun Sep  8 20:23:53 1996
+++ vgrind/vgrind.sh	Thu Dec 31 18:01:19 1998
@@ -53,7 +53,7 @@
 	goto top
 
     case -t:
-	set voptions = "$voptions -t"
+	set postproc=(groff -Tps -C)
 	shift
 	goto top
 
diff -u vgrind~/vgrindefs.src vgrind/vgrindefs.src
--- vgrind~/vgrindefs.src	Sun Jul 19 22:33:46 1998
+++ vgrind/vgrindefs.src	Thu Dec 31 18:03:09 1998
@@ -157,3 +157,14 @@
 	:sb=":se=(\e"|$):lb=':le=(\e'|$):\
 	:kw=do if unless while until else elsif for foreach continue\
 	next redo sub last goto return die exit require:
+java|Java|JAVA:\
+        :pb=^\d?(public|protected|private)?\d?(class|interface)\d\p(\d|{):\
+        :bb={:be=}:cb=/*:ce=*/:ab=//:ae=$:sb=":se=\e":lb=':\
+        :zb=@:ze=@:tb=%%:te=%%:mb=%\$:me=\$%:vb=%\|:ve=\|%:\
+        :le=\e':tl:\
+        :kw=abstract boolean break byte byvalue case catch char class\
+        const continue default do double else extends false final finally\
+        float for goto if implements import instanceof int interface long\
+        native new null package private protected public return short static\
+        super switch synchronized this threadsafe throw transient true try\
+        void while:
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812311825.TAA01891>