citrus_ues.c (252583) | citrus_ues.c (260003) |
---|---|
1/* $FreeBSD: head/lib/libiconv_modules/UES/citrus_ues.c 252583 2013-07-03 18:27:45Z peter $ */ | 1/* $FreeBSD: head/lib/libiconv_modules/UES/citrus_ues.c 260003 2013-12-28 13:49:48Z dim $ */ |
2/* $NetBSD: citrus_ues.c,v 1.1 2006/11/13 15:16:31 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 --- 60 unchanged lines hidden (view full) --- 70/*ARGSUSED*/ 71_citrus_UES_init_state(_UESEncodingInfo * __restrict ei __unused, 72 _UESState * __restrict psenc) 73{ 74 75 psenc->chlen = 0; 76} 77 | 2/* $NetBSD: citrus_ues.c,v 1.1 2006/11/13 15:16:31 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 --- 60 unchanged lines hidden (view full) --- 70/*ARGSUSED*/ 71_citrus_UES_init_state(_UESEncodingInfo * __restrict ei __unused, 72 _UESState * __restrict psenc) 73{ 74 75 psenc->chlen = 0; 76} 77 |
78#if 0 |
|
78static __inline void 79/*ARGSUSED*/ 80_citrus_UES_pack_state(_UESEncodingInfo * __restrict ei __unused, 81 void *__restrict pspriv, const _UESState * __restrict psenc) 82{ 83 84 memcpy(pspriv, (const void *)psenc, sizeof(*psenc)); 85} 86 87static __inline void 88/*ARGSUSED*/ 89_citrus_UES_unpack_state(_UESEncodingInfo * __restrict ei __unused, 90 _UESState * __restrict psenc, const void * __restrict pspriv) 91{ 92 93 memcpy((void *)psenc, pspriv, sizeof(*psenc)); 94} | 79static __inline void 80/*ARGSUSED*/ 81_citrus_UES_pack_state(_UESEncodingInfo * __restrict ei __unused, 82 void *__restrict pspriv, const _UESState * __restrict psenc) 83{ 84 85 memcpy(pspriv, (const void *)psenc, sizeof(*psenc)); 86} 87 88static __inline void 89/*ARGSUSED*/ 90_citrus_UES_unpack_state(_UESEncodingInfo * __restrict ei __unused, 91 _UESState * __restrict psenc, const void * __restrict pspriv) 92{ 93 94 memcpy((void *)psenc, pspriv, sizeof(*psenc)); 95} |
96#endif |
|
95 96static __inline int 97to_int(int ch) 98{ 99 100 if (ch >= '0' && ch <= '9') 101 return (ch - '0'); 102 else if (ch >= 'A' && ch <= 'F') --- 310 unchanged lines hidden --- | 97 98static __inline int 99to_int(int ch) 100{ 101 102 if (ch >= '0' && ch <= '9') 103 return (ch - '0'); 104 else if (ch >= 'A' && ch <= 'F') --- 310 unchanged lines hidden --- |