Deleted Added
full compact
citrus_euc.c (219019) citrus_euc.c (252583)
1/* $FreeBSD: head/lib/libiconv_modules/EUC/citrus_euc.c 219019 2011-02-25 00:04:39Z gabor $ */
1/* $FreeBSD: head/lib/libiconv_modules/EUC/citrus_euc.c 252583 2013-07-03 18:27:45Z peter $ */
2/* $NetBSD: citrus_euc.c,v 1.14 2009/01/11 02:46:24 christos 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

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

183_citrus_EUC_unpack_state(_EUCEncodingInfo *ei __unused, _EUCState *s,
184 const void *pspriv)
185{
186
187 memcpy((void *)s, pspriv, sizeof(*s));
188}
189
190static int
2/* $NetBSD: citrus_euc.c,v 1.14 2009/01/11 02:46:24 christos 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

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

183_citrus_EUC_unpack_state(_EUCEncodingInfo *ei __unused, _EUCState *s,
184 const void *pspriv)
185{
186
187 memcpy((void *)s, pspriv, sizeof(*s));
188}
189
190static int
191_citrus_EUC_mbrtowc_priv(_EUCEncodingInfo *ei, wchar_t *pwc, char **s,
191_citrus_EUC_mbrtowc_priv(_EUCEncodingInfo *ei, wchar_t *pwc, const char **s,
192 size_t n, _EUCState *psenc, size_t *nresult)
193{
194 wchar_t wchar;
195 int c, chlenbak, cs, len;
192 size_t n, _EUCState *psenc, size_t *nresult)
193{
194 wchar_t wchar;
195 int c, chlenbak, cs, len;
196 char *s0, *s1 = NULL;
196 const char *s0, *s1 = NULL;
197
198 s0 = *s;
199
200 if (s0 == NULL) {
201 _citrus_EUC_init_state(ei, psenc);
202 *nresult = 0; /* state independent */
203 return (0);
204 }

--- 181 unchanged lines hidden ---
197
198 s0 = *s;
199
200 if (s0 == NULL) {
201 _citrus_EUC_init_state(ei, psenc);
202 *nresult = 0; /* state independent */
203 return (0);
204 }

--- 181 unchanged lines hidden ---