Building WebJames
Rick Murray (539) 13840 posts |
I have put together a DDE MakeFile1 for WebJames, and have set up OSLib2, OSLibSupport2, and added Steffan Bellon’s “regexlib”3, but I’m finding building is aborting with the error that “REG_OKAY” is unknown. 1 I don’t use GCC. 2 I don’t use OSLib as DeskLib covers my needs. |
Steve Pampling (1551) 8170 posts |
Wasn’t there some issue with that regexlib version on modern hardware? Or am I thinking of something else? |
Martin Avison (27) 1494 posts |
AFAIK the RegEx module v1.06 (09 Dec 2006) is still ok. |
Willard Goosey (5119) 257 posts |
I checked my recent raspian, my pretty ancient slackware, and even my OS-9 port of Henry Spencer’s V8 REGEXP clone, and couldn’t find a define for REG_OKAY. No idea where it’s coming from. Sorry :-( |
Willard Goosey (5119) 257 posts |
according to REG_OKAY is #defined as 0 thanks to my main man Ben for pointing this out! |
Willard Goosey (5119) 257 posts |
So it looks like the GCCSDK regexp library is decended from Henry Spencer’s “nearly public domain” library, and regexp for the DDE…. is GNU. ;-) |
Steve Pampling (1551) 8170 posts |
With the appearance of our SSL.TLS from the mbed OS offering I can’t help wondering if there’s similar support for regex. |
Steffen Huber (91) 1953 posts |
My Go-To-List of C libraries has the following to offer (all BSD-licensed): Onigmo, Oniguruma, PCRE, TRE. Yes, the C guys are really into easily remembered names. |
Steve Pampling (1551) 8170 posts |
PCRE I’ve dealt with elsewhere, the others I don’t know. |
Matthew Phillips (473) 721 posts |
Someone I was in contact with a couple of years ago ported PCRE as a module. I’m not sure if it was ever released. At the time I had plans to incorporate regular expression support into something, possibly Impact, but I didn’t get very far because other things keep coming up. I could try to find the code if you are interested. |
Steve Pampling (1551) 8170 posts |
Would the person be Nicholas Cutler by any chance? Because a google search turns up this page and there should be an article in an old copy of Archive that Nicholas wrote. Not a GPL offering :) and the source is included should anyone need to recompile for the newer architectures (last modifications of the source and the binary produced are February 2016) |
Jim Nagel (444) 25 posts |
I have put PDFs of the Archive articles by Nicholas Cutler here: http://archivemag.co.uk/TEMP/Cutler |
Steve Pampling (1551) 8170 posts |
A quick read brings up this text “PCRE has an exceptionally powerful and flexible syntax, and the library is often incorporated into open-source programs such as the Apache HTTP server and PHP scripting language.” Which, I think, brings us back to the beginning of this discussion. Rick may have the answer to the REG_OKAY issue as Nicholas notes in the first part that PCRE relative to Steffans older port of Regex: “This is much more recent and offers more facilities, including Unicode support, but at present can only be linked with C programs.” |
Rick Murray (539) 13840 posts |
Oh, nice. Finally a library to try out… https://www.cl.cam.ac.uk/~ncc25/ (bottom of the page, to the left of the obvious typo) |
Steve Pampling (1551) 8170 posts |
Ok, which link got your attention? My link yesterday: “Would the person be Nicholas Cutler by any chance? Because a google search turns up this page” or the link in the archive article I mentioned “an article in an old copy of Archive” that Jim gave a link to? It’s hot and I’m looking for minimum effort for a while. |
Matthew Phillips (473) 721 posts |
Yes, it would. I could remember who it was, but as I couldn’t remember whether he had made it public I didn’t like to say without checking. |