citrus_big5.c (219019) | citrus_big5.c (252583) |
---|---|
1/* $FreeBSD: head/lib/libiconv_modules/BIG5/citrus_big5.c 219019 2011-02-25 00:04:39Z gabor $ */ | 1/* $FreeBSD: head/lib/libiconv_modules/BIG5/citrus_big5.c 252583 2013-07-03 18:27:45Z peter $ */ |
2/* $NetBSD: citrus_big5.c,v 1.12 2008/06/14 16:01:07 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)2002, 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 --- 253 unchanged lines hidden (view full) --- 263 264 return (0); 265} 266 267static int 268/*ARGSUSED*/ 269_citrus_BIG5_mbrtowc_priv(_BIG5EncodingInfo * __restrict ei, 270 wchar_t * __restrict pwc, | 2/* $NetBSD: citrus_big5.c,v 1.12 2008/06/14 16:01:07 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)2002, 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 --- 253 unchanged lines hidden (view full) --- 263 264 return (0); 265} 266 267static int 268/*ARGSUSED*/ 269_citrus_BIG5_mbrtowc_priv(_BIG5EncodingInfo * __restrict ei, 270 wchar_t * __restrict pwc, |
271 char ** __restrict s, size_t n, | 271 const char ** __restrict s, size_t n, |
272 _BIG5State * __restrict psenc, 273 size_t * __restrict nresult) 274{ 275 wchar_t wchar; | 272 _BIG5State * __restrict psenc, 273 size_t * __restrict nresult) 274{ 275 wchar_t wchar; |
276 char *s0; | 276 const char *s0; |
277 int c, chlenbak; 278 279 s0 = *s; 280 281 if (s0 == NULL) { 282 _citrus_BIG5_init_state(ei, psenc); 283 *nresult = 0; 284 return (0); --- 173 unchanged lines hidden --- | 277 int c, chlenbak; 278 279 s0 = *s; 280 281 if (s0 == NULL) { 282 _citrus_BIG5_init_state(ei, psenc); 283 *nresult = 0; 284 return (0); --- 173 unchanged lines hidden --- |