home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
clarion
/
showtree.zip
/
SHOWTREE.DOC
< prev
next >
Wrap
Text File
|
1989-04-13
|
2KB
|
52 lines
Hi everyone! This is just a little program I threw together to
create a full function/procedure calling tree using Clarion's
cross reference files. I use it to help me create maps for
overlays.
There are a number of stipulations which must be adhered to for
the program to work properly.
1. The main source file (APPNAME.CLA) and cross reference file
(APPNAME.XRF) must exist in the current directory. The
program will show the tree on the screen as it is created,
as well as write it to a disk file (APPNAME.XRT).
2. The syntax for executing ShowTree is "ShowTree <appname>".
Make sure you don't add any file extension (and don't type
the quotation marks).
3. The XRF file and CLA file must have the same filename. For
example, your CLA file cannot be called VIDEO1 if the first
line of the file is VIDEO PROGRAM. (That's right, the
Clarion-supplied VIDEO example would not work.) This
shouldn't be a problem for most applications.
4. The XRF file must be complete and correct. If this is not
the case, a recursive loop may occur and you will have to
re-boot to exit.
ShowTree was written using Turbo C. I haven't spent a great deal
of time trying to optimize the code, so don't expect it to be
really fast (Clarion's Crossrefer is much faster). As well, I am
not certain that the code is fully debugged. I will probably
improve it in the future, but this is a start. I am including a
copy of the source code, but be forewarned: there are very few
comments in the code, so you may have trouble understanding it
(although I've tried to use descriptive function names). If you
have any suggestions of ways to improve the code, please feel
free to leave me a note on the board; I'm always pleased to get
feedback of any kind.
I hope this helps some people out there. If you have any
questions, just send me a message or call me at (306)777-4461.
Happy CLARIONing!
-=> Mike Hanson <=-