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