Deleted Added
full compact
citrus_euctw.c (252583) citrus_euctw.c (260003)
1/* $FreeBSD: head/lib/libiconv_modules/EUCTW/citrus_euctw.c 252583 2013-07-03 18:27:45Z peter $ */
1/* $FreeBSD: head/lib/libiconv_modules/EUCTW/citrus_euctw.c 260003 2013-12-28 13:49:48Z dim $ */
2/* $NetBSD: citrus_euctw.c,v 1.11 2008/06/14 16:01:07 tnozaki Exp $ */
3
4/*-
5 * Copyright (c)2002 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

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

131/*ARGSUSED*/
132_citrus_EUCTW_init_state(_EUCTWEncodingInfo * __restrict ei __unused,
133 _EUCTWState * __restrict s)
134{
135
136 memset(s, 0, sizeof(*s));
137}
138
2/* $NetBSD: citrus_euctw.c,v 1.11 2008/06/14 16:01:07 tnozaki Exp $ */
3
4/*-
5 * Copyright (c)2002 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

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

131/*ARGSUSED*/
132_citrus_EUCTW_init_state(_EUCTWEncodingInfo * __restrict ei __unused,
133 _EUCTWState * __restrict s)
134{
135
136 memset(s, 0, sizeof(*s));
137}
138
139#if 0
139static __inline void
140/*ARGSUSED*/
141_citrus_EUCTW_pack_state(_EUCTWEncodingInfo * __restrict ei __unused,
142 void * __restrict pspriv, const _EUCTWState * __restrict s)
143{
144
145 memcpy(pspriv, (const void *)s, sizeof(*s));
146}
147
148static __inline void
149/*ARGSUSED*/
150_citrus_EUCTW_unpack_state(_EUCTWEncodingInfo * __restrict ei __unused,
151 _EUCTWState * __restrict s, const void * __restrict pspriv)
152{
153
154 memcpy((void *)s, pspriv, sizeof(*s));
155}
140static __inline void
141/*ARGSUSED*/
142_citrus_EUCTW_pack_state(_EUCTWEncodingInfo * __restrict ei __unused,
143 void * __restrict pspriv, const _EUCTWState * __restrict s)
144{
145
146 memcpy(pspriv, (const void *)s, sizeof(*s));
147}
148
149static __inline void
150/*ARGSUSED*/
151_citrus_EUCTW_unpack_state(_EUCTWEncodingInfo * __restrict ei __unused,
152 _EUCTWState * __restrict s, const void * __restrict pspriv)
153{
154
155 memcpy((void *)s, pspriv, sizeof(*s));
156}
157#endif
156
157static int
158/*ARGSUSED*/
159_citrus_EUCTW_encoding_module_init(_EUCTWEncodingInfo * __restrict ei,
160 const void * __restrict var __unused, size_t lenvar __unused)
161{
162
163 memset((void *)ei, 0, sizeof(*ei));

--- 214 unchanged lines hidden ---
158
159static int
160/*ARGSUSED*/
161_citrus_EUCTW_encoding_module_init(_EUCTWEncodingInfo * __restrict ei,
162 const void * __restrict var __unused, size_t lenvar __unused)
163{
164
165 memset((void *)ei, 0, sizeof(*ei));

--- 214 unchanged lines hidden ---