rrthomas / lrexlib

A Lua (5.1 and later) binding of various regex library APIs (POSIX, PCRE, PCRE2, GNU, Oniguruma and TRE)
Other
158 stars 29 forks source link

Yet another binding, and some issues #6

Open hadrielk opened 10 years ago

hadrielk commented 10 years ago

Hi, This is more of a courtesy message than anything else - I'm not sure if you're still updating lrexlib these days or not. (?)

I write code for an open source tool called Wireshark (wireshark.org), and used lrexlib to expose yet another regex engine type: the Glib regex library, which is basically PCRE under the hood but with a Glib-specific API. I doubt anyone else would want/need such a thing, when they could just use the lrexlib PCRE binding as is; but I needed it because Wireshark gets built with Glib already, but not with PCRE directly, and I didn't want to add more complication to the build process/steps. (Wireshark is quite large and is fairly complicated to build already) If you'd like the Glib binding anyway, let me know and I'll push the latest to my fork of lrexlib and send you a pull request.

But the reason I'm submitting this issue as an issue is we found several compilation errors and warnings when building lrexlib. Some of them are because we have to support Wireshark being built with various compilers on many platforms, and invariably one or another of those is stricter than others for certain C-standard rules. If you'd like to fix those in your lrexlib repository, let me know and I'll push just those changes to a fork and send you a pull request. (i.e., separately from the Glib regex binding if you don't want that)

rrthomas commented 10 years ago

I don't think anyone's working on lrexlib actively, but that's no reason not to fix issues! Thanks for writing.

I agree that building against Glib is an odd thing to do with lrexlib; equally it seems pretty harmless to me to add a binding for Glib, since all our bindings are independent. Please do submit a pull request for that.

Equally, I'm happy for patches for compilation errors and warnings. Please submit a pull request for those too (preferably a separate one).

rrthomas commented 10 years ago

Ping @hadrielk ?

Lekensteyn commented 8 years ago

AFAICS this is a change that is worth applying now:

These sqelch some compiler warnings due to type mismatches:

By the way, the GLib binding in Wireshark suffers from some compatibility issues with PCRE 8.35 https://bugzilla.gnome.org/show_bug.cgi?id=733325 http://www.pcre.org/original/changelog.txt