1/* $FreeBSD: head/lib/libiconv_modules/BIG5/citrus_big5.c 260003 2013-12-28 13:49:48Z dim $ */ |
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 --- 108 unchanged lines hidden (view full) --- 118/*ARGSUSED*/ 119_citrus_BIG5_init_state(_BIG5EncodingInfo * __restrict ei __unused, 120 _BIG5State * __restrict s) 121{ 122 123 memset(s, 0, sizeof(*s)); 124} 125 |
126#if 0 |
127static __inline void 128/*ARGSUSED*/ 129_citrus_BIG5_pack_state(_BIG5EncodingInfo * __restrict ei __unused, 130 void * __restrict pspriv, 131 const _BIG5State * __restrict s) 132{ 133 134 memcpy(pspriv, (const void *)s, sizeof(*s)); 135} 136 137static __inline void 138/*ARGSUSED*/ 139_citrus_BIG5_unpack_state(_BIG5EncodingInfo * __restrict ei __unused, 140 _BIG5State * __restrict s, 141 const void * __restrict pspriv) 142{ 143 144 memcpy((void *)s, pspriv, sizeof(*s)); 145} |
146#endif |
147 148static __inline int 149_citrus_BIG5_check(_BIG5EncodingInfo *ei, unsigned int c) 150{ 151 152 return ((ei->cell[c & 0xFF] & 0x1) ? 2 : 1); 153} 154 --- 305 unchanged lines hidden --- |