Deleted Added
sdiff udiff text old ( 252583 ) new ( 260003 )
full compact
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
447#if 0
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
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 ---