Professional Documents
Culture Documents
I use BC 4.5 and had some problems with the makefile, it was generating
a .COM file of 102Kb!. I have included my modified makefile for your
reference.
For the files I have modified, I have reformatted them to my style (sorry).
Take a look and see if you can live with it. I find that procedure headers
are easier to find and that putting the history in reverse order helps
quickly find the latest changes.
File Description
batch.c A new version, implements CALL, ECHO, GOT, IF, PAUSE, SHIFT
and BEEP. There is a stub for FOR but that's all.
command.h Your version D with changes. Look for the HBP tag.
The test subdirectory has some batch file tests. I run T.BAT which uses
runs the test and sends output to a file. The tests are run twice once
for a COMMAND.COM on the patch (presumably ours) and once with
C:\COMMAND.COM, presumed to be the MSDOS version. Compare the outputs in
MSDOS.OUT and FDOS.OUT to look for any problems.
Regards,
Hans <mailto:hansp@digiweb.com>
-----------------------------------------------------------------------------
+ fixed DEL char **arg allocation --> allocating a dynamic memory area
for each arg[] element, however, split() simply overwrites them and
they are no dynamic pointers for their own.
+ Someone removed the ^Break catcher. It makes not much sense to incorporate
^Break checks, but running without a ^C catcher. Therefore I have
re-added the catcher, this time using signals (the DOS emulation of
them, however).
-----------------------------------------------------------------------------
COPY.TXT
Rob Lake
Aug-19-98
Notes:
o Crashes when returning from cmd_copy. Works fine on its own
(see mod_copy.zip). I can't figure out why myself. I think that
there is a memory allocation problem somewhere. Hopefully someone
more experienced can track it down.
o You can define the mode for all files in the command line. Ex.
cp "/b cp.com + /a copy.c + /a copy.obj /b cp.txt"
works (for whatever reason someone would want to do that:-).