2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy is of the CDDL is also available via the Internet
9 * at http://www.illumos.org/license/CDDL.
13 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
20 * CHARMAP file handling for iconv.
23 /* Common header files. */
27 #include <sys/types.h>
37 extern int mb_cur_max
;
38 extern int mb_cur_min
;
49 void yyerror(const char *);
50 void errf(const char *, ...);
51 void warn(const char *, ...);
53 void reset_scanner(const char *);
54 void scan_to_eol(void);
56 /* charmap.c - CHARMAP handling */
57 void init_charmap(void);
58 void add_charmap(char *, char *);
59 void add_charmap_posix(void);
60 void add_charmap_range(char *, char *, char *);
62 void charmap_init(char *to
, char *fr
);
63 size_t cm_iconv(const char **iptr
, size_t *ileft
, char **optr
, size_t *oleft
);
64 void charmap_dump(void);
66 #define _(x) gettext(x)
68 #endif /* _CHARMAP_H */