citrus_mskanji.c (260003) | citrus_mskanji.c (281550) |
---|---|
1/* $FreeBSD: head/lib/libiconv_modules/MSKanji/citrus_mskanji.c 260003 2013-12-28 13:49:48Z dim $ */ | 1/* $FreeBSD: head/lib/libiconv_modules/MSKanji/citrus_mskanji.c 281550 2015-04-15 09:09:20Z tijl $ */ |
2/* $NetBSD: citrus_mskanji.c,v 1.13 2008/06/14 16:01:08 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)2002 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 --- 138 unchanged lines hidden (view full) --- 148 149 memcpy((void *)s, pspriv, sizeof(*s)); 150} 151#endif 152 153static int 154/*ARGSUSED*/ 155_citrus_MSKanji_mbrtowc_priv(_MSKanjiEncodingInfo * __restrict ei, | 2/* $NetBSD: citrus_mskanji.c,v 1.13 2008/06/14 16:01:08 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)2002 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 --- 138 unchanged lines hidden (view full) --- 148 149 memcpy((void *)s, pspriv, sizeof(*s)); 150} 151#endif 152 153static int 154/*ARGSUSED*/ 155_citrus_MSKanji_mbrtowc_priv(_MSKanjiEncodingInfo * __restrict ei, |
156 wchar_t * __restrict pwc, const char ** __restrict s, size_t n, | 156 wchar_t * __restrict pwc, char ** __restrict s, size_t n, |
157 _MSKanjiState * __restrict psenc, size_t * __restrict nresult) 158{ | 157 _MSKanjiState * __restrict psenc, size_t * __restrict nresult) 158{ |
159 const char *s0; | 159 char *s0; |
160 wchar_t wchar; 161 int chlenbak, len; 162 163 s0 = *s; 164 165 if (s0 == NULL) { 166 _citrus_MSKanji_init_state(ei, psenc); 167 *nresult = 0; /* state independent */ --- 308 unchanged lines hidden --- | 160 wchar_t wchar; 161 int chlenbak, len; 162 163 s0 = *s; 164 165 if (s0 == NULL) { 166 _citrus_MSKanji_init_state(ei, psenc); 167 *nresult = 0; /* state independent */ --- 308 unchanged lines hidden --- |