Deleted Added
full compact
citrus_hz.c (219019) citrus_hz.c (252583)
1/* $FreeBSD: head/lib/libiconv_modules/HZ/citrus_hz.c 219019 2011-02-25 00:04:39Z gabor $ */
1/* $FreeBSD: head/lib/libiconv_modules/HZ/citrus_hz.c 252583 2013-07-03 18:27:45Z peter $ */
2/* $NetBSD: citrus_hz.c,v 1.2 2008/06/14 16:01:07 tnozaki Exp $ */
3
4/*-
5 * Copyright (c)2004, 2006 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

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

168 _HZState * __restrict psenc, const void * __restrict pspriv)
169{
170
171 memcpy((void *)psenc, pspriv, sizeof(*psenc));
172}
173
174static int
175_citrus_HZ_mbrtowc_priv(_HZEncodingInfo * __restrict ei,
2/* $NetBSD: citrus_hz.c,v 1.2 2008/06/14 16:01:07 tnozaki Exp $ */
3
4/*-
5 * Copyright (c)2004, 2006 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

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

168 _HZState * __restrict psenc, const void * __restrict pspriv)
169{
170
171 memcpy((void *)psenc, pspriv, sizeof(*psenc));
172}
173
174static int
175_citrus_HZ_mbrtowc_priv(_HZEncodingInfo * __restrict ei,
176 wchar_t * __restrict pwc, char ** __restrict s, size_t n,
176 wchar_t * __restrict pwc, const char ** __restrict s, size_t n,
177 _HZState * __restrict psenc, size_t * __restrict nresult)
178{
179 escape_t *candidate, *init;
180 graphic_t *graphic;
181 const range_t *range;
177 _HZState * __restrict psenc, size_t * __restrict nresult)
178{
179 escape_t *candidate, *init;
180 graphic_t *graphic;
181 const range_t *range;
182 char *s0;
182 const char *s0;
183 wchar_t wc;
184 int bit, ch, head, len, tail;
185
186 if (*s == NULL) {
187 _citrus_HZ_init_state(ei, psenc);
188 *nresult = 1;
189 return (0);
190 }

--- 458 unchanged lines hidden ---
183 wchar_t wc;
184 int bit, ch, head, len, tail;
185
186 if (*s == NULL) {
187 _citrus_HZ_init_state(ei, psenc);
188 *nresult = 1;
189 return (0);
190 }

--- 458 unchanged lines hidden ---