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

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

140
141 return (((l >= 0xD9 && l <= 0xDE) || (l >= 0xE0 && l <= 0xF9)) &&
142 ((t >= 0x31 && t <= 0x7E) || (t >= 0x91 && t <= 0xFE)));
143}
144
145static int
146/*ARGSUSED*/
147_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

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

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

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

--- 176 unchanged lines hidden ---