citrus_dechanyu.c (252583) | citrus_dechanyu.c (260003) |
---|---|
1/* $FreeBSD: head/lib/libiconv_modules/DECHanyu/citrus_dechanyu.c 252583 2013-07-03 18:27:45Z peter $ */ | 1/* $FreeBSD: head/lib/libiconv_modules/DECHanyu/citrus_dechanyu.c 260003 2013-12-28 13:49:48Z dim $ */ |
2/* $NetBSD: citrus_dechanyu.c,v 1.3 2008/06/14 16:01:07 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)2007 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 --- 63 unchanged lines hidden (view full) --- 73/*ARGSUSED*/ 74_citrus_DECHanyu_init_state(_DECHanyuEncodingInfo * __restrict ei __unused, 75 _DECHanyuState * __restrict psenc) 76{ 77 78 psenc->chlen = 0; 79} 80 | 2/* $NetBSD: citrus_dechanyu.c,v 1.3 2008/06/14 16:01:07 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)2007 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 --- 63 unchanged lines hidden (view full) --- 73/*ARGSUSED*/ 74_citrus_DECHanyu_init_state(_DECHanyuEncodingInfo * __restrict ei __unused, 75 _DECHanyuState * __restrict psenc) 76{ 77 78 psenc->chlen = 0; 79} 80 |
81#if 0 |
|
81static __inline void 82/*ARGSUSED*/ 83_citrus_DECHanyu_pack_state(_DECHanyuEncodingInfo * __restrict ei __unused, 84 void * __restrict pspriv, const _DECHanyuState * __restrict psenc) 85{ 86 87 memcpy(pspriv, (const void *)psenc, sizeof(*psenc)); 88} 89 90static __inline void 91/*ARGSUSED*/ 92_citrus_DECHanyu_unpack_state(_DECHanyuEncodingInfo * __restrict ei __unused, 93 _DECHanyuState * __restrict psenc, 94 const void * __restrict pspriv) 95{ 96 97 memcpy((void *)psenc, pspriv, sizeof(*psenc)); 98} | 82static __inline void 83/*ARGSUSED*/ 84_citrus_DECHanyu_pack_state(_DECHanyuEncodingInfo * __restrict ei __unused, 85 void * __restrict pspriv, const _DECHanyuState * __restrict psenc) 86{ 87 88 memcpy(pspriv, (const void *)psenc, sizeof(*psenc)); 89} 90 91static __inline void 92/*ARGSUSED*/ 93_citrus_DECHanyu_unpack_state(_DECHanyuEncodingInfo * __restrict ei __unused, 94 _DECHanyuState * __restrict psenc, 95 const void * __restrict pspriv) 96{ 97 98 memcpy((void *)psenc, pspriv, sizeof(*psenc)); 99} |
100#endif |
|
99 100static void 101/*ARGSUSED*/ 102_citrus_DECHanyu_encoding_module_uninit(_DECHanyuEncodingInfo *ei __unused) 103{ 104 105 /* ei may be null */ 106} --- 286 unchanged lines hidden --- | 101 102static void 103/*ARGSUSED*/ 104_citrus_DECHanyu_encoding_module_uninit(_DECHanyuEncodingInfo *ei __unused) 105{ 106 107 /* ei may be null */ 108} --- 286 unchanged lines hidden --- |