1N/A/***********************************************************************
1N/A* *
1N/A* This software is part of the ast package *
1N/A* Copyright (c) 1985-2011 AT&T Intellectual Property *
1N/A* and is licensed under the *
1N/A* Common Public License, Version 1.0 *
1N/A* by AT&T Intellectual Property *
1N/A* *
1N/A* A copy of the License is available at *
1N/A* http://www.opensource.org/licenses/cpl1.0.txt *
1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
1N/A* *
1N/A* Information and Software Systems Research *
1N/A* AT&T Research *
1N/A* Florham Park NJ *
1N/A* *
1N/A* Glenn Fowler <gsf@research.att.com> *
1N/A* David Korn <dgk@research.att.com> *
1N/A* Phong Vo <kpv@research.att.com> *
1N/A* *
1N/A***********************************************************************/
1N/A
1N/A/* : : generated by proto : : */
1N/A/* : : generated from /home/gisburn/ksh93/ast_ksh_20110208/build_sparc_64bit_opt/src/lib/libast/features/iconv by iffe version 2011-01-07 : : */
1N/A
1N/A#ifndef _def_iconv_ast
1N/A#if !defined(__PROTO__)
1N/A# if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
1N/A# if defined(__cplusplus)
1N/A# define __LINKAGE__ "C"
1N/A# else
1N/A# define __LINKAGE__
1N/A# endif
1N/A# define __STDARG__
1N/A# define __PROTO__(x) x
1N/A# define __OTORP__(x)
1N/A# define __PARAM__(n,o) n
1N/A# if !defined(__STDC__) && !defined(__cplusplus)
1N/A# if !defined(c_plusplus)
1N/A# define const
1N/A# endif
1N/A# define signed
1N/A# define void int
1N/A# define volatile
1N/A# define __V_ char
1N/A# else
1N/A# define __V_ void
1N/A# endif
1N/A# else
1N/A# define __PROTO__(x) ()
1N/A# define __OTORP__(x) x
1N/A# define __PARAM__(n,o) o
1N/A# define __LINKAGE__
1N/A# define __V_ char
1N/A# define const
1N/A# define signed
1N/A# define void int
1N/A# define volatile
1N/A# endif
1N/A# define __MANGLE__ __LINKAGE__
1N/A# if defined(__cplusplus) || defined(c_plusplus)
1N/A# define __VARARG__ ...
1N/A# else
1N/A# define __VARARG__
1N/A# endif
1N/A# if defined(__STDARG__)
1N/A# define __VA_START__(p,a) va_start(p,a)
1N/A# else
1N/A# define __VA_START__(p,a) va_start(p)
1N/A# endif
1N/A# if !defined(__INLINE__)
1N/A# if defined(__cplusplus)
1N/A# define __INLINE__ extern __MANGLE__ inline
1N/A# else
1N/A# if defined(_WIN32) && !defined(__GNUC__)
1N/A# define __INLINE__ __inline
1N/A# endif
1N/A# endif
1N/A# endif
1N/A#endif
1N/A#if !defined(__LINKAGE__)
1N/A#define __LINKAGE__ /* 2004-08-11 transition */
1N/A#endif
1N/A
1N/A#define _def_iconv_ast 1
1N/A#define _sys_types 1 /* #include <sys/types.h> ok */
1N/A#define _hdr_iconv 1 /* #include <iconv.h> ok */
1N/A#define _lib_iconv_open 1 /* iconv_open() in default lib(s) */
1N/A#define _lib_iconv_close 1 /* iconv_close() in default lib(s) */
1N/A#define _lib_iconv 1 /* iconv() in default lib(s) */
1N/A#define _nxt_iconv <../include/iconv.h> /* include path for the native <iconv.h> */
1N/A#define _nxt_iconv_str "../include/iconv.h" /* include string for the native <iconv.h> */
1N/A#include <ast_common.h>
1N/A#include <ccode.h>
1N/A#include <../include/iconv.h> /* the native iconv.h */
1N/A
1N/A#define ICONV_VERSION 20110111L
1N/A
1N/A#define ICONV_FATAL 0x02
1N/A#define ICONV_OMIT 0x04
1N/A
1N/A#define CC_ICONV (-1)
1N/A#define CC_UCS (-2)
1N/A#define CC_SCU (-3)
1N/A#define CC_UTF (-4)
1N/A#define CC_UME (-5)
1N/A
1N/A#ifndef _ICONV_LIST_PRIVATE_
1N/A#undef iconv_t
1N/A#define iconv_t _ast_iconv_t
1N/A#undef iconv_f
1N/A#define iconv_f _ast_iconv_f
1N/A#undef iconv_list_t
1N/A#define iconv_list_t _ast_iconv_list_t
1N/A#undef iconv_open
1N/A#define iconv_open _ast_iconv_open
1N/A#undef iconv
1N/A#define iconv _ast_iconv
1N/A#undef iconv_close
1N/A#define iconv_close _ast_iconv_close
1N/A#undef iconv_list
1N/A#define iconv_list _ast_iconv_list
1N/A#undef iconv_move
1N/A#define iconv_move _ast_iconv_move
1N/A#undef iconv_name
1N/A#define iconv_name _ast_iconv_name
1N/A#undef iconv_write
1N/A#define iconv_write _ast_iconv_write
1N/A#endif
1N/A
1N/Atypedef int (*Iconv_error_f) __PROTO__((__V_*, __V_*, int, ...));
1N/A
1N/Atypedef struct Iconv_disc_s
1N/A{
1N/A uint32_t version;
1N/A Iconv_error_f errorf;
1N/A size_t errors;
1N/A uint32_t flags;
1N/A int fill;
1N/A} Iconv_disc_t;
1N/A
1N/Atypedef Ccmap_t _ast_iconv_list_t;
1N/Atypedef __V_* _ast_iconv_t;
1N/Atypedef size_t (*_ast_iconv_f) __PROTO__((_ast_iconv_t, char**, size_t*, char**, size_t*));
1N/A
1N/A#define iconv_init(d,e) (memset(d,0,sizeof(*(d))),(d)->version=ICONV_VERSION,(d)->errorf=(Iconv_error_f)(e),(d)->fill=(-1))
1N/A
1N/A#if _BLD_ast && defined(__EXPORT__)
1N/A#undef __MANGLE__
1N/A#define __MANGLE__ __LINKAGE__ __EXPORT__
1N/A#endif
1N/A
1N/Aextern __MANGLE__ _ast_iconv_t _ast_iconv_open __PROTO__((const char*, const char*));
1N/Aextern __MANGLE__ size_t _ast_iconv __PROTO__((_ast_iconv_t, char**, size_t*, char**, size_t*));
1N/Aextern __MANGLE__ int _ast_iconv_close __PROTO__((_ast_iconv_t));
1N/Aextern __MANGLE__ _ast_iconv_list_t* _ast_iconv_list __PROTO__((_ast_iconv_list_t*));
1N/Aextern __MANGLE__ int _ast_iconv_name __PROTO__((const char*, char*, size_t));
1N/A#if _SFIO_H
1N/Aextern __MANGLE__ ssize_t _ast_iconv_move __PROTO__((_ast_iconv_t, Sfio_t*, Sfio_t*, size_t, Iconv_disc_t*));
1N/Aextern __MANGLE__ ssize_t _ast_iconv_write __PROTO__((_ast_iconv_t, Sfio_t*, char**, size_t*, Iconv_disc_t*));
1N/A#else
1N/A#if _SFSTDIO_H
1N/Aextern __MANGLE__ ssize_t _ast_iconv_move __PROTO__((_ast_iconv_t, FILE*, FILE*, size_t, Iconv_disc_t*));
1N/Aextern __MANGLE__ ssize_t _ast_iconv_write __PROTO__((_ast_iconv_t, FILE*, char**, size_t*, Iconv_disc_t*));
1N/A#endif
1N/A#endif
1N/A
1N/A#undef __MANGLE__
1N/A#define __MANGLE__ __LINKAGE__
1N/A
1N/A#endif