[net.micro.cpm] Software Tools in Turbo Pascal for CP/M-86 and MSDOS

jp%a@LANL.ARPA (James Potter) (10/19/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.

I originally received these from a telephone BBS without the copyright
notices.  I spoke with Brian Kernighan and he indicated that, as far
as he was concerned, there was no problem if suitable copyright
notices were included.  The notice I used is the same as the one on
the Chris Lewis version already archived.  I also spoke to Bill McGee,
the originator of these files.  He said that he did little more than
type them in and felt no proprietary interest of his was involved.
Likewise, I only made a few simple modifications to get the programs
working under CP/M-86.

There has been a lot of interest in the Software Tools for Turbo
Pascal on the nets, judging by all the mail I have received recently.
I particularly like the translit program.  And I want to use the macro
expansion program on a project I'm working on.

I find the editor not too useful and the archive program ditto.

Jim Potter  jp@lanl.arpa