ixlen.h (2fb4f839f3fc72ce2bab12f9ba4760f97f73e97f) ixlen.h (d39bd2c1388b520fcba9abed1932acacead60fba)
1/*
2 * Copyright (c) 2020 Proofpoint, Inc. and its suppliers.
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 */

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

22 else ++xlen; \
23 } while (0)
24
25extern int ilenx __P((const char *));
26extern int xleni __P((const char *));
27
28# if USE_EAI
29extern bool asciistr __P((const char *));
1/*
2 * Copyright (c) 2020 Proofpoint, Inc. and its suppliers.
3 * All rights reserved.
4 *
5 * By using this file, you agree to the terms and conditions set
6 * forth in the LICENSE file which can be found at the top level of
7 * the sendmail distribution.
8 */

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

22 else ++xlen; \
23 } while (0)
24
25extern int ilenx __P((const char *));
26extern int xleni __P((const char *));
27
28# if USE_EAI
29extern bool asciistr __P((const char *));
30extern bool asciinstr __P((const char *, size_t));
30extern int uxtext_unquote __P((const char *, char *, int));
31extern char *sm_lowercase __P((const char *));
32extern bool utf8_valid __P((const char *, size_t));
33# endif
34
35#else /* _FFR_8BITENVADDR */
36# define XLENDECL int xlen = 0;
37# define XLENRESET xlen = 0
38# define XLEN(c) ++xlen
39# define ilenx(str) strlen(str)
40# define xleni(str) strlen(str)
41#endif /* _FFR_8BITENVADDR */
42
43#endif /* ! _SM_IXLEN_H */
31extern int uxtext_unquote __P((const char *, char *, int));
32extern char *sm_lowercase __P((const char *));
33extern bool utf8_valid __P((const char *, size_t));
34# endif
35
36#else /* _FFR_8BITENVADDR */
37# define XLENDECL int xlen = 0;
38# define XLENRESET xlen = 0
39# define XLEN(c) ++xlen
40# define ilenx(str) strlen(str)
41# define xleni(str) strlen(str)
42#endif /* _FFR_8BITENVADDR */
43
44#endif /* ! _SM_IXLEN_H */