Deleted Added
full compact
citrus_euc.c (260003) citrus_euc.c (281550)
1/* $FreeBSD: head/lib/libiconv_modules/EUC/citrus_euc.c 260003 2013-12-28 13:49:48Z dim $ */
1/* $FreeBSD: head/lib/libiconv_modules/EUC/citrus_euc.c 281550 2015-04-15 09:09:20Z tijl $ */
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

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

185 const void *pspriv)
186{
187
188 memcpy((void *)s, pspriv, sizeof(*s));
189}
190#endif
191
192static 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

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

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

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

--- 181 unchanged lines hidden ---