[net.sources] Software Tools in Turbo Pascal on SIMTEL20

jp@lanl.ARPA (10/20/85)

I have posted the files for Software Tools in Pascal (Turbo Pascal
version) to SIMTEL20 as:

Filename			Type	 Bytes	 CRC

Directory MICRO:<CPM.TURBOPAS>
TRBTOL86.LBR.1			BINARY	 70784  0559H

This library contains the source from the book "Software Tools in
Pascal" by B.W. Kernighan and P.J. Plauger, Addison-Wesley.  It has
been adapted for Turbo Pascal.  Accepts redirection, but not pipes.
The version using TURBO is fast enough to make this a useful set of
tools for file manipulation.

The primitives in this version are basically the UCSD Pascal versions
presented in the book, with modifications for Turbo Pascal.

This version has been modified for use under Turbo Pascal v. 3.0 under
CP/M-86.  There are no system dependent statements in the code to the
best of my knowledge, so it should work under MS-DOS as well.

The original version (typed in by Bill McGee) was set up for CP/M-80
and used the CHAIN capability of Turbo Pascal.  I have eliminated that
feature in favor of using INCLUDE files.  There is not enough memory
available in a CP/M-80 system for this version, but one could modify
the include file list to eliminate unwanted features or to make more
than one version, (e.g. break out EDIT, FORMAT, and DEFINE).

There was really only one change required to the McGee's original to
get it to work with version 3.0.  A readln(TRM) had to be added in the
subroutine GETKBD.  The change to CP/M-86 required replacing all calls
to the procedure BDOS(0,0) with HALT.  This change works with the
CP/M-80 version of Turbo Pascal v. 3.0 as well.  Thus, as anyone can
see, all of the hard work was done by Bill.

Please note that this is copyrighted software.  Right has been granted
to freely distribute or duplicate this software, providing
distribution or duplication is not for profit or other commercial gain
and that the copyright notice within remains intact.


Jim Potter  jp@lanl.arpa