]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - iconvdata/ibm932.h
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / iconvdata / ibm932.h
index d8acdf5171496d19e0a72afca62418b8aff60f2b..33b8db8e26bed1def371694552b67daf2f976eb3 100644 (file)
@@ -1,5 +1,5 @@
 /* Tables for conversion from and to IBM932.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Masahide Washizawa <washi@jp.ibm.com>, 2000.
 
@@ -14,9 +14,8 @@
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <https://www.gnu.org/licenses/>.  */
 
 #ifndef _IBM932_H
 #define _IBM932_H 1
@@ -31,12 +30,6 @@ struct gap
   int32_t idx;
 };
 
-static const struct gap __ibm932sb_to_ucs4_idx[] =
-{
-  { start: 0x0000, end: 0x00ff, idx:     0 },
-  { start: 0xffff, end: 0xffff, idx:     0 }
-};
-
 static const uint16_t __ibm932sb_to_ucs4[] =
 {
   0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0x0005, 0x0006, 0x0007,
@@ -75,59 +68,59 @@ static const uint16_t __ibm932sb_to_ucs4[] =
 
 static const struct gap __ibm932db_to_ucs4_idx[] =
 {
-  { start: 0x8140, end: 0x81fc, idx: -33088 },
-  { start: 0x824f, end: 0x82f1, idx: -33170 },
-  { start: 0x8340, end: 0x83d6, idx: -33248 },
-  { start: 0x8440, end: 0x84be, idx: -33353 },
-  { start: 0x889f, end: 0x88fc, idx: -34345 },
-  { start: 0x8940, end: 0x89fc, idx: -34412 },
-  { start: 0x8a40, end: 0x8afc, idx: -34479 },
-  { start: 0x8b40, end: 0x8bfc, idx: -34546 },
-  { start: 0x8c40, end: 0x8cfc, idx: -34613 },
-  { start: 0x8d40, end: 0x8dfc, idx: -34680 },
-  { start: 0x8e40, end: 0x8efc, idx: -34747 },
-  { start: 0x8f40, end: 0x8ffc, idx: -34814 },
-  { start: 0x9040, end: 0x90fc, idx: -34881 },
-  { start: 0x9140, end: 0x91fc, idx: -34948 },
-  { start: 0x9240, end: 0x92fc, idx: -35015 },
-  { start: 0x9340, end: 0x93fc, idx: -35082 },
-  { start: 0x9440, end: 0x94fc, idx: -35149 },
-  { start: 0x9540, end: 0x95fc, idx: -35216 },
-  { start: 0x9640, end: 0x96fc, idx: -35283 },
-  { start: 0x9740, end: 0x97fc, idx: -35350 },
-  { start: 0x9840, end: 0x98fc, idx: -35417 },
-  { start: 0x9940, end: 0x99fc, idx: -35484 },
-  { start: 0x9a40, end: 0x9afc, idx: -35551 },
-  { start: 0x9b40, end: 0x9bfc, idx: -35618 },
-  { start: 0x9c40, end: 0x9cfc, idx: -35685 },
-  { start: 0x9d40, end: 0x9dfc, idx: -35752 },
-  { start: 0x9e40, end: 0x9efc, idx: -35819 },
-  { start: 0x9f40, end: 0x9ffc, idx: -35886 },
-  { start: 0xe040, end: 0xe0fc, idx: -52337 },
-  { start: 0xe140, end: 0xe1fc, idx: -52404 },
-  { start: 0xe240, end: 0xe2fc, idx: -52471 },
-  { start: 0xe340, end: 0xe3fc, idx: -52538 },
-  { start: 0xe440, end: 0xe4fc, idx: -52605 },
-  { start: 0xe540, end: 0xe5fc, idx: -52672 },
-  { start: 0xe640, end: 0xe6fc, idx: -52739 },
-  { start: 0xe740, end: 0xe7fc, idx: -52806 },
-  { start: 0xe840, end: 0xe8fc, idx: -52873 },
-  { start: 0xe940, end: 0xe9fc, idx: -52940 },
-  { start: 0xea40, end: 0xeaa4, idx: -53007 },
-  { start: 0xf040, end: 0xf0fc, idx: -54442 },
-  { start: 0xf140, end: 0xf1fc, idx: -54509 },
-  { start: 0xf240, end: 0xf2fc, idx: -54576 },
-  { start: 0xf340, end: 0xf3fc, idx: -54643 },
-  { start: 0xf440, end: 0xf4fc, idx: -54710 },
-  { start: 0xf540, end: 0xf5fc, idx: -54777 },
-  { start: 0xf640, end: 0xf6fc, idx: -54844 },
-  { start: 0xf740, end: 0xf7fc, idx: -54911 },
-  { start: 0xf840, end: 0xf8fc, idx: -54978 },
-  { start: 0xf940, end: 0xf9fc, idx: -55045 },
-  { start: 0xfa40, end: 0xfafc, idx: -55112 },
-  { start: 0xfb40, end: 0xfbfc, idx: -55179 },
-  { start: 0xfc40, end: 0xfc4b, idx: -55246 },
-  { start: 0xffff, end: 0xffff, idx:      0 }
+  { .start = 0x8140, .end = 0x81fc, .idx = -33088 },
+  { .start = 0x824f, .end = 0x82f1, .idx = -33170 },
+  { .start = 0x8340, .end = 0x83d6, .idx = -33248 },
+  { .start = 0x8440, .end = 0x84be, .idx = -33353 },
+  { .start = 0x889f, .end = 0x88fc, .idx = -34345 },
+  { .start = 0x8940, .end = 0x89fc, .idx = -34412 },
+  { .start = 0x8a40, .end = 0x8afc, .idx = -34479 },
+  { .start = 0x8b40, .end = 0x8bfc, .idx = -34546 },
+  { .start = 0x8c40, .end = 0x8cfc, .idx = -34613 },
+  { .start = 0x8d40, .end = 0x8dfc, .idx = -34680 },
+  { .start = 0x8e40, .end = 0x8efc, .idx = -34747 },
+  { .start = 0x8f40, .end = 0x8ffc, .idx = -34814 },
+  { .start = 0x9040, .end = 0x90fc, .idx = -34881 },
+  { .start = 0x9140, .end = 0x91fc, .idx = -34948 },
+  { .start = 0x9240, .end = 0x92fc, .idx = -35015 },
+  { .start = 0x9340, .end = 0x93fc, .idx = -35082 },
+  { .start = 0x9440, .end = 0x94fc, .idx = -35149 },
+  { .start = 0x9540, .end = 0x95fc, .idx = -35216 },
+  { .start = 0x9640, .end = 0x96fc, .idx = -35283 },
+  { .start = 0x9740, .end = 0x97fc, .idx = -35350 },
+  { .start = 0x9840, .end = 0x98fc, .idx = -35417 },
+  { .start = 0x9940, .end = 0x99fc, .idx = -35484 },
+  { .start = 0x9a40, .end = 0x9afc, .idx = -35551 },
+  { .start = 0x9b40, .end = 0x9bfc, .idx = -35618 },
+  { .start = 0x9c40, .end = 0x9cfc, .idx = -35685 },
+  { .start = 0x9d40, .end = 0x9dfc, .idx = -35752 },
+  { .start = 0x9e40, .end = 0x9efc, .idx = -35819 },
+  { .start = 0x9f40, .end = 0x9ffc, .idx = -35886 },
+  { .start = 0xe040, .end = 0xe0fc, .idx = -52337 },
+  { .start = 0xe140, .end = 0xe1fc, .idx = -52404 },
+  { .start = 0xe240, .end = 0xe2fc, .idx = -52471 },
+  { .start = 0xe340, .end = 0xe3fc, .idx = -52538 },
+  { .start = 0xe440, .end = 0xe4fc, .idx = -52605 },
+  { .start = 0xe540, .end = 0xe5fc, .idx = -52672 },
+  { .start = 0xe640, .end = 0xe6fc, .idx = -52739 },
+  { .start = 0xe740, .end = 0xe7fc, .idx = -52806 },
+  { .start = 0xe840, .end = 0xe8fc, .idx = -52873 },
+  { .start = 0xe940, .end = 0xe9fc, .idx = -52940 },
+  { .start = 0xea40, .end = 0xeaa4, .idx = -53007 },
+  { .start = 0xf040, .end = 0xf0fc, .idx = -54442 },
+  { .start = 0xf140, .end = 0xf1fc, .idx = -54509 },
+  { .start = 0xf240, .end = 0xf2fc, .idx = -54576 },
+  { .start = 0xf340, .end = 0xf3fc, .idx = -54643 },
+  { .start = 0xf440, .end = 0xf4fc, .idx = -54710 },
+  { .start = 0xf540, .end = 0xf5fc, .idx = -54777 },
+  { .start = 0xf640, .end = 0xf6fc, .idx = -54844 },
+  { .start = 0xf740, .end = 0xf7fc, .idx = -54911 },
+  { .start = 0xf840, .end = 0xf8fc, .idx = -54978 },
+  { .start = 0xf940, .end = 0xf9fc, .idx = -55045 },
+  { .start = 0xfa40, .end = 0xfafc, .idx = -55112 },
+  { .start = 0xfb40, .end = 0xfbfc, .idx = -55179 },
+  { .start = 0xfc40, .end = 0xfc4b, .idx = -55246 },
+  { .start = 0xffff, .end = 0xffff, .idx =      0 }
 };
 
 static const uint16_t __ibm932db_to_ucs4[] =
@@ -1304,15 +1297,15 @@ static const uint16_t __ibm932db_to_ucs4[] =
 
 static const struct gap __ucs4_to_ibm932sb_idx[] =
 {
-  { start: 0x0000, end: 0x00ff, idx:      0 },
-  { start: 0x203e, end: 0x203e, idx:  -7998 },
-  { start: 0x2195, end: 0x21b5, idx:  -8340 },
-  { start: 0x2550, end: 0x2593, idx:  -9262 },
-  { start: 0x263c, end: 0x263c, idx:  -9430 },
-  { start: 0x303f, end: 0x303f, idx: -11992 },
-  { start: 0xff61, end: 0xff9f, idx: -65017 },
-  { start: 0xffe8, end: 0xffee, idx: -65089 },
-  { start: 0xffff, end: 0xffff, idx:      0 }
+  { .start = 0x0000, .end = 0x00ff, .idx =      0 },
+  { .start = 0x203e, .end = 0x203e, .idx =  -7998 },
+  { .start = 0x2195, .end = 0x21b5, .idx =  -8340 },
+  { .start = 0x2550, .end = 0x2593, .idx =  -9262 },
+  { .start = 0x263c, .end = 0x263c, .idx =  -9430 },
+  { .start = 0x303f, .end = 0x303f, .idx = -11992 },
+  { .start = 0xff61, .end = 0xff9f, .idx = -65017 },
+  { .start = 0xffe8, .end = 0xffee, .idx = -65089 },
+  { .start = 0xffff, .end = 0xffff, .idx =      0 }
 };
 
 static const char __ucs4_to_ibm932sb[] =
@@ -1373,7 +1366,7 @@ static const char __ucs4_to_ibm932sb[] =
   '\x1f', '\x1c', '\x1e', '\x07', '\x0e', '\x09'
 };
 
-static unsigned short __ucs4_to_ibm932db[][2] =
+static const unsigned short int __ucs4_to_ibm932db[][2] =
 {
     {0x00a6, 0xfa55}, {0x00a7, 0x8198}, {0x00a8, 0x814e}, {0x00b0, 0x818b},
     {0x00b1, 0x817d}, {0x00b4, 0x814c}, {0x00b6, 0x81f7}, {0x00d7, 0x817e},