summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2001-12-03 15:32:12 +0000
committerSascha Schumann <sas@php.net>2001-12-03 15:32:12 +0000
commit74de59dff178937c32ee15915e3a528ee2b3657a (patch)
tree53a1a78f28edf37badde19309a4bf0caaf156de4
parent80f4a863f902eb0a72d79e33a47e110b3cb0861a (diff)
downloadphp-git-74de59dff178937c32ee15915e3a528ee2b3657a.tar.gz
Fix declarations of static variables. Builds on AIX now.
-rw-r--r--ext/mbstring/mbfilter.c28
-rw-r--r--ext/mbstring/mbfilter_ja.c54
2 files changed, 41 insertions, 41 deletions
diff --git a/ext/mbstring/mbfilter.c b/ext/mbstring/mbfilter.c
index 00321673b9..c60b8373c5 100644
--- a/ext/mbstring/mbfilter.c
+++ b/ext/mbstring/mbfilter.c
@@ -101,19 +101,19 @@
#define mbfl_pfree free
/* unicode table */
-extern const unsigned short cp1252_ucs_table[];
-extern const unsigned short iso8859_2_ucs_table[];
-extern const unsigned short iso8859_3_ucs_table[];
-extern const unsigned short iso8859_4_ucs_table[];
-extern const unsigned short iso8859_5_ucs_table[];
-extern const unsigned short iso8859_6_ucs_table[];
-extern const unsigned short iso8859_7_ucs_table[];
-extern const unsigned short iso8859_8_ucs_table[];
-extern const unsigned short iso8859_9_ucs_table[];
-extern const unsigned short iso8859_10_ucs_table[];
-extern const unsigned short iso8859_13_ucs_table[];
-extern const unsigned short iso8859_14_ucs_table[];
-extern const unsigned short iso8859_15_ucs_table[];
+static const unsigned short cp1252_ucs_table[];
+static const unsigned short iso8859_2_ucs_table[];
+static const unsigned short iso8859_3_ucs_table[];
+static const unsigned short iso8859_4_ucs_table[];
+static const unsigned short iso8859_5_ucs_table[];
+static const unsigned short iso8859_6_ucs_table[];
+static const unsigned short iso8859_7_ucs_table[];
+static const unsigned short iso8859_8_ucs_table[];
+static const unsigned short iso8859_9_ucs_table[];
+static const unsigned short iso8859_10_ucs_table[];
+static const unsigned short iso8859_13_ucs_table[];
+static const unsigned short iso8859_14_ucs_table[];
+static const unsigned short iso8859_15_ucs_table[];
/* charactor property table */
#define MBFL_CHP_CTL 0x01
@@ -123,7 +123,7 @@ extern const unsigned short iso8859_15_ucs_table[];
#define MBFL_CHP_MMHQENC 0x10 /* must Q-encoding in MIME Header encoded-word */
#define MBFL_CHP_MSPECIAL 0x20 /* RFC822 Special characters */
-extern const unsigned char mbfl_charprop_table[];
+static const unsigned char mbfl_charprop_table[];
/* language structure */
diff --git a/ext/mbstring/mbfilter_ja.c b/ext/mbstring/mbfilter_ja.c
index aad415b0de..7b2e2a84f0 100644
--- a/ext/mbstring/mbfilter_ja.c
+++ b/ext/mbstring/mbfilter_ja.c
@@ -83,35 +83,35 @@
#include "mbfilter_ja.h"
/* cp932 table */
-extern const unsigned short cp932ext3_eucjp_table[];
-extern const int cp932ext3_eucjp_table_size;
+static const unsigned short cp932ext3_eucjp_table[];
+static const int cp932ext3_eucjp_table_size;
/* unicode table */
-extern const unsigned short jisx0208_ucs_table[];
-extern const unsigned short jisx0212_ucs_table[];
-extern const unsigned short cp932ext1_ucs_table[];
-extern const unsigned short cp932ext2_ucs_table[];
-extern const unsigned short cp932ext3_ucs_table[];
-extern const unsigned short ucs_a1_jis_table[];
-extern const unsigned short ucs_a2_jis_table[];
-extern const unsigned short ucs_i_jis_table[];
-extern const unsigned short ucs_r_jis_table[];
-extern const int jisx0208_ucs_table_size;
-extern const int jisx0212_ucs_table_size;
-extern const int cp932ext1_ucs_table_min;
-extern const int cp932ext1_ucs_table_max;
-extern const int cp932ext2_ucs_table_min;
-extern const int cp932ext2_ucs_table_max;
-extern const int cp932ext3_ucs_table_min;
-extern const int cp932ext3_ucs_table_max;
-extern const int ucs_a1_jis_table_min;
-extern const int ucs_a1_jis_table_max;
-extern const int ucs_a2_jis_table_min;
-extern const int ucs_a2_jis_table_max;
-extern const int ucs_i_jis_table_min;
-extern const int ucs_i_jis_table_max;
-extern const int ucs_r_jis_table_min;
-extern const int ucs_r_jis_table_max;
+static const unsigned short jisx0208_ucs_table[];
+static const unsigned short jisx0212_ucs_table[];
+static const unsigned short cp932ext1_ucs_table[];
+static const unsigned short cp932ext2_ucs_table[];
+static const unsigned short cp932ext3_ucs_table[];
+static const unsigned short ucs_a1_jis_table[];
+static const unsigned short ucs_a2_jis_table[];
+static const unsigned short ucs_i_jis_table[];
+static const unsigned short ucs_r_jis_table[];
+static const int jisx0208_ucs_table_size;
+static const int jisx0212_ucs_table_size;
+static const int cp932ext1_ucs_table_min;
+static const int cp932ext1_ucs_table_max;
+static const int cp932ext2_ucs_table_min;
+static const int cp932ext2_ucs_table_max;
+static const int cp932ext3_ucs_table_min;
+static const int cp932ext3_ucs_table_max;
+static const int ucs_a1_jis_table_min;
+static const int ucs_a1_jis_table_max;
+static const int ucs_a2_jis_table_min;
+static const int ucs_a2_jis_table_max;
+static const int ucs_i_jis_table_min;
+static const int ucs_i_jis_table_max;
+static const int ucs_r_jis_table_min;
+static const int ucs_r_jis_table_max;
#define CK(statement) do { if ((statement) < 0) return (-1); } while (0)