Deleted Added
full compact
citrus_euctw.c (219019) citrus_euctw.c (252583)
1/* $FreeBSD: head/lib/libiconv_modules/EUCTW/citrus_euctw.c 219019 2011-02-25 00:04:39Z gabor $ */
1/* $FreeBSD: head/lib/libiconv_modules/EUCTW/citrus_euctw.c 252583 2013-07-03 18:27:45Z peter $ */
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

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

169/*ARGSUSED*/
170_citrus_EUCTW_encoding_module_uninit(_EUCTWEncodingInfo *ei __unused)
171{
172
173}
174
175static int
176_citrus_EUCTW_mbrtowc_priv(_EUCTWEncodingInfo * __restrict ei,
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

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

169/*ARGSUSED*/
170_citrus_EUCTW_encoding_module_uninit(_EUCTWEncodingInfo *ei __unused)
171{
172
173}
174
175static int
176_citrus_EUCTW_mbrtowc_priv(_EUCTWEncodingInfo * __restrict ei,
177 wchar_t * __restrict pwc, char ** __restrict s,
177 wchar_t * __restrict pwc, const char ** __restrict s,
178 size_t n, _EUCTWState * __restrict psenc, size_t * __restrict nresult)
179{
178 size_t n, _EUCTWState * __restrict psenc, size_t * __restrict nresult)
179{
180 char *s0;
180 const char *s0;
181 wchar_t wchar;
182 int c, chlenbak, cs;
183
184 s0 = *s;
185
186 if (s0 == NULL) {
187 _citrus_EUCTW_init_state(ei, psenc);
188 *nresult = 0; /* state independent */

--- 189 unchanged lines hidden ---
181 wchar_t wchar;
182 int c, chlenbak, cs;
183
184 s0 = *s;
185
186 if (s0 == NULL) {
187 _citrus_EUCTW_init_state(ei, psenc);
188 *nresult = 0; /* state independent */

--- 189 unchanged lines hidden ---