Deleted Added
full compact
citrus_utf8.c (219019) citrus_utf8.c (252583)
1/* $FreeBSD: head/lib/libiconv_modules/UTF8/citrus_utf8.c 219019 2011-02-25 00:04:39Z gabor $ */
1/* $FreeBSD: head/lib/libiconv_modules/UTF8/citrus_utf8.c 252583 2013-07-03 18:27:45Z peter $ */
2/* $NetBSD: citrus_utf8.c,v 1.17 2008/06/14 16:01:08 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

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

170_citrus_UTF8_unpack_state(_UTF8EncodingInfo *ei __unused, _UTF8State *s,
171 const void *pspriv)
172{
173
174 memcpy((void *)s, pspriv, sizeof(*s));
175}
176
177static int
2/* $NetBSD: citrus_utf8.c,v 1.17 2008/06/14 16:01:08 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

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

170_citrus_UTF8_unpack_state(_UTF8EncodingInfo *ei __unused, _UTF8State *s,
171 const void *pspriv)
172{
173
174 memcpy((void *)s, pspriv, sizeof(*s));
175}
176
177static int
178_citrus_UTF8_mbrtowc_priv(_UTF8EncodingInfo *ei, wchar_t *pwc, char **s,
178_citrus_UTF8_mbrtowc_priv(_UTF8EncodingInfo *ei, wchar_t *pwc, const char **s,
179 size_t n, _UTF8State *psenc, size_t *nresult)
180{
179 size_t n, _UTF8State *psenc, size_t *nresult)
180{
181 char *s0;
181 const char *s0;
182 wchar_t wchar;
183 int i;
184 uint8_t c;
185
186 s0 = *s;
187
188 if (s0 == NULL) {
189 _citrus_UTF8_init_state(ei, psenc);

--- 160 unchanged lines hidden ---
182 wchar_t wchar;
183 int i;
184 uint8_t c;
185
186 s0 = *s;
187
188 if (s0 == NULL) {
189 _citrus_UTF8_init_state(ei, psenc);

--- 160 unchanged lines hidden ---