mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 05:21:08 +01:00
In libiconv_modules, surround unused static _citrus_XXX_pack_state() and
_citrus_XXX_unpack_state() functions with #if 0, for now. MFC after: 3 days
This commit is contained in:
parent
13b535ff9c
commit
b61949dd20
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260003
@ -123,6 +123,7 @@ _citrus_BIG5_init_state(_BIG5EncodingInfo * __restrict ei __unused,
|
|||||||
memset(s, 0, sizeof(*s));
|
memset(s, 0, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_BIG5_pack_state(_BIG5EncodingInfo * __restrict ei __unused,
|
_citrus_BIG5_pack_state(_BIG5EncodingInfo * __restrict ei __unused,
|
||||||
@ -142,6 +143,7 @@ _citrus_BIG5_unpack_state(_BIG5EncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)s, pspriv, sizeof(*s));
|
memcpy((void *)s, pspriv, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static __inline int
|
static __inline int
|
||||||
_citrus_BIG5_check(_BIG5EncodingInfo *ei, unsigned int c)
|
_citrus_BIG5_check(_BIG5EncodingInfo *ei, unsigned int c)
|
||||||
|
@ -78,6 +78,7 @@ _citrus_DECHanyu_init_state(_DECHanyuEncodingInfo * __restrict ei __unused,
|
|||||||
psenc->chlen = 0;
|
psenc->chlen = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_DECHanyu_pack_state(_DECHanyuEncodingInfo * __restrict ei __unused,
|
_citrus_DECHanyu_pack_state(_DECHanyuEncodingInfo * __restrict ei __unused,
|
||||||
@ -96,6 +97,7 @@ _citrus_DECHanyu_unpack_state(_DECHanyuEncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
@ -169,6 +169,7 @@ _citrus_EUC_init_state(_EUCEncodingInfo *ei __unused, _EUCState *s)
|
|||||||
memset(s, 0, sizeof(*s));
|
memset(s, 0, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_EUC_pack_state(_EUCEncodingInfo *ei __unused, void *pspriv,
|
_citrus_EUC_pack_state(_EUCEncodingInfo *ei __unused, void *pspriv,
|
||||||
@ -186,6 +187,7 @@ _citrus_EUC_unpack_state(_EUCEncodingInfo *ei __unused, _EUCState *s,
|
|||||||
|
|
||||||
memcpy((void *)s, pspriv, sizeof(*s));
|
memcpy((void *)s, pspriv, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_citrus_EUC_mbrtowc_priv(_EUCEncodingInfo *ei, wchar_t *pwc, const char **s,
|
_citrus_EUC_mbrtowc_priv(_EUCEncodingInfo *ei, wchar_t *pwc, const char **s,
|
||||||
|
@ -136,6 +136,7 @@ _citrus_EUCTW_init_state(_EUCTWEncodingInfo * __restrict ei __unused,
|
|||||||
memset(s, 0, sizeof(*s));
|
memset(s, 0, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_EUCTW_pack_state(_EUCTWEncodingInfo * __restrict ei __unused,
|
_citrus_EUCTW_pack_state(_EUCTWEncodingInfo * __restrict ei __unused,
|
||||||
@ -153,6 +154,7 @@ _citrus_EUCTW_unpack_state(_EUCTWEncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)s, pspriv, sizeof(*s));
|
memcpy((void *)s, pspriv, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
@ -80,6 +80,7 @@ _citrus_GBK2K_init_state(_GBK2KEncodingInfo * __restrict ei __unused,
|
|||||||
memset(s, 0, sizeof(*s));
|
memset(s, 0, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_GBK2K_pack_state(_GBK2KEncodingInfo * __restrict ei __unused,
|
_citrus_GBK2K_pack_state(_GBK2KEncodingInfo * __restrict ei __unused,
|
||||||
@ -97,6 +98,7 @@ _citrus_GBK2K_unpack_state(_GBK2KEncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)s, pspriv, sizeof(*s));
|
memcpy((void *)s, pspriv, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static __inline bool
|
static __inline bool
|
||||||
_mb_singlebyte(int c)
|
_mb_singlebyte(int c)
|
||||||
|
@ -153,6 +153,7 @@ _citrus_HZ_init_state(_HZEncodingInfo * __restrict ei,
|
|||||||
psenc->inuse = INIT0(ei);
|
psenc->inuse = INIT0(ei);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_HZ_pack_state(_HZEncodingInfo * __restrict ei __unused,
|
_citrus_HZ_pack_state(_HZEncodingInfo * __restrict ei __unused,
|
||||||
@ -170,6 +171,7 @@ _citrus_HZ_unpack_state(_HZEncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_citrus_HZ_mbrtowc_priv(_HZEncodingInfo * __restrict ei,
|
_citrus_HZ_mbrtowc_priv(_HZEncodingInfo * __restrict ei,
|
||||||
|
@ -444,6 +444,7 @@ _citrus_ISO2022_init_state(_ISO2022EncodingInfo * __restrict ei,
|
|||||||
s->flags |= _ISO2022STATE_FLAG_INITIALIZED;
|
s->flags |= _ISO2022STATE_FLAG_INITIALIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_ISO2022_pack_state(_ISO2022EncodingInfo * __restrict ei __unused,
|
_citrus_ISO2022_pack_state(_ISO2022EncodingInfo * __restrict ei __unused,
|
||||||
@ -461,6 +462,7 @@ _citrus_ISO2022_unpack_state(_ISO2022EncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)s, pspriv, sizeof(*s));
|
memcpy((void *)s, pspriv, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
@ -80,6 +80,7 @@ _citrus_JOHAB_init_state(_JOHABEncodingInfo * __restrict ei __unused,
|
|||||||
psenc->chlen = 0;
|
psenc->chlen = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_JOHAB_pack_state(_JOHABEncodingInfo * __restrict ei __unused,
|
_citrus_JOHAB_pack_state(_JOHABEncodingInfo * __restrict ei __unused,
|
||||||
@ -97,6 +98,7 @@ _citrus_JOHAB_unpack_state(_JOHABEncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
@ -130,6 +130,7 @@ _citrus_MSKanji_init_state(_MSKanjiEncodingInfo * __restrict ei __unused,
|
|||||||
s->chlen = 0;
|
s->chlen = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_MSKanji_pack_state(_MSKanjiEncodingInfo * __restrict ei __unused,
|
_citrus_MSKanji_pack_state(_MSKanjiEncodingInfo * __restrict ei __unused,
|
||||||
@ -147,6 +148,7 @@ _citrus_MSKanji_unpack_state(_MSKanjiEncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)s, pspriv, sizeof(*s));
|
memcpy((void *)s, pspriv, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
|
@ -75,6 +75,7 @@ _citrus_UES_init_state(_UESEncodingInfo * __restrict ei __unused,
|
|||||||
psenc->chlen = 0;
|
psenc->chlen = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_UES_pack_state(_UESEncodingInfo * __restrict ei __unused,
|
_citrus_UES_pack_state(_UESEncodingInfo * __restrict ei __unused,
|
||||||
@ -92,6 +93,7 @@ _citrus_UES_unpack_state(_UESEncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static __inline int
|
static __inline int
|
||||||
to_int(int ch)
|
to_int(int ch)
|
||||||
|
@ -87,6 +87,7 @@ _citrus_UTF7_init_state(_UTF7EncodingInfo * __restrict ei __unused,
|
|||||||
memset((void *)s, 0, sizeof(*s));
|
memset((void *)s, 0, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_UTF7_pack_state(_UTF7EncodingInfo * __restrict ei __unused,
|
_citrus_UTF7_pack_state(_UTF7EncodingInfo * __restrict ei __unused,
|
||||||
@ -104,6 +105,7 @@ _citrus_UTF7_unpack_state(_UTF7EncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)s, pspriv, sizeof(*s));
|
memcpy((void *)s, pspriv, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static const char base64[] =
|
static const char base64[] =
|
||||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||||
|
@ -156,6 +156,7 @@ _citrus_UTF8_init_state(_UTF8EncodingInfo *ei __unused, _UTF8State *s)
|
|||||||
s->chlen = 0;
|
s->chlen = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_UTF8_pack_state(_UTF8EncodingInfo *ei __unused, void *pspriv,
|
_citrus_UTF8_pack_state(_UTF8EncodingInfo *ei __unused, void *pspriv,
|
||||||
@ -173,6 +174,7 @@ _citrus_UTF8_unpack_state(_UTF8EncodingInfo *ei __unused, _UTF8State *s,
|
|||||||
|
|
||||||
memcpy((void *)s, pspriv, sizeof(*s));
|
memcpy((void *)s, pspriv, sizeof(*s));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_citrus_UTF8_mbrtowc_priv(_UTF8EncodingInfo *ei, wchar_t *pwc, const char **s,
|
_citrus_UTF8_mbrtowc_priv(_UTF8EncodingInfo *ei, wchar_t *pwc, const char **s,
|
||||||
|
@ -230,6 +230,7 @@ _citrus_VIQR_init_state(_VIQREncodingInfo * __restrict ei __unused,
|
|||||||
psenc->chlen = 0;
|
psenc->chlen = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_VIQR_pack_state(_VIQREncodingInfo * __restrict ei __unused,
|
_citrus_VIQR_pack_state(_VIQREncodingInfo * __restrict ei __unused,
|
||||||
@ -247,6 +248,7 @@ _citrus_VIQR_unpack_state(_VIQREncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_citrus_VIQR_mbrtowc_priv(_VIQREncodingInfo * __restrict ei,
|
_citrus_VIQR_mbrtowc_priv(_VIQREncodingInfo * __restrict ei,
|
||||||
|
@ -85,6 +85,7 @@ _citrus_ZW_init_state(_ZWEncodingInfo * __restrict ei __unused,
|
|||||||
psenc->charset = NONE;
|
psenc->charset = NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static __inline void
|
static __inline void
|
||||||
/*ARGSUSED*/
|
/*ARGSUSED*/
|
||||||
_citrus_ZW_pack_state(_ZWEncodingInfo * __restrict ei __unused,
|
_citrus_ZW_pack_state(_ZWEncodingInfo * __restrict ei __unused,
|
||||||
@ -102,6 +103,7 @@ _citrus_ZW_unpack_state(_ZWEncodingInfo * __restrict ei __unused,
|
|||||||
|
|
||||||
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
memcpy((void *)psenc, pspriv, sizeof(*psenc));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
_citrus_ZW_mbrtowc_priv(_ZWEncodingInfo * __restrict ei,
|
_citrus_ZW_mbrtowc_priv(_ZWEncodingInfo * __restrict ei,
|
||||||
|
Loading…
Reference in New Issue
Block a user