[comp.sys.ibm.pc] Compiling Spencer's regexp

tien@speedy.cs.wisc.edu (PB Schechter) (11/04/88)

I am trying to compile Spencer's regexp(3) using the Datalite C
compiler on an 8086-based machine (GRiD Compass), but the compiler
complains about many things (like encountering end of file before
finding the end of a macro definition), and I'm having no luck tracking
down what causes the complaints.  Has anyone succeeded in compiling
regexp on a pc (UNIX cc has no trouble with it at all!)?  If so, can you
tell me what (if anything) you had to do to get it to compile?

I'm hoping to get the vi look-alike editor, STEVIE, running on my machine,
but first I need to get regexp to compile....

Thanks in advance.

PB Schechter
pb@cs.wisc.edu

rwberry@hubcap.UUCP (Robert W Berry) (11/04/88)

From article <6586@spool.cs.wisc.edu>, by tien@speedy.cs.wisc.edu (PB Schechter):
> I am trying to compile Spencer's regexp(3) using the Datalite C
> compiler on an 8086-based machine (GRiD Compass), but the compiler
> complains about many things (like encountering end of file before
> finding the end of a macro definition), and I'm having no luck tracking
> down what causes the complaints.  Has anyone succeeded in compiling
> regexp on a pc (UNIX cc has no trouble with it at all!)?  If so, can you
> tell me what (if anything) you had to do to get it to compile?
> 
> I'm hoping to get the vi look-alike editor, STEVIE, running on my machine,
> but first I need to get regexp to compile....
> 
> Thanks in advance.
> 
> PB Schechter
> pb@cs.wisc.edu
     I have successfully compiled it using TC 1.5.  I got several
unreachable code warnings, but the test cases all seem to work.  It's
possible that the guy who packaged/ported STevie to the PC (I can't
remember his name, but whoever he is THANKS!! :-)) massaged the
regexp package a bit so that it would compile.  I can send you his
modified version if it will help.  However, I think it's more likely that
you got a corrupt package somehow (maybe in between your DOS machine and
your *nix machine?)
     Hope this helps somewhat.
     Bob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-=- Bob Berry -=- PC-Guru's Inc. ! INTERNET:rwberry@hubcap.clemson.edu  -=-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=   ! BITNET:rwberry@clemson               -=-
-=- What is behind that curtain? ! CompuServe:72646,3331 or 73170,1242  -=-
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

bobmon@iuvax.cs.indiana.edu (RAMontante) (11/06/88)

????  Did Henry's new regexp go out and I missed it?!?

Could someone send me either the source itself, or post a path I can ftp it
from?  Thanx....
-- 
--    bob,mon			(bobmon@iuvax.cs.indiana.edu)
--    "Aristotle was not Belgian..."	- A Fish Called Wanda

darrylo@hpsrli.HP.COM (Darryl Okahata) (11/08/88)

In comp.sys.ibm.pc, tien@speedy.cs.wisc.edu (PB Schechter) writes:

> I am trying to compile Spencer's regexp(3) using the Datalite C
> compiler on an 8086-based machine (GRiD Compass), but the compiler
     [ ... ]
> I'm hoping to get the vi look-alike editor, STEVIE, running on my machine,
> but first I need to get regexp to compile....
> 
> Thanks in advance.
> 
> PB Schechter
> pb@cs.wisc.edu

     I've got Harry Spencer's regexp(3) routines working with Stevie
under MSD*S.  I'm using Turbo C, not Datalight C, and so I probably
can't help you figure out what's wrong.

     -- Darryl Okahata
	darrylo%hpnmd@hpcea