Deleted Added
full compact
citrus_big5.c (252583) citrus_big5.c (260003)
1/* $FreeBSD: head/lib/libiconv_modules/BIG5/citrus_big5.c 252583 2013-07-03 18:27:45Z peter $ */
1/* $FreeBSD: head/lib/libiconv_modules/BIG5/citrus_big5.c 260003 2013-12-28 13:49:48Z dim $ */
2/* $NetBSD: citrus_big5.c,v 1.12 2008/06/14 16:01:07 tnozaki Exp $ */
3
4/*-
5 * Copyright (c)2002, 2006 Citrus Project,
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 108 unchanged lines hidden (view full) ---

118/*ARGSUSED*/
119_citrus_BIG5_init_state(_BIG5EncodingInfo * __restrict ei __unused,
120 _BIG5State * __restrict s)
121{
122
123 memset(s, 0, sizeof(*s));
124}
125
2/* $NetBSD: citrus_big5.c,v 1.12 2008/06/14 16:01:07 tnozaki Exp $ */
3
4/*-
5 * Copyright (c)2002, 2006 Citrus Project,
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 108 unchanged lines hidden (view full) ---

118/*ARGSUSED*/
119_citrus_BIG5_init_state(_BIG5EncodingInfo * __restrict ei __unused,
120 _BIG5State * __restrict s)
121{
122
123 memset(s, 0, sizeof(*s));
124}
125
126#if 0
126static __inline void
127/*ARGSUSED*/
128_citrus_BIG5_pack_state(_BIG5EncodingInfo * __restrict ei __unused,
129 void * __restrict pspriv,
130 const _BIG5State * __restrict s)
131{
132
133 memcpy(pspriv, (const void *)s, sizeof(*s));
134}
135
136static __inline void
137/*ARGSUSED*/
138_citrus_BIG5_unpack_state(_BIG5EncodingInfo * __restrict ei __unused,
139 _BIG5State * __restrict s,
140 const void * __restrict pspriv)
141{
142
143 memcpy((void *)s, pspriv, sizeof(*s));
144}
127static __inline void
128/*ARGSUSED*/
129_citrus_BIG5_pack_state(_BIG5EncodingInfo * __restrict ei __unused,
130 void * __restrict pspriv,
131 const _BIG5State * __restrict s)
132{
133
134 memcpy(pspriv, (const void *)s, sizeof(*s));
135}
136
137static __inline void
138/*ARGSUSED*/
139_citrus_BIG5_unpack_state(_BIG5EncodingInfo * __restrict ei __unused,
140 _BIG5State * __restrict s,
141 const void * __restrict pspriv)
142{
143
144 memcpy((void *)s, pspriv, sizeof(*s));
145}
146#endif
145
146static __inline int
147_citrus_BIG5_check(_BIG5EncodingInfo *ei, unsigned int c)
148{
149
150 return ((ei->cell[c & 0xFF] & 0x1) ? 2 : 1);
151}
152

--- 305 unchanged lines hidden ---
147
148static __inline int
149_citrus_BIG5_check(_BIG5EncodingInfo *ei, unsigned int c)
150{
151
152 return ((ei->cell[c & 0xFF] & 0x1) ? 2 : 1);
153}
154

--- 305 unchanged lines hidden ---