Re: null terminated strings
- From: Dave Froble <davef@xxxxxxxxxxxxx>
- Date: Fri, 10 Feb 2006 16:19:10 -0500
Tom Linden wrote:
On Fri, 10 Feb 2006 12:15:04 -0500, Dave Froble <davef@xxxxxxxxxxxxx> wrote:
Well, it can be caught by the compiler. I have utilities that will parse the /LIST output of the compiler, and report on variables that are referenced only once. I can then check out such, and determine whether it's a typo, or something brought in with some boiler-plate sections of code.
If you use a _real_ compiler it does it for you
PLI
/CROSS_REFERENCE
/NOCROSS_REFERENCE (D)
Specifies whether the compiler is to generate cross references in
the listing file. If you specify /CROSS_REFERENCE, the compiler
lists, for each variable referenced in the procedure, the line
numbers of the lines on which the variable is referenced.
You must specify /LIST/SHOW=MAP with /CROSS_REFERENCE.
So does VAX Basic. A utility can check the cross reference, and when a variable has only one reference, it's time for a look at that section of code. Also, nearby in the cross reference may be another variable with similar spelling, and that's an indicator that perhaps there is a typo.
Any of the VMS compilers that I've seen, and the list is far from complete, will generate the cross reference.
--
David Froble Tel: 724-529-0450
Dave Froble Enterprises, Inc. Fax: 724-529-0596
DFE Ultralights, Inc. E-Mail: davef@xxxxxxxxxxxxx
170 Grimplin Road
Vanderbilt, PA 15486
.
- References:
- RE: null terminated strings
- From: Dan Allen
- Re: null terminated strings
- From: Bill Gunshannon
- Re: null terminated strings
- From: Dave Froble
- Re: null terminated strings
- From: JF Mezei
- Re: null terminated strings
- From: Dave Froble
- Re: null terminated strings
- From: Bill Gunshannon
- Re: null terminated strings
- From: Dave Froble
- Re: null terminated strings
- From: Karsten Nyblad
- Re: null terminated strings
- From: Dave Froble
- Re: null terminated strings
- From: Tom Linden
- RE: null terminated strings
- Prev by Date: Re: null terminated strings
- Next by Date: Re: null terminated strings
- Previous by thread: Re: null terminated strings
- Next by thread: Re: null terminated strings
- Index(es):
Relevant Pages
|