1
2/* : : generated by proto : : */
3/* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_sparc_64bit/src/lib/libast/features/iconv by iffe version 2009-12-04 : : */
4
5#ifndef _def_iconv_ast
6#if !defined(__PROTO__)
7#  if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
8#    if defined(__cplusplus)
9#      define __LINKAGE__	"C"
10#    else
11#      define __LINKAGE__
12#    endif
13#    define __STDARG__
14#    define __PROTO__(x)	x
15#    define __OTORP__(x)
16#    define __PARAM__(n,o)	n
17#    if !defined(__STDC__) && !defined(__cplusplus)
18#      if !defined(c_plusplus)
19#      	define const
20#      endif
21#      define signed
22#      define void		int
23#      define volatile
24#      define __V_		char
25#    else
26#      define __V_		void
27#    endif
28#  else
29#    define __PROTO__(x)	()
30#    define __OTORP__(x)	x
31#    define __PARAM__(n,o)	o
32#    define __LINKAGE__
33#    define __V_		char
34#    define const
35#    define signed
36#    define void		int
37#    define volatile
38#  endif
39#  define __MANGLE__	__LINKAGE__
40#  if defined(__cplusplus) || defined(c_plusplus)
41#    define __VARARG__	...
42#  else
43#    define __VARARG__
44#  endif
45#  if defined(__STDARG__)
46#    define __VA_START__(p,a)	va_start(p,a)
47#  else
48#    define __VA_START__(p,a)	va_start(p)
49#  endif
50#  if !defined(__INLINE__)
51#    if defined(__cplusplus)
52#      define __INLINE__	extern __MANGLE__ inline
53#    else
54#      if defined(_WIN32) && !defined(__GNUC__)
55#      	define __INLINE__	__inline
56#      endif
57#    endif
58#  endif
59#endif
60#if !defined(__LINKAGE__)
61#define __LINKAGE__		/* 2004-08-11 transition */
62#endif
63
64#define _def_iconv_ast	1
65#define _sys_types	1	/* #include <sys/types.h> ok */
66#define _hdr_iconv	1	/* #include <iconv.h> ok */
67#define _lib_iconv_open	1	/* iconv_open() in default lib(s) */
68#define _lib_iconv_close	1	/* iconv_close() in default lib(s) */
69#define _lib_iconv	1	/* iconv() in default lib(s) */
70#define _nxt_iconv <../include/iconv.h>	/* include path for the native <iconv.h> */
71#define _nxt_iconv_str "../include/iconv.h"	/* include string for the native <iconv.h> */
72#include <ast_common.h>
73#include <ccode.h>
74#include <../include/iconv.h>	/* the native iconv.h */
75
76#define CC_ICONV	(-1)
77#define CC_UCS		(-2)
78#define CC_SCU		(-3)
79#define CC_UTF		(-4)
80#define CC_UME		(-5)
81
82#ifndef _ICONV_LIST_PRIVATE_
83#undef	iconv_t
84#define	iconv_t		_ast_iconv_t
85#undef	iconv_f
86#define	iconv_f		_ast_iconv_f
87#undef	iconv_list_t
88#define	iconv_list_t	_ast_iconv_list_t
89#undef	iconv_open
90#define iconv_open	_ast_iconv_open
91#undef	iconv
92#define	iconv		_ast_iconv
93#undef	iconv_close
94#define iconv_close	_ast_iconv_close
95#undef	iconv_list
96#define iconv_list	_ast_iconv_list
97#undef	iconv_move
98#define iconv_move	_ast_iconv_move
99#undef	iconv_name
100#define iconv_name	_ast_iconv_name
101#undef	iconv_write
102#define iconv_write	_ast_iconv_write
103#endif
104
105typedef Ccmap_t _ast_iconv_list_t;
106typedef __V_* _ast_iconv_t;
107typedef size_t (*_ast_iconv_f) __PROTO__((_ast_iconv_t, char**, size_t*, char**, size_t*));
108
109#if _BLD_ast && defined(__EXPORT__)
110#undef __MANGLE__
111#define __MANGLE__ __LINKAGE__		__EXPORT__
112#endif
113
114extern __MANGLE__ _ast_iconv_t	_ast_iconv_open __PROTO__((const char*, const char*));
115extern __MANGLE__ size_t		_ast_iconv __PROTO__((_ast_iconv_t, char**, size_t*, char**, size_t*));
116extern __MANGLE__ int		_ast_iconv_close __PROTO__((_ast_iconv_t));
117extern __MANGLE__ _ast_iconv_list_t*	_ast_iconv_list __PROTO__((_ast_iconv_list_t*));
118extern __MANGLE__ int		_ast_iconv_name __PROTO__((const char*, char*, size_t));
119#if _SFIO_H
120extern __MANGLE__ ssize_t		_ast_iconv_move __PROTO__((_ast_iconv_t, Sfio_t*, Sfio_t*, size_t, size_t*));
121extern __MANGLE__ ssize_t		_ast_iconv_write __PROTO__((_ast_iconv_t, Sfio_t*, char**, size_t*, size_t*));
122#else
123#if _SFSTDIO_H
124extern __MANGLE__ ssize_t		_ast_iconv_move __PROTO__((_ast_iconv_t, FILE*, FILE*, size_t, size_t*));
125extern __MANGLE__ ssize_t		_ast_iconv_write __PROTO__((_ast_iconv_t, FILE*, char**, size_t*, size_t*));
126#endif
127#endif
128
129#undef __MANGLE__
130#define __MANGLE__ __LINKAGE__
131
132#endif
133