big5.c (ca2dae426e0f7fc55d81fc29422f24d47a193e35) | big5.c (fa02ee78c88a0293964700aae6b758c0b4959a11) |
---|---|
1/*- 2 * Copyright (c) 2002-2004 Tim J. Robbins. All rights reserved. 3 * Copyright (c) 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Paul Borman at Krystal Technologies. 8 * --- 64 unchanged lines hidden (view full) --- 73 __mb_cur_max = 2; 74 return (0); 75} 76 77int 78_BIG5_mbsinit(const mbstate_t *ps) 79{ 80 | 1/*- 2 * Copyright (c) 2002-2004 Tim J. Robbins. All rights reserved. 3 * Copyright (c) 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * Paul Borman at Krystal Technologies. 8 * --- 64 unchanged lines hidden (view full) --- 73 __mb_cur_max = 2; 74 return (0); 75} 76 77int 78_BIG5_mbsinit(const mbstate_t *ps) 79{ 80 |
81 return (ps == NULL || ((_BIG5State *)ps)->count == 0); | 81 return (ps == NULL || ((const _BIG5State *)ps)->count == 0); |
82} 83 84static __inline int 85_big5_check(u_int c) 86{ 87 88 c &= 0xff; 89 return ((c >= 0xa1 && c <= 0xfe) ? 2 : 1); --- 55 unchanged lines hidden --- | 82} 83 84static __inline int 85_big5_check(u_int c) 86{ 87 88 c &= 0xff; 89 return ((c >= 0xa1 && c <= 0xfe) ? 2 : 1); --- 55 unchanged lines hidden --- |