From 675ecc637b017984992d868aa01782a3b0603b5b Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Tue, 2 May 2006 20:58:30 +0000 Subject: [PATCH] Add skeleton for character property file. Also remove some HAVE_UNICODE tests since it's non optional. --- ext/unicode/config.m4 | 2 +- ext/unicode/locale.c | 4 ---- ext/unicode/php_unicode.h | 4 ---- ext/unicode/property.c | 31 +++++++++++++++++++++++++++++++ 4 files changed, 32 insertions(+), 9 deletions(-) create mode 100644 ext/unicode/property.c diff --git a/ext/unicode/config.m4 b/ext/unicode/config.m4 index 5f102a50d4..19dd5cb6b1 100644 --- a/ext/unicode/config.m4 +++ b/ext/unicode/config.m4 @@ -4,4 +4,4 @@ dnl PHP_SUBST(UNICODE_SHARED_LIBADD) AC_DEFINE(HAVE_UNICODE, 1, [ ]) -PHP_NEW_EXTENSION(unicode, unicode.c locale.c unicode_iterators.c collator.c, $ext_shared) +PHP_NEW_EXTENSION(unicode, unicode.c locale.c unicode_iterators.c collator.c property.c, $ext_shared) diff --git a/ext/unicode/locale.c b/ext/unicode/locale.c index fbf81940f6..c91e8c5fdc 100644 --- a/ext/unicode/locale.c +++ b/ext/unicode/locale.c @@ -17,8 +17,6 @@ /* $Id$ */ #include "php_unicode.h" - -#if HAVE_UNICODE #include "unicode/ubrk.h" static void php_canonicalize_locale_id(char **target, int32_t *target_len, char *locale, UErrorCode *status) @@ -87,8 +85,6 @@ PHP_FUNCTION(locale_set_default) } /* }}} */ -#endif /* HAVE_UNICODE */ - /* * Local variables: diff --git a/ext/unicode/php_unicode.h b/ext/unicode/php_unicode.h index f8dc9ae202..3ca2045529 100644 --- a/ext/unicode/php_unicode.h +++ b/ext/unicode/php_unicode.h @@ -29,8 +29,6 @@ extern "C" { #include -#ifdef HAVE_UNICODE - #include #include #include @@ -75,8 +73,6 @@ void php_init_collation(TSRMLS_D); #endif #include -#include -#endif /* PHP_HAVE_UNICODE */ #endif /* PHP_UNICODE_H */ diff --git a/ext/unicode/property.c b/ext/unicode/property.c new file mode 100644 index 0000000000..e7f411afb9 --- /dev/null +++ b/ext/unicode/property.c @@ -0,0 +1,31 @@ +/* + +----------------------------------------------------------------------+ + | PHP Version 6 | + +----------------------------------------------------------------------+ + | This source file is subject to version 3.01 of the PHP license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.php.net/license/3_01.txt | + | If you did not receive a copy of the PHP license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@php.net so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Andrei Zmievski | + +----------------------------------------------------------------------+ + */ + +/* $Id$ */ + +#include "php_unicode.h" + + + + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + * vim600: noet sw=4 ts=4 fdm=marker + * vim<600: noet sw=4 ts=4 + */ -- 2.40.0