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

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

158{
159
160 return (c >= 0x21 && c <= 0x7E);
161}
162
163static int
164/*ARGSUSED*/
165_citrus_DECHanyu_mbrtowc_priv(_DECHanyuEncodingInfo * __restrict ei,
2/* $NetBSD: citrus_dechanyu.c,v 1.3 2008/06/14 16:01:07 tnozaki Exp $ */
3
4/*-
5 * Copyright (c)2007 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

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

158{
159
160 return (c >= 0x21 && c <= 0x7E);
161}
162
163static int
164/*ARGSUSED*/
165_citrus_DECHanyu_mbrtowc_priv(_DECHanyuEncodingInfo * __restrict ei,
166 wchar_t * __restrict pwc, char ** __restrict s, size_t n,
166 wchar_t * __restrict pwc, const char ** __restrict s, size_t n,
167 _DECHanyuState * __restrict psenc, size_t * __restrict nresult)
168{
167 _DECHanyuState * __restrict psenc, size_t * __restrict nresult)
168{
169 char *s0;
169 const char *s0;
170 wchar_t wc;
171 int ch;
172
173 if (*s == NULL) {
174 _citrus_DECHanyu_init_state(ei, psenc);
175 *nresult = _ENCODING_IS_STATE_DEPENDENT;
176 return (0);
177 }

--- 215 unchanged lines hidden ---
170 wchar_t wc;
171 int ch;
172
173 if (*s == NULL) {
174 _citrus_DECHanyu_init_state(ei, psenc);
175 *nresult = _ENCODING_IS_STATE_DEPENDENT;
176 return (0);
177 }

--- 215 unchanged lines hidden ---