cvs: ZendEngine2(PHP_5_3) / zend_multibyte.c
[email protected] ("Moriyoshi Koizumi") Wed, 18 Mar 2009 16:51:15 -0000
| Newsgroups | php.zend-engine.cvs |
|---|---|
| Message-ID | <cvsmoriyoshi1237395075@cvsserver> |
moriyoshi Wed Mar 18 16:51:15 2009 UTC
Modified files: (Branch: PHP_5_3)
/ZendEngine2 zend_multibyte.c
Log:
- staticise private symbols.
moriyoshi-20090318165115.txt
(text/plain, 11.7 KB)
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_multibyte.c?r1=1.4.2.4.2.1.2.3&r2=1.4.2.4.2.1.2.4&diff_format=u
Index: ZendEngine2/zend_multibyte.c
diff -u ZendEngine2/zend_multibyte.c:1.4.2.4.2.1.2.3 ZendEngine2/zend_multibyte.c:1.4.2.4.2.1.2.4
--- ZendEngine2/zend_multibyte.c:1.4.2.4.2.1.2.3 Wed Dec 31 11:15:32 2008
+++ ZendEngine2/zend_multibyte.c Wed Mar 18 16:51:15 2009
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_multibyte.c,v 1.4.2.4.2.1.2.3 2008/12/31 11:15:32 sebastian Exp $ */
+/* $Id: zend_multibyte.c,v 1.4.2.4.2.1.2.4 2009/03/18 16:51:15 moriyoshi Exp $ */
#include "zend.h"
#include "zend_compile.h"
@@ -38,8 +38,8 @@
/*
* encodings
*/
-const char *ucs2_aliases[] = {"ISO-10646-UCS-2", "UCS2" , "UNICODE", NULL};
-zend_encoding encoding_ucs2 = {
+static const char *ucs2_aliases[] = {"ISO-10646-UCS-2", "UCS2" , "UNICODE", NULL};
+static zend_encoding encoding_ucs2 = {
NULL,
NULL,
"UCS-2",
@@ -47,7 +47,7 @@
0
};
-zend_encoding encoding_ucs2be = {
+static zend_encoding encoding_ucs2be = {
NULL,
NULL,
"UCS-2BE",
@@ -55,7 +55,7 @@
0
};
-zend_encoding encoding_ucs2le = {
+static zend_encoding encoding_ucs2le = {
NULL,
NULL,
"UCS-2LE",
@@ -63,8 +63,8 @@
0
};
-const char *ucs4_aliases[] = {"ISO-10646-UCS-4", "UCS4", NULL};
-zend_encoding encoding_ucs4 = {
+static const char *ucs4_aliases[] = {"ISO-10646-UCS-4", "UCS4", NULL};
+static zend_encoding encoding_ucs4 = {
NULL,
NULL,
"UCS-4",
@@ -72,7 +72,7 @@
0
};
-zend_encoding encoding_ucs4be = {
+static zend_encoding encoding_ucs4be = {
NULL,
NULL,
"UCS-4BE",
@@ -80,7 +80,7 @@
0
};
-zend_encoding encoding_ucs4le = {
+static zend_encoding encoding_ucs4le = {
NULL,
NULL,
"UCS-4LE",
@@ -88,8 +88,8 @@
0
};
-const char *utf32_aliases[] = {"utf32", NULL};
-zend_encoding encoding_utf32 = {
+static const char *utf32_aliases[] = {"utf32", NULL};
+static zend_encoding encoding_utf32 = {
NULL,
NULL,
"UTF-32",
@@ -97,7 +97,7 @@
0
};
-zend_encoding encoding_utf32be = {
+static zend_encoding encoding_utf32be = {
NULL,
NULL,
"UTF-32BE",
@@ -105,7 +105,7 @@
0
};
-zend_encoding encoding_utf32le = {
+static zend_encoding encoding_utf32le = {
NULL,
NULL,
"UTF-32LE",
@@ -113,8 +113,8 @@
0
};
-const char *utf16_aliases[] = {"utf16", NULL};
-zend_encoding encoding_utf16 = {
+static const char *utf16_aliases[] = {"utf16", NULL};
+static zend_encoding encoding_utf16 = {
NULL,
NULL,
"UTF-16",
@@ -122,7 +122,7 @@
0
};
-zend_encoding encoding_utf16be = {
+static zend_encoding encoding_utf16be = {
NULL,
NULL,
"UTF-16BE",
@@ -130,7 +130,7 @@
0
};
-zend_encoding encoding_utf16le = {
+static zend_encoding encoding_utf16le = {
NULL,
NULL,
"UTF-16LE",
@@ -138,8 +138,8 @@
0
};
-const char *utf8_aliases[] = {"utf8", NULL};
-zend_encoding encoding_utf8 = {
+static const char *utf8_aliases[] = {"utf8", NULL};
+static zend_encoding encoding_utf8 = {
NULL,
NULL,
"UTF-8",
@@ -147,8 +147,8 @@
1
};
-const char *ascii_aliases[] = {"ANSI_X3.4-1968", "iso-ir-6", "ANSI_X3.4-1986", "ISO_646.irv:1991", "US-ASCII", "ISO646-US", "us", "IBM367", "cp367", "csASCII", NULL};
-zend_encoding encoding_ascii = {
+static const char *ascii_aliases[] = {"ANSI_X3.4-1968", "iso-ir-6", "ANSI_X3.4-1986", "ISO_646.irv:1991", "US-ASCII", "ISO646-US", "us", "IBM367", "cp367", "csASCII", NULL};
+static zend_encoding encoding_ascii = {
NULL,
NULL,
"ASCII",
@@ -156,8 +156,8 @@
1
};
-const char *euc_jp_aliases[] = {"EUC", "EUC_JP", "eucJP", "x-euc-jp", NULL};
-zend_encoding encoding_euc_jp = {
+static const char *euc_jp_aliases[] = {"EUC", "EUC_JP", "eucJP", "x-euc-jp", NULL};
+static zend_encoding encoding_euc_jp = {
NULL,
NULL,
"EUC-JP",
@@ -165,8 +165,8 @@
1
};
-const char *sjis_aliases[] = {"x-sjis", "SJIS", "SHIFT-JIS", NULL};
-zend_encoding encoding_sjis = {
+static const char *sjis_aliases[] = {"x-sjis", "SJIS", "SHIFT-JIS", NULL};
+static zend_encoding encoding_sjis = {
sjis_input_filter,
sjis_output_filter,
"Shift_JIS",
@@ -174,8 +174,8 @@
0
};
-const char *eucjp_win_aliases[] = {"eucJP-open", NULL};
-zend_encoding encoding_eucjp_win = {
+static const char *eucjp_win_aliases[] = {"eucJP-open", NULL};
+static zend_encoding encoding_eucjp_win = {
NULL,
NULL,
"eucJP-win",
@@ -183,8 +183,8 @@
1
};
-const char *sjis_win_aliases[] = {"SJIS-open", "MS_Kanji", "Windows-31J", "CP932", NULL};
-zend_encoding encoding_sjis_win = {
+static const char *sjis_win_aliases[] = {"SJIS-open", "MS_Kanji", "Windows-31J", "CP932", NULL};
+static zend_encoding encoding_sjis_win = {
/* sjis-filters does not care about diffs of Shift_JIS and CP932 */
sjis_input_filter,
sjis_output_filter,
@@ -193,8 +193,8 @@
0
};
-const char *jis_aliases[] = {"ISO-2022-JP", NULL};
-zend_encoding encoding_jis = {
+static const char *jis_aliases[] = {"ISO-2022-JP", NULL};
+static zend_encoding encoding_jis = {
NULL,
NULL,
"JIS",
@@ -202,8 +202,8 @@
0
};
-const char *euc_cn_aliases[] = {"CN-GB", "EUC_CN", "eucCN", "x-euc-cn", "gb2312", NULL};
-zend_encoding encoding_euc_cn = {
+static const char *euc_cn_aliases[] = {"CN-GB", "EUC_CN", "eucCN", "x-euc-cn", "gb2312", NULL};
+static zend_encoding encoding_euc_cn = {
NULL,
NULL,
"EUC-CN",
@@ -211,8 +211,8 @@
1
};
-const char *cp936_aliases[] = {"CP-936", NULL};
-zend_encoding encoding_cp936 = {
+static const char *cp936_aliases[] = {"CP-936", NULL};
+static zend_encoding encoding_cp936 = {
NULL,
NULL,
"CP936",
@@ -220,8 +220,8 @@
0
};
-const char *hz_aliases[] = {"HZ-GB-2312", NULL};
-zend_encoding encoding_hz = {
+static const char *hz_aliases[] = {"HZ-GB-2312", NULL};
+static zend_encoding encoding_hz = {
NULL,
NULL,
"HZ",
@@ -229,8 +229,8 @@
0
};
-const char *euc_tw_aliases[] = {"EUC_TW", "eucTW", "x-euc-tw", NULL};
-zend_encoding encoding_euc_tw = {
+static const char *euc_tw_aliases[] = {"EUC_TW", "eucTW", "x-euc-tw", NULL};
+static zend_encoding encoding_euc_tw = {
NULL,
NULL,
"EUC-TW",
@@ -238,8 +238,8 @@
1
};
-const char *big5_aliases[] = {"BIG5", "CN-BIG5", "BIG-FIVE", "BIGFIVE", "CP950", NULL};
-zend_encoding encoding_big5 = {
+static const char *big5_aliases[] = {"BIG5", "CN-BIG5", "BIG-FIVE", "BIGFIVE", "CP950", NULL};
+static zend_encoding encoding_big5 = {
NULL,
NULL,
"BIG-5",
@@ -247,8 +247,8 @@
0
};
-const char *euc_kr_aliases[] = {"EUC_KR", "eucKR", "x-euc-kr", NULL};
-zend_encoding encoding_euc_kr = {
+static const char *euc_kr_aliases[] = {"EUC_KR", "eucKR", "x-euc-kr", NULL};
+static zend_encoding encoding_euc_kr = {
NULL,
NULL,
"EUC-KR",
@@ -256,8 +256,8 @@
1
};
-const char *uhc_aliases[] = {"CP949", NULL};
-zend_encoding encoding_uhc = {
+static const char *uhc_aliases[] = {"CP949", NULL};
+static zend_encoding encoding_uhc = {
NULL,
NULL,
"UHC",
@@ -265,7 +265,7 @@
1
};
-zend_encoding encoding_2022kr = {
+static zend_encoding encoding_2022kr = {
NULL,
NULL,
"ISO-2022-KR",
@@ -273,8 +273,8 @@
0
};
-const char *cp1252_aliases[] = {"cp1252", NULL};
-zend_encoding encoding_cp1252 = {
+static const char *cp1252_aliases[] = {"cp1252", NULL};
+static zend_encoding encoding_cp1252 = {
NULL,
NULL,
"Windows-1252",
@@ -282,8 +282,8 @@
1
};
-const char *iso_8859_1_aliases[] = {"ISO_8859-1", "latin1", NULL};
-zend_encoding encoding_8859_1 = {
+static const char *iso_8859_1_aliases[] = {"ISO_8859-1", "latin1", NULL};
+static zend_encoding encoding_8859_1 = {
NULL,
NULL,
"ISO-8859-1",
@@ -291,8 +291,8 @@
1
};
-const char *iso_8859_2_aliases[] = {"ISO_8859-2", "latin2", NULL};
-zend_encoding encoding_8859_2 = {
+static const char *iso_8859_2_aliases[] = {"ISO_8859-2", "latin2", NULL};
+static zend_encoding encoding_8859_2 = {
NULL,
NULL,
"ISO-8859-2",
@@ -300,8 +300,8 @@
1
};
-const char *iso_8859_3_aliases[] = {"ISO_8859-3", "latin3", NULL};
-zend_encoding encoding_8859_3 = {
+static const char *iso_8859_3_aliases[] = {"ISO_8859-3", "latin3", NULL};
+static zend_encoding encoding_8859_3 = {
NULL,
NULL,
"ISO-8859-3",
@@ -309,8 +309,8 @@
1
};
-const char *iso_8859_4_aliases[] = {"ISO_8859-4", "latin4", NULL};
-zend_encoding encoding_8859_4 = {
+static const char *iso_8859_4_aliases[] = {"ISO_8859-4", "latin4", NULL};
+static zend_encoding encoding_8859_4 = {
NULL,
NULL,
"ISO-8859-4",
@@ -318,8 +318,8 @@
1
};
-const char *iso_8859_5_aliases[] = {"ISO_8859-5", "cyrillic", NULL};
-zend_encoding encoding_8859_5 = {
+static const char *iso_8859_5_aliases[] = {"ISO_8859-5", "cyrillic", NULL};
+static zend_encoding encoding_8859_5 = {
NULL,
NULL,
"ISO-8859-5",
@@ -327,8 +327,8 @@
1
};
-const char *iso_8859_6_aliases[] = {"ISO_8859-6", "arabic", NULL};
-zend_encoding encoding_8859_6 = {
+static const char *iso_8859_6_aliases[] = {"ISO_8859-6", "arabic", NULL};
+static zend_encoding encoding_8859_6 = {
NULL,
NULL,
"ISO-8859-6",
@@ -336,8 +336,8 @@
1
};
-const char *iso_8859_7_aliases[] = {"ISO_8859-7", "greek", NULL};
-zend_encoding encoding_8859_7 = {
+static const char *iso_8859_7_aliases[] = {"ISO_8859-7", "greek", NULL};
+static zend_encoding encoding_8859_7 = {
NULL,
NULL,
"ISO-8859-7",
@@ -345,8 +345,8 @@
1
};
-const char *iso_8859_8_aliases[] = {"ISO_8859-8", "hebrew", NULL};
-zend_encoding encoding_8859_8 = {
+static const char *iso_8859_8_aliases[] = {"ISO_8859-8", "hebrew", NULL};
+static zend_encoding encoding_8859_8 = {
NULL,
NULL,
"ISO-8859-8",
@@ -354,8 +354,8 @@
1
};
-const char *iso_8859_9_aliases[] = {"ISO_8859-9", "latin5", NULL};
-zend_encoding encoding_8859_9 = {
+static const char *iso_8859_9_aliases[] = {"ISO_8859-9", "latin5", NULL};
+static zend_encoding encoding_8859_9 = {
NULL,
NULL,
"ISO-8859-9",
@@ -363,8 +363,8 @@
1
};
-const char *iso_8859_10_aliases[] = {"ISO_8859-10", "latin6", NULL};
-zend_encoding encoding_8859_10 = {
+static const char *iso_8859_10_aliases[] = {"ISO_8859-10", "latin6", NULL};
+static zend_encoding encoding_8859_10 = {
NULL,
NULL,
"ISO-8859-10",
@@ -372,8 +372,8 @@
1
};
-const char *iso_8859_13_aliases[] = {"ISO_8859-13", NULL};
-zend_encoding encoding_8859_13 = {
+static const char *iso_8859_13_aliases[] = {"ISO_8859-13", NULL};
+static zend_encoding encoding_8859_13 = {
NULL,
NULL,
"ISO-8859-13",
@@ -381,8 +381,8 @@
1
};
-const char *iso_8859_14_aliases[] = {"ISO_8859-14", "latin8", NULL};
-zend_encoding encoding_8859_14 = {
+static const char *iso_8859_14_aliases[] = {"ISO_8859-14", "latin8", NULL};
+static zend_encoding encoding_8859_14 = {
NULL,
NULL,
"ISO-8859-14",
@@ -390,8 +390,8 @@
1
};
-const char *iso_8859_15_aliases[] = {"ISO_8859-15", NULL};
-zend_encoding encoding_8859_15 = {
+static const char *iso_8859_15_aliases[] = {"ISO_8859-15", NULL};
+static zend_encoding encoding_8859_15 = {
NULL,
NULL,
"ISO-8859-15",
@@ -399,8 +399,8 @@
1
};
-const char *cp1251_aliases[] = {"CP1251", "CP-1251", "WINDOWS-1251", NULL};
-zend_encoding encoding_cp1251 = {
+static const char *cp1251_aliases[] = {"CP1251", "CP-1251", "WINDOWS-1251", NULL};
+static zend_encoding encoding_cp1251 = {
NULL,
NULL,
"Windows-1251",
@@ -408,8 +408,8 @@
1
};
-const char *cp866_aliases[] = {"CP866", "CP-866", "IBM-866", NULL};
-zend_encoding encoding_cp866 = {
+static const char *cp866_aliases[] = {"CP866", "CP-866", "IBM-866", NULL};
+static zend_encoding encoding_cp866 = {
NULL,
NULL,
"CP866",
@@ -417,8 +417,8 @@
1
};
-const char *koi8r_aliases[] = {"KOI8-R", "KOI8R", NULL};
-zend_encoding encoding_koi8r = {
+static const char *koi8r_aliases[] = {"KOI8-R", "KOI8R", NULL};
+static zend_encoding encoding_koi8r = {
NULL,
NULL,
"KOI8-R",
@@ -426,7 +426,7 @@
1
};
-zend_encoding *zend_encoding_table[] = {
+static zend_encoding *zend_encoding_table[] = {
&encoding_ucs4,
&encoding_ucs4be,
&encoding_ucs4le,