On Sun, 10 Feb 2008, Szakáts Viktor wrote:
> I'm glad PCRE can be included w/o problems. What do you
> think about including zlib source code / binaries in our
> future distributions?

This is from zlib header:

/* zlib.h -- interface of the 'zlib' general purpose compression library
  version 1.2.3, July 18th, 2005

  Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler

  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
  arising from the use of this software.

  Permission is granted to anyone to use this software for any purpose,
  including commercial applications, and to alter it and redistribute it
  freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not
     claim that you wrote the original software. If you use this software
     in a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be
     misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

  Jean-loup Gailly        Mark Adler
  [EMAIL PROTECTED]          [EMAIL PROTECTED]


  The data format used by the zlib library is described by RFCs (Request for
  Comments) 1950 to 1952 in the files http://www.ietf.org/rfc/rfc1950.txt
  (zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
*/

so as you can see it can be added to Harbour core code without any
problems. I think that separate directory like source/hbpcre will
be good place for it and just like for PCRE we should add easy to
use option for people who will want use platform native zlib
implementation. For PCRE we have set of macros you can set in C_USR
envvar before building Harbour to reach such effect, f.e. -DHB_POSIX_REGEX
We can use:

   HB_POSIX_REGEX - use POSIX regex instead of PCRE, it should work
                    on all POSIX systems (f.e. in *nixes)

   HB_PCRE_REGEX  - use platform native PCRE library

   HB_PCRE_REGEX_BCC - use old PCRE library build into BCC CRTL

when non of the above is set then our own copy of PCRE is used.

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to