Deleted Added
full compact
citrus_stdenc_template.h (219019) citrus_stdenc_template.h (252583)
1/* $FreeBSD: head/lib/libc/iconv/citrus_stdenc_template.h 219019 2011-02-25 00:04:39Z gabor $ */
1/* $FreeBSD: head/lib/libc/iconv/citrus_stdenc_template.h 252583 2013-07-03 18:27:45Z peter $ */
2/* $NetBSD: citrus_stdenc_template.h,v 1.4 2008/02/09 14:56:20 junyoung Exp $ */
3
4/*-
5 * Copyright (c)2003 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

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

107 _FUNCNAME(init_state)(_CE_TO_EI(ce), _TO_STATE(ps));
108
109 return (0);
110}
111
112static int
113_FUNCNAME(stdenc_mbtocs)(struct _citrus_stdenc * __restrict ce,
114 _citrus_csid_t * __restrict csid, _citrus_index_t * __restrict idx,
2/* $NetBSD: citrus_stdenc_template.h,v 1.4 2008/02/09 14:56:20 junyoung Exp $ */
3
4/*-
5 * Copyright (c)2003 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

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

107 _FUNCNAME(init_state)(_CE_TO_EI(ce), _TO_STATE(ps));
108
109 return (0);
110}
111
112static int
113_FUNCNAME(stdenc_mbtocs)(struct _citrus_stdenc * __restrict ce,
114 _citrus_csid_t * __restrict csid, _citrus_index_t * __restrict idx,
115 char ** __restrict s, size_t n, void * __restrict ps,
115 const char ** __restrict s, size_t n, void * __restrict ps,
116 size_t * __restrict nresult, struct iconv_hooks *hooks)
117{
118 wchar_t wc;
119 int ret;
120
121 ret = _FUNCNAME(mbrtowc_priv)(_CE_TO_EI(ce), &wc, s, n,
122 _TO_STATE(ps), nresult);
123

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

146 if (ret == 0)
147 ret = _FUNCNAME(wcrtomb_priv)(_CE_TO_EI(ce), s, n, wc,
148 _TO_STATE(ps), nresult);
149 return (ret);
150}
151
152static int
153_FUNCNAME(stdenc_mbtowc)(struct _citrus_stdenc * __restrict ce,
116 size_t * __restrict nresult, struct iconv_hooks *hooks)
117{
118 wchar_t wc;
119 int ret;
120
121 ret = _FUNCNAME(mbrtowc_priv)(_CE_TO_EI(ce), &wc, s, n,
122 _TO_STATE(ps), nresult);
123

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

146 if (ret == 0)
147 ret = _FUNCNAME(wcrtomb_priv)(_CE_TO_EI(ce), s, n, wc,
148 _TO_STATE(ps), nresult);
149 return (ret);
150}
151
152static int
153_FUNCNAME(stdenc_mbtowc)(struct _citrus_stdenc * __restrict ce,
154 _citrus_wc_t * __restrict wc, char ** __restrict s, size_t n,
154 _citrus_wc_t * __restrict wc, const char ** __restrict s, size_t n,
155 void * __restrict ps, size_t * __restrict nresult,
156 struct iconv_hooks *hooks)
157{
158 int ret;
159
160 ret = _FUNCNAME(mbrtowc_priv)(_CE_TO_EI(ce), wc, s, n,
161 _TO_STATE(ps), nresult);
162 if ((ret == 0) && (hooks != NULL) && (hooks->wc_hook != NULL))

--- 49 unchanged lines hidden ---
155 void * __restrict ps, size_t * __restrict nresult,
156 struct iconv_hooks *hooks)
157{
158 int ret;
159
160 ret = _FUNCNAME(mbrtowc_priv)(_CE_TO_EI(ce), wc, s, n,
161 _TO_STATE(ps), nresult);
162 if ((ret == 0) && (hooks != NULL) && (hooks->wc_hook != NULL))

--- 49 unchanged lines hidden ---