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

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

80_citrus_ZW_init_state(_ZWEncodingInfo * __restrict ei __unused,
81 _ZWState * __restrict psenc)
82{
83
84 psenc->chlen = 0;
85 psenc->charset = NONE;
86}
87
2/* $NetBSD: citrus_zw.c,v 1.4 2008/06/14 16:01:08 tnozaki Exp $ */
3
4/*-
5 * Copyright (c)2004, 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

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

80_citrus_ZW_init_state(_ZWEncodingInfo * __restrict ei __unused,
81 _ZWState * __restrict psenc)
82{
83
84 psenc->chlen = 0;
85 psenc->charset = NONE;
86}
87
88#if 0
88static __inline void
89/*ARGSUSED*/
90_citrus_ZW_pack_state(_ZWEncodingInfo * __restrict ei __unused,
91 void *__restrict pspriv, const _ZWState * __restrict psenc)
92{
93
94 memcpy(pspriv, (const void *)psenc, sizeof(*psenc));
95}
96
97static __inline void
98/*ARGSUSED*/
99_citrus_ZW_unpack_state(_ZWEncodingInfo * __restrict ei __unused,
100 _ZWState * __restrict psenc, const void * __restrict pspriv)
101{
102
103 memcpy((void *)psenc, pspriv, sizeof(*psenc));
104}
89static __inline void
90/*ARGSUSED*/
91_citrus_ZW_pack_state(_ZWEncodingInfo * __restrict ei __unused,
92 void *__restrict pspriv, const _ZWState * __restrict psenc)
93{
94
95 memcpy(pspriv, (const void *)psenc, sizeof(*psenc));
96}
97
98static __inline void
99/*ARGSUSED*/
100_citrus_ZW_unpack_state(_ZWEncodingInfo * __restrict ei __unused,
101 _ZWState * __restrict psenc, const void * __restrict pspriv)
102{
103
104 memcpy((void *)psenc, pspriv, sizeof(*psenc));
105}
106#endif
105
106static int
107_citrus_ZW_mbrtowc_priv(_ZWEncodingInfo * __restrict ei,
108 wchar_t * __restrict pwc, const char **__restrict s, size_t n,
109 _ZWState * __restrict psenc, size_t * __restrict nresult)
110{
111 const char *s0;
112 wchar_t wc;

--- 343 unchanged lines hidden ---
107
108static int
109_citrus_ZW_mbrtowc_priv(_ZWEncodingInfo * __restrict ei,
110 wchar_t * __restrict pwc, const char **__restrict s, size_t n,
111 _ZWState * __restrict psenc, size_t * __restrict nresult)
112{
113 const char *s0;
114 wchar_t wc;

--- 343 unchanged lines hidden ---