From owner-svn-src-user@FreeBSD.ORG Fri Aug 19 02:03:01 2011 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AF7B106566B; Fri, 19 Aug 2011 02:03:01 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 2BD268FC0C; Fri, 19 Aug 2011 02:03:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p7J231II082564; Fri, 19 Aug 2011 02:03:01 GMT (envelope-from gabor@svn.freebsd.org) Received: (from gabor@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p7J231Eb082561; Fri, 19 Aug 2011 02:03:01 GMT (envelope-from gabor@svn.freebsd.org) Message-Id: <201108190203.p7J231Eb082561@svn.freebsd.org> From: Gabor Kovesdan Date: Fri, 19 Aug 2011 02:03:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r224992 - user/gabor/tre-integration/contrib/tre/lib X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2011 02:03:01 -0000 Author: gabor Date: Fri Aug 19 02:03:00 2011 New Revision: 224992 URL: http://svn.freebsd.org/changeset/base/224992 Log: - Move TRE_CHAR macro to tre-internal.h because it will be used in the heuristic code Modified: user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c user/gabor/tre-integration/contrib/tre/lib/tre-internal.h Modified: user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c ============================================================================== --- user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c Fri Aug 19 01:11:06 2011 (r224991) +++ user/gabor/tre-integration/contrib/tre/lib/tre-fastmatch.c Fri Aug 19 02:03:00 2011 (r224992) @@ -48,15 +48,6 @@ static int fastcmp(const void *, const v tre_str_type_t, bool, bool); /* - * We will work with wide characters if they are supported - */ -#ifdef TRE_WCHAR -#define TRE_CHAR(n) L##n -#else -#define TRE_CHAR(n) n -#endif - -/* * Skips n characters in the input string and assigns the start * address to startptr. Note: as per IEEE Std 1003.1-2008 * matching is based on bit pattern not character representations Modified: user/gabor/tre-integration/contrib/tre/lib/tre-internal.h ============================================================================== --- user/gabor/tre-integration/contrib/tre/lib/tre-internal.h Fri Aug 19 01:11:06 2011 (r224991) +++ user/gabor/tre-integration/contrib/tre/lib/tre-internal.h Fri Aug 19 02:03:00 2011 (r224992) @@ -47,6 +47,9 @@ /* Define the character types and functions. */ #ifdef TRE_WCHAR +/* Use wide character constants */ +#define TRE_CHAR(n) L##n + /* Wide characters. */ typedef wint_t tre_cint_t; #define TRE_CHAR_MAX WCHAR_MAX @@ -78,6 +81,9 @@ typedef wint_t tre_cint_t; #else /* !TRE_WCHAR */ +/* Use single-byte character constants */ +#define TRE_CHAR(n) n + /* 8 bit characters. */ typedef short tre_cint_t; #define TRE_CHAR_MAX 255