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

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

92 _UTF1632State *s)
93{
94
95 memset(s, 0, sizeof(*s));
96}
97
98static int
99_citrus_UTF1632_mbrtowc_priv(_UTF1632EncodingInfo *ei, wchar_t *pwc,
2/* $NetBSD: citrus_utf1632.c,v 1.9 2008/06/14 16:01:08 tnozaki 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

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

92 _UTF1632State *s)
93{
94
95 memset(s, 0, sizeof(*s));
96}
97
98static int
99_citrus_UTF1632_mbrtowc_priv(_UTF1632EncodingInfo *ei, wchar_t *pwc,
100 char **s, size_t n, _UTF1632State *psenc, size_t *nresult)
100 const char **s, size_t n, _UTF1632State *psenc, size_t *nresult)
101{
101{
102 char *s0;
102 const char *s0;
103 size_t result;
104 wchar_t wc = L'\0';
105 int chlenbak, endian, needlen;
106
107 s0 = *s;
108
109 if (s0 == NULL) {
110 _citrus_UTF1632_init_state(ei, psenc);

--- 343 unchanged lines hidden ---
103 size_t result;
104 wchar_t wc = L'\0';
105 int chlenbak, endian, needlen;
106
107 s0 = *s;
108
109 if (s0 == NULL) {
110 _citrus_UTF1632_init_state(ei, psenc);

--- 343 unchanged lines hidden ---