🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #489

regex.library - regular expression library

#489
From: Edwin Hoogerbeets
Date: Sat, 15 Jul 1989 23:28
24 lines
1321 bytes
Hi, I just managed to shoehorn the Gnu regular expression package
into an Amiga sharable library. (with some assembler glue)

And it works. Almost. That is, it works only if you have one copy
running at a time. So I suspect there is something in there that isn't
re-entrant.

I've attached the global variables to the struct RegexBase, so they are
different for each OpenLibrary() call. That does not seem to be the
problem. I do have to use the Manx heapmem.o to access the realloc()
call.

My question is this: are the routines in heapmem.o re-entrant?  (ie.
free(), malloc(), realloc()) Are there any other Manx library routines
that I should avoid?

If I get this resolved, I shall send it to Bob soon. (no excuse for
not having regular expression searching anymore! Like in dme, hint,
hint... ;-)

Thanks for any suggestions.

Edwin
Technical Details
Message-ID: <15161@watdragon.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watdragon!rose!ehoogerbeets
References: <59256@linus.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!watdragon!rose!ehoogerbeets
From: ehoogerbeets@rose.waterloo.edu (Edwin Hoogerbeets)
Newsgroups: comp.sys.amiga.tech
Subject: regex.library - regular expression library
Message-ID: <15161@watdragon.waterloo.edu>
Date: 15 Jul 89 23:28:51 GMT
References: <59256@linus.UUCP>
Sender: daemon@watdragon.waterloo.edu
Reply-To: ehoogerbeets@rose.waterloo.edu (Edwin Hoogerbeets)
Organization: U. of Waterloo, Ontario
Lines: 24