PCRE (Perl Compatiable Regular Expressions)
From Open Watcom
The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5. This library is compatiable with Open Watcom.
[edit]
Using PCRE with Open Watcom
A slightly out of date precompiled Windows port of PCRE is available, courtesy the GnuWin32 project. Open Watcom could use this library and only need to notice calling convention. Modify pcre.h to this:
# ifndef PCRE_STATIC # ifdef __WATCOM__ # define PCRE_DATA_SCOPE extern __declspec(dllimport) __declspec(__cdecl) # else # define PCRE_DATA_SCOPE extern __declspec(dllimport) # endif # endif
We need to define macro _WIN32 and __WATCOM__. Then change Target Processor to Stack based calling, include pcre.h and link to pcre.lib, it works perfectly.
The 6.7 version of PCRE I use is located here. I have used the lib when compiling grep 2.5.1a for OS/2 and NT.
[edit]
External Links
- http://www.pcre.org/ Home Page for PCRE
- GnuWin32 project Windows ports of many GNU libraries

