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

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

172 const void *pspriv)
173{
174
175 memcpy((void *)s, pspriv, sizeof(*s));
176}
177#endif
178
179static 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

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

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

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

--- 160 unchanged lines hidden ---