home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
utility
/
crossref
/
xref
/
xtp.doc
< prev
next >
Wrap
Text File
|
1990-07-18
|
3KB
|
91 lines
File: XTP.DOC describes XTP.EXE:
XTP v.1.0 Copyright (c) 19900718 Lars Fosdal - TP55 Source Cross Referencer.
The program generates a Cross Reference Listing of a .PAS file.
About the program :
This program had to be created when my boss asked me to revise a 1000+ line
program that was nearly without comments and structure.
It sure made it easier to comprehend what that programmer had been up to.
Usage : Try starting it without parameters.
XTP will expect an input file-name and optionally an output file-name.
By default it assumes the input filename to have the extension .PAS and
gives the output file the same name, but with extension .XTP.
If the outputfile exists or is ReadOnly, you'll be prompted for a change
of outputfile-name.
Paths can be specfied for both input and output file-names.
Output Example :
The short program...
PROGRAM demo;
VAR
St : string;
BEGIN
Readln(St);
Writeln(St);
END.
Generates...
1 PROGRAM demo;
2 VAR
3 St : string;
4 BEGIN
5 Readln(St);
6 Writeln(St,St);
7 END.
--- Cross Reference listing
demo 1
Readln 5
St 3 5 6 6
Writeln 6
--- Produced by XTP v.1.0 Copyright (c) 19900718 Lars Fosdal
As you can see, the reserved words of Turbo Pascal (v.5.5 or less) will not
be referenced.
I've been thinking that a lot of other programmers also could use such a tool,
so I've decided to release it into Public Domain. I hope some of you will
take a few bills out of your wallets and mail me the rest in pure joy over
finally having such a utility for FREE ;-) !
XTP doesn't have a lot of features, but it does the job.
If I have some spare time (and some good ideas) I might even try to include
some of the To-Do list features (See Author's notice).
Because of the short developement and testing time, XTP may still have bugs
which I haven't discovered. Please give me a hint of such.
XTP.EXE and XTP.DOC should be distributed together in a file called XTP100.ZIP.
XTP was created in Turbo Pascal v.5.5 over a few days.
Share and ENJOY ! Lars Fosdal, Oslo - July 18, 1990
Author's notice :
This program is PUBLIC DOMAIN. No Warranty Included.
SysOp''s and others: NO CHARGES ALLOWED for distribution !
If you like this program, and want to see enhancements in the future,
feel free to show it in the following manner :
1. Upload it to your favorite BBS''s or FTP it to your favorite sites
2. Let your friends have a copy
3. Send me a small token of your appreciation
4. Stop the pollution of our planet
Bug reports, Suggestions and Donations to :
Mr.Lars Fosdal, Krokkleiva 7, N-1170 OSLO 11, Norway
To-Do (When I''m in the mood) list :
Wildcard file specifications; Automatic unit/inc.file referencing;
Pages & Headers; Printer support; Exclude/Specify options.