[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] regex



Hi,

is was playing with the idea to make regex.c a shared library (to be bundled
with the shared library implementation for MetaDOS).

I have tried the GNU regex 0.12, and sure enough I can get it to compile and
run using PureC. However, I am not very happy with the code; PureC emits a
few warnings, some pieces of the code do not seem to be very 16 bit friendly
(why does a matched substring need to be shorter than 32K -- size_t should
be used instead of int), and generally the code is extremely hard to read
because so much attention is paid to systems that do not even have a proper
ANSI compiler...

I am tempted to look at the latest Henry Spencer implementation which seems
to be part of FreeBSD. It is much smaller and seems to have similar
features...

Any opinions?