citrus_zw.c (260003) | citrus_zw.c (281550) |
---|---|
1/* $FreeBSD: head/lib/libiconv_modules/ZW/citrus_zw.c 260003 2013-12-28 13:49:48Z dim $ */ | 1/* $FreeBSD: head/lib/libiconv_modules/ZW/citrus_zw.c 281550 2015-04-15 09:09:20Z tijl $ */ |
2/* $NetBSD: citrus_zw.c,v 1.4 2008/06/14 16:01:08 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)2004, 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 --- 92 unchanged lines hidden (view full) --- 102{ 103 104 memcpy((void *)psenc, pspriv, sizeof(*psenc)); 105} 106#endif 107 108static int 109_citrus_ZW_mbrtowc_priv(_ZWEncodingInfo * __restrict ei, | 2/* $NetBSD: citrus_zw.c,v 1.4 2008/06/14 16:01:08 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)2004, 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 --- 92 unchanged lines hidden (view full) --- 102{ 103 104 memcpy((void *)psenc, pspriv, sizeof(*psenc)); 105} 106#endif 107 108static int 109_citrus_ZW_mbrtowc_priv(_ZWEncodingInfo * __restrict ei, |
110 wchar_t * __restrict pwc, const char **__restrict s, size_t n, | 110 wchar_t * __restrict pwc, char **__restrict s, size_t n, |
111 _ZWState * __restrict psenc, size_t * __restrict nresult) 112{ | 111 _ZWState * __restrict psenc, size_t * __restrict nresult) 112{ |
113 const char *s0; | 113 char *s0; |
114 wchar_t wc; 115 int ch, len; 116 117 if (*s == NULL) { 118 _citrus_ZW_init_state(ei, psenc); 119 *nresult = (size_t)_ENCODING_IS_STATE_DEPENDENT; 120 return (0); 121 } --- 336 unchanged lines hidden --- | 114 wchar_t wc; 115 int ch, len; 116 117 if (*s == NULL) { 118 _citrus_ZW_init_state(ei, psenc); 119 *nresult = (size_t)_ENCODING_IS_STATE_DEPENDENT; 120 return (0); 121 } --- 336 unchanged lines hidden --- |