From: mcastle@mcs213e.cs.umr.edu (Mike Castle {Nexus})
Newsgroups: alt.sources
Subject: PBMPlus on MS-DOS patches (ADDENDUM)
Message-ID: <2703@umriscc.isc.umr.edu>
Date: 29 Apr 91 21:47:12 GMT


It was pointed out to me that I had forgotten to indicate what release of
PBMPlus my patches should be applied to.  Sorry.

Apply the patches to the  BETA TEST distribution of 05feb91 of pbmplus.

Also, I went ahead and extracted my README.DOS file.  

----------------------------------

 This is my first release of my port of the pbmplus package to DOS.
 It was done using DJ Delorie's DOS port of GCC.  You REQUIRE a 386 or
 better machine.  387 optional for parts, and those parts should tell you
 when you don't have one.  See the GCC package for more details.  Also, 
 lots of ram and disk space help.  See below for more information.
 
 The gcc package can be obtained from:  grape.ecs.clarkson.edu 
 (I believe it can also be found on garbo.uwase.fi, and probably others.  
 Check archie).
 
 The PBMPlus package can be obtained from ftp.ee.lbl.gov:pbmplus.tar.Z and
 export.lcs.mit.edu:contrib/pmbplus.tar.Z
 
 I believe this package works for the most part.
 
 Parts I know don't work:
 GIFTOPPM  -- this may be a flaw in GCC malloc, I don't know.
 PBMTOGEM  -- this is a little-endian/big-endian problem *sigh*	
 	      at least GEMTOPBM works....
 PNMGAMMA  -- all 0's get mapped to 256, even with correction of 1.0.  Go
              figure.  Fix, make an appropriate file of all 1's and run
              through PNMARITH (well, I think this will work).
   
 None of the TIFF stuff.  Can't get the damn library to link in.  I think 
 this is just pilot error on my part with using 'ld'  
 
 This is the first real project I've worked on in C, and I'm pretty much 
 clueless.  :->	It doesn't take a genius to go through and change printf 
 to fprintf(ofp , just someone with nothing better to do, and an editor 
 that supports macros well.	 
 
 If anyone finds any other problems, please get in touch with me.  I 
 won't have net access over the summer (I'm looking into it, but no luck
 yet, and I can't afford lond-distance phone calls on a regular basis).
 If you find a problem, I would be interested in a copy of the input file
 in the original format, and one in GIF, TARGA, RAW, or any format that 
 CSHOW can handle.  I would also like copies of any other patches you may
 develop. 
  
 You can either send me disks (with self-addressed stamped envelope to 
 mail them back with, hopefully with fixes :-), or send me mail, and I'll
 send disks with an SASE to you.
 
 My address is:
 		Mike Castle
 		R 2 Bx 69
 		Troy, MO 63379 
 		USA 	   
 
 
 EXEs:  If you are reading this from the distribution through 
 comp.binaries.ibm.pc, then most likely you have all (or most) of the 
 .exe files.  The file GO32.EXE _MUST_ be in you path.  This is the DJ's 
 DOS extender, and is needed to get the other programs to work.	I used 
 just the stub that calls the extender rather than the actual extender 
 when I created the actuall exe files in order to save space.  The entire
 package would have been about twice the size had I built them with the 
 extender.  If you want to change that, get the original PBMPlus source,
 apply my patches, and then rebuild (see PATCHes: below).
 
 PATCHes:  As will be posted to alt.sources, my patches include several 
 utility batch files to (hopefully) aid making them.  They are:
 	MAKEALL.BAT    This assumes using GNUMAKE (available on Simtel20, et al)	
 	MAKEEXE.BAT    This builds the actuall executables from the 32-bit 
                       code produced by GCC.  Edit it to fit your system, 
 		       and desires.
 	DELP?M.BAT     These exist in each directory, and just deletes all 
 		       of the a.out files from GCC.  Useful for cleaning up.
 	EXEP?M.BAT     Also in each directory.	Called by MAKEEXE.BAT, they
 		       perform the actuall 'copy /b stub.exe+xxxxx xxxxx.eexe'
 
 The makefile.pc in each of pbm, pgm, ppm, and pnm directories might work
 with other make's.  I don't know.  But it should still provide a good 
 indication of how to procede.
 
 If you have unix-like utilities for DOS (rm, mv, etc), you can probably 
 use the original makefiles.  Just watch out for long command lines in 
 the pnm makefile.	   
 
 These patches *should* allow compilation on a unix machine resulting in 
 identical executables to the official PBMPlus package (well, in theory, 
 it should).
 
 CAVEATs: This package is SLOW.	This is due to the fact that when you do 
 redirection through DOS (ala tgatoppm my.tga | ppmquant 256 | ppmtogif),
 DOS has to create tempory output/input files for redirection purposes.	
 Hazards of a single-tasking OS.  To determine the amount of diskspace 
 you need, do this:
   disk_space = height * width * 12
 	   
 for 1 redirection ( pcxtoppm my.pcx | ppmtogif ).
 
 Multiply by 2 for more than 1 redirection.	
 
 DEVIATIONS:  Since DOS doens't like certain characters to go through 
 stdin/stdout, I changed all p?mto???.exe's to produce an output file 
 instead of using redirection as you would on a unix system.  If used 
 directly, like 'ppmtogif my.ppm' the output file will be my.gif.  If 
 used with redirection, the outfile will be noname.gif.	The extensions 
 were chosen, for the most part, from the last three letters of the 
 p?mtoxxx utility.  Some were changed, some should probably be changed.	 
 
 Sorry for the rambling nature of this doc, just writing things down as I 
 think of them.	
 
 Enjoy the package, bugs and all.
 
 Mike Castle
-- 
Mike Castle (Nexus)  s087891@umrvma.umr.edu  or  mcastle@mcs213k.cs.umr.edu

Feel lonely?  Want someone to send you e-mail?  Just post to *.test with a 
Reply-To: field, and watch your mailbox explode!!
