[sword-devel] 1.5.8RC3 / Locales

Lynn Allan l_d_allan at adelphia.net
Sat May 21 11:45:05 MST 2005


Regarding the vc6 and vc7.1 libsword project files:

* They build multi-threading dll's. Should this be just
multi-threading?

* There are extraneous entries to Borland directories for resolving
includes and libs

Also, the [sword-dir-src]/utilfuns/regex.c has truly ancient code from
1993 (gnu 0.12).
size_t
regerror (errcode, preg, errbuf, errbuf_size)
    int errcode;
    const regex_t *preg;
    char *errbuf;
    size_t errbuf_size;
{ ... }

I couldn't find a more current regex.c from gnu .... the 0.12 from
1993 seems the latest. The regerror function is the only one with this
ancient parameter declaration style.

vc6 and vc7.x handle this K-R code, but vc8 (C++ 2005) doesn't. Could
the following be considered as a safe revision (won't impact vc6, 7.1,
gcc, bcb5-6, etc)?

size_t
#define _MSC_VER_VC6 1200
#if _MSC_VER >= _MSC_VER_VC6
regerror (int errcode, const regex_t* preg, char* errbuf, size_t
errbuf_size)
#else
regerror (errcode, preg, errbuf, errbuf_size)
    int errcode;
    const regex_t *preg;
    char *errbuf;
    size_t errbuf_size;
#endif
{ ... }

Also [sword-dir-src]/utilfuns/zlib/untgz.c gives vc8 troubles ... it
relies on having the PlatformSDK installed to resolve windows.h





More information about the sword-devel mailing list