Deleted Added
full compact
citrus_utf7.c (258316) citrus_utf7.c (260003)
1/* $FreeBSD: head/lib/libiconv_modules/UTF7/citrus_utf7.c 258316 2013-11-18 18:14:23Z tijl $ */
1/* $FreeBSD: head/lib/libiconv_modules/UTF7/citrus_utf7.c 260003 2013-12-28 13:49:48Z dim $ */
2/* $NetBSD: citrus_utf7.c,v 1.5 2006/08/23 12:57:24 tnozaki Exp $ */
3
4/*-
5 * Copyright (c)2004, 2005 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

--- 72 unchanged lines hidden (view full) ---

82/*ARGSUSED*/
83_citrus_UTF7_init_state(_UTF7EncodingInfo * __restrict ei __unused,
84 _UTF7State * __restrict s)
85{
86
87 memset((void *)s, 0, sizeof(*s));
88}
89
2/* $NetBSD: citrus_utf7.c,v 1.5 2006/08/23 12:57:24 tnozaki Exp $ */
3
4/*-
5 * Copyright (c)2004, 2005 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

--- 72 unchanged lines hidden (view full) ---

82/*ARGSUSED*/
83_citrus_UTF7_init_state(_UTF7EncodingInfo * __restrict ei __unused,
84 _UTF7State * __restrict s)
85{
86
87 memset((void *)s, 0, sizeof(*s));
88}
89
90#if 0
90static __inline void
91/*ARGSUSED*/
92_citrus_UTF7_pack_state(_UTF7EncodingInfo * __restrict ei __unused,
93 void *__restrict pspriv, const _UTF7State * __restrict s)
94{
95
96 memcpy(pspriv, (const void *)s, sizeof(*s));
97}
98
99static __inline void
100/*ARGSUSED*/
101_citrus_UTF7_unpack_state(_UTF7EncodingInfo * __restrict ei __unused,
102 _UTF7State * __restrict s, const void * __restrict pspriv)
103{
104
105 memcpy((void *)s, pspriv, sizeof(*s));
106}
91static __inline void
92/*ARGSUSED*/
93_citrus_UTF7_pack_state(_UTF7EncodingInfo * __restrict ei __unused,
94 void *__restrict pspriv, const _UTF7State * __restrict s)
95{
96
97 memcpy(pspriv, (const void *)s, sizeof(*s));
98}
99
100static __inline void
101/*ARGSUSED*/
102_citrus_UTF7_unpack_state(_UTF7EncodingInfo * __restrict ei __unused,
103 _UTF7State * __restrict s, const void * __restrict pspriv)
104{
105
106 memcpy((void *)s, pspriv, sizeof(*s));
107}
108#endif
107
108static const char base64[] =
109 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
110 "abcdefghijklmnopqrstuvwxyz"
111 "0123456789+/";
112
113static const char direct[] =
114 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

--- 386 unchanged lines hidden ---
109
110static const char base64[] =
111 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
112 "abcdefghijklmnopqrstuvwxyz"
113 "0123456789+/";
114
115static const char direct[] =
116 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

--- 386 unchanged lines hidden ---