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

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

138
139 return (((l >= 0xD9 && l <= 0xDE) || (l >= 0xE0 && l <= 0xF9)) &&
140 ((t >= 0x31 && t <= 0x7E) || (t >= 0x91 && t <= 0xFE)));
141}
142
143static int
144/*ARGSUSED*/
145_citrus_JOHAB_mbrtowc_priv(_JOHABEncodingInfo * __restrict ei,
2/* $NetBSD: citrus_johab.c,v 1.4 2008/06/14 16:01:07 tnozaki Exp $ */
3
4/*-
5 * Copyright (c)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

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

138
139 return (((l >= 0xD9 && l <= 0xDE) || (l >= 0xE0 && l <= 0xF9)) &&
140 ((t >= 0x31 && t <= 0x7E) || (t >= 0x91 && t <= 0xFE)));
141}
142
143static int
144/*ARGSUSED*/
145_citrus_JOHAB_mbrtowc_priv(_JOHABEncodingInfo * __restrict ei,
146 wchar_t * __restrict pwc, char ** __restrict s, size_t n,
146 wchar_t * __restrict pwc, const char ** __restrict s, size_t n,
147 _JOHABState * __restrict psenc, size_t * __restrict nresult)
148{
147 _JOHABState * __restrict psenc, size_t * __restrict nresult)
148{
149 char *s0;
149 const char *s0;
150 int l, t;
151
152 if (*s == NULL) {
153 _citrus_JOHAB_init_state(ei, psenc);
154 *nresult = _ENCODING_IS_STATE_DEPENDENT;
155 return (0);
156 }
157 s0 = *s;

--- 176 unchanged lines hidden ---
150 int l, t;
151
152 if (*s == NULL) {
153 _citrus_JOHAB_init_state(ei, psenc);
154 *nresult = _ENCODING_IS_STATE_DEPENDENT;
155 return (0);
156 }
157 s0 = *s;

--- 176 unchanged lines hidden ---