From owner-svn-soc-all@FreeBSD.ORG Tue Jun 17 00:25:57 2014 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24CC06F6 for ; Tue, 17 Jun 2014 00:25:57 +0000 (UTC) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB5A62ED2 for ; Tue, 17 Jun 2014 00:25:56 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5H0PuDZ051652 for ; Tue, 17 Jun 2014 00:25:56 GMT (envelope-from ghostmansd@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.8/8.14.8/Submit) id s5H0Pu23051281 for svn-soc-all@FreeBSD.org; Tue, 17 Jun 2014 00:25:56 GMT (envelope-from ghostmansd@FreeBSD.org) Date: Tue, 17 Jun 2014 00:25:56 GMT Message-Id: <201406170025.s5H0Pu23051281@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to ghostmansd@FreeBSD.org using -f From: ghostmansd@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r269663 - soc2014/ghostmansd/head/include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2014 00:25:57 -0000 Author: ghostmansd Date: Tue Jun 17 00:25:55 2014 New Revision: 269663 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=269663 Log: string.h and wchar.h macro fixes Modified: soc2014/ghostmansd/head/include/string.h soc2014/ghostmansd/head/include/wchar.h Modified: soc2014/ghostmansd/head/include/string.h ============================================================================== --- soc2014/ghostmansd/head/include/string.h Mon Jun 16 23:38:41 2014 (r269662) +++ soc2014/ghostmansd/head/include/string.h Tue Jun 17 00:25:55 2014 (r269663) @@ -142,24 +142,25 @@ #endif /* Unicode Normalization algorithm */ -#define __NORM_NFD 0 -#define __NORM_NFC 1 -#define __NORM_NFKD 2 -#define __NORM_NFKC 3 - +#ifndef _WCHAR_H_ + #define __NORM_NFD 0 + #define __NORM_NFC 1 + #define __NORM_NFKD 2 + #define __NORM_NFKC 3 +#endif size_t __strnorm(char*, size_t, char const*, int); size_t __strnorm_l(char*, size_t, char const*, int, locale_t); -size_t __wcsnorm(wchar_t*, size_t, wchar_t const*, int); #ifdef _UNICODE_ADDENDA #define strnorm __strnorm #define wcsnorm __wcsnorm +#endif +#if !defined(_WCHAR_H_) \ +&& defined(_UNICODE_ADDENDA) #define NORM_NFD __NORM_NFD #define NORM_NFC __NORM_NFC #define NORM_NFKD __NORM_NFKD #define NORM_NFKC __NORM_NFKC #endif - - __END_DECLS #endif /* _STRING_H_ */ Modified: soc2014/ghostmansd/head/include/wchar.h ============================================================================== --- soc2014/ghostmansd/head/include/wchar.h Mon Jun 16 23:38:41 2014 (r269662) +++ soc2014/ghostmansd/head/include/wchar.h Tue Jun 17 00:25:55 2014 (r269663) @@ -227,6 +227,25 @@ #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_) #include #endif + +/* Unicode Normalization Algorithm */ +#ifndef _STRING_H_ + #define __NORM_NFD 0 + #define __NORM_NFC 1 + #define __NORM_NFKD 2 + #define __NORM_NFKC 3 +#endif +size_t __wcsnorm(wchar_t*, size_t, wchar_t const*, int); +#ifdef _UNICODE_ADDENDA + #define wcscoll __wcscoll +#endif +#if !defined(_STRING_H_) \ +&& defined(_UNICODE_ADDENDA) + #define NORM_NFD __NORM_NFD + #define NORM_NFC __NORM_NFC + #define NORM_NFKD __NORM_NFKD + #define NORM_NFKC __NORM_NFKC +#endif __END_DECLS #endif /* !_WCHAR_H_ */