home *** CD-ROM | disk | FTP | other *** search
- Compare Utility
- ---------------
-
- This is a very simple utility that compares two files and reports
- on any difference in:
-
- - file type
- - file length
- - contents
- - date stamp.
-
- If the contents are different it does not attempt to report on
- what the differences are.
-
- To use it, the !Compare icon should first be installed on the
- icon bar. Then two files should be selected (using the mouse
- ADJUST button) and then dragged to the !Compare icon.
-
- The '!RunA' file works by saving the identification for the first
- dragged to it in a system variable and then running the actual
- compare program when the second file is dragged to it. Clicking
- on the !Compare icon on the icon bar (instead of dragging file
- icons to it) will clear the system variables used and can be used
- to 'reset' !Compare' if it gets out of synch.
-
- Two versions of the utility are provided (for no particular
- reason other than interest). Both are written in Basic and are
- very similar, but one version has been compiled with the ABC
- Basic Compiler while the second version is intended to run under
- the Basic Interpreter and has been optimised with some assembler
- code to speed up the actual comparison of the contents. The
- distributed !RunA file will invoke the compiled version and
- requires the Acorn Floating Point Emulator and ABCLibrary
- relocatable modules to be present.
-
- The files corresponding to the two versions are:
-
-
- Filename Function
- -------- --------
-
- Compiled version: !RunA Obey file
- Source Source code
- Object Compiled object code
- ABClib ABC Basic Library module
-
- Interpreted version: !RunA_int Obey file
- !RunImage Basic program
-
-
- In order to change from the compiled to the interpreted version,
- rename the "!RunA" file to some other name (e.g. "!RunA_cpl") and
- then rename the "!RunA_int" file to "!RunA".
-
- This application also uses the 'BootA$util' program which resides
- in the !BootA application directory. This program is run to send
- a message to the BootA application requesting a change of sprite
- name for the icon installed on the icon bar. The !sprites file
- for !Compare contains three sprites: '!compare', which is the one
- initially used when the client application is installed;
- 'compare0', which is used when one file has been dragged to the
- icon; and 'compare1', which is used when two files have been
- dragged and the comparison is under way. After the comparison is
- complete, the icon reverts back to displaying '!compare' to show
- that it is ready for use again.