citrus_iso2022.c (252583) | citrus_iso2022.c (260003) |
---|---|
1/* $FreeBSD: head/lib/libiconv_modules/ISO2022/citrus_iso2022.c 252583 2013-07-03 18:27:45Z peter $ */ | 1/* $FreeBSD: head/lib/libiconv_modules/ISO2022/citrus_iso2022.c 260003 2013-12-28 13:49:48Z dim $ */ |
2/* $NetBSD: citrus_iso2022.c,v 1.19 2008/06/14 16:01:07 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)1999, 2002 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 --- 429 unchanged lines hidden (view full) --- 439 s->g[i].type = ei->initg[i].type; 440 s->g[i].final = ei->initg[i].final; 441 s->g[i].interm = ei->initg[i].interm; 442 } 443 s->singlegl = s->singlegr = -1; 444 s->flags |= _ISO2022STATE_FLAG_INITIALIZED; 445} 446 | 2/* $NetBSD: citrus_iso2022.c,v 1.19 2008/06/14 16:01:07 tnozaki Exp $ */ 3 4/*- 5 * Copyright (c)1999, 2002 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 --- 429 unchanged lines hidden (view full) --- 439 s->g[i].type = ei->initg[i].type; 440 s->g[i].final = ei->initg[i].final; 441 s->g[i].interm = ei->initg[i].interm; 442 } 443 s->singlegl = s->singlegr = -1; 444 s->flags |= _ISO2022STATE_FLAG_INITIALIZED; 445} 446 |
447#if 0 |
|
447static __inline void 448/*ARGSUSED*/ 449_citrus_ISO2022_pack_state(_ISO2022EncodingInfo * __restrict ei __unused, 450 void * __restrict pspriv, const _ISO2022State * __restrict s) 451{ 452 453 memcpy(pspriv, (const void *)s, sizeof(*s)); 454} 455 456static __inline void 457/*ARGSUSED*/ 458_citrus_ISO2022_unpack_state(_ISO2022EncodingInfo * __restrict ei __unused, 459 _ISO2022State * __restrict s, const void * __restrict pspriv) 460{ 461 462 memcpy((void *)s, pspriv, sizeof(*s)); 463} | 448static __inline void 449/*ARGSUSED*/ 450_citrus_ISO2022_pack_state(_ISO2022EncodingInfo * __restrict ei __unused, 451 void * __restrict pspriv, const _ISO2022State * __restrict s) 452{ 453 454 memcpy(pspriv, (const void *)s, sizeof(*s)); 455} 456 457static __inline void 458/*ARGSUSED*/ 459_citrus_ISO2022_unpack_state(_ISO2022EncodingInfo * __restrict ei __unused, 460 _ISO2022State * __restrict s, const void * __restrict pspriv) 461{ 462 463 memcpy((void *)s, pspriv, sizeof(*s)); 464} |
465#endif |
|
464 465static int 466/*ARGSUSED*/ 467_citrus_ISO2022_encoding_module_init(_ISO2022EncodingInfo * __restrict ei, 468 const void * __restrict var, size_t lenvar) 469{ 470 471 return (_citrus_ISO2022_parse_variable(ei, var, lenvar)); --- 818 unchanged lines hidden --- | 466 467static int 468/*ARGSUSED*/ 469_citrus_ISO2022_encoding_module_init(_ISO2022EncodingInfo * __restrict ei, 470 const void * __restrict var, size_t lenvar) 471{ 472 473 return (_citrus_ISO2022_parse_variable(ei, var, lenvar)); --- 818 unchanged lines hidden --- |