iconv.h (256281) | iconv.h (258230) |
---|---|
1/* $FreeBSD: stable/10/include/iconv.h 255297 2013-09-06 09:46:44Z theraven $ */ | 1/* $FreeBSD: stable/10/include/iconv.h 258230 2013-11-16 18:40:44Z gjb $ */ |
2/* $NetBSD: iconv.h,v 1.6 2005/02/03 04:39:32 perry Exp $ */ 3 4/*- 5 * Copyright (c) 2003 Citrus Project, 6 * Copyright (c) 2009, 2010 Gabor Kovesdan <gabor@FreeBSD.org> 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 35#include <sys/cdefs.h> 36#include <sys/types.h> 37 38#include <wchar.h> 39 40#include <sys/cdefs.h> 41#include <sys/types.h> 42 | 2/* $NetBSD: iconv.h,v 1.6 2005/02/03 04:39:32 perry Exp $ */ 3 4/*- 5 * Copyright (c) 2003 Citrus Project, 6 * Copyright (c) 2009, 2010 Gabor Kovesdan <gabor@FreeBSD.org> 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 35#include <sys/cdefs.h> 36#include <sys/types.h> 37 38#include <wchar.h> 39 40#include <sys/cdefs.h> 41#include <sys/types.h> 42 |
43#include <_libiconv_compat.h> 44#ifdef __LIBICONV_COMPAT 45#define libiconv_open iconv_open 46#define libiconv_close iconv_close 47#define libiconv iconv 48#define libiconv_t iconv_t 49#endif | |
50#ifdef __cplusplus 51typedef bool __iconv_bool; 52#elif __STDC_VERSION__ >= 199901L 53typedef _Bool __iconv_bool; 54#else 55typedef int __iconv_bool; 56#endif 57 --- 13 unchanged lines hidden (view full) --- 71void __iconv_free_list(char **, size_t); 72size_t __iconv(iconv_t, const char **, size_t *, char **, 73 size_t *, __uint32_t, size_t *); 74#define __ICONV_F_HIDE_INVALID 0x0001 75 76/* 77 * GNU interfaces for iconv 78 */ | 43#ifdef __cplusplus 44typedef bool __iconv_bool; 45#elif __STDC_VERSION__ >= 199901L 46typedef _Bool __iconv_bool; 47#else 48typedef int __iconv_bool; 49#endif 50 --- 13 unchanged lines hidden (view full) --- 64void __iconv_free_list(char **, size_t); 65size_t __iconv(iconv_t, const char **, size_t *, char **, 66 size_t *, __uint32_t, size_t *); 67#define __ICONV_F_HIDE_INVALID 0x0001 68 69/* 70 * GNU interfaces for iconv 71 */ |
79#ifdef __LIBICONV_COMPAT 80#define libiconv_open_into iconv_open_into 81#define libiconvctl iconvctl 82#define libiconvlist iconvlist 83#define libiconv_set_relocation_prefix iconv_set_relocation_prefix 84#endif 85 | |
86/* We have iconvctl() */ 87#define _ICONV_VERSION 0x0108 88extern int _iconv_version; 89 | 72/* We have iconvctl() */ 73#define _ICONV_VERSION 0x0108 74extern int _iconv_version; 75 |
90#ifdef __LIBICONV_COMPAT 91#define _libiconv_version _iconv_version 92#define _LIBICONV_VERSION _ICONV_VERSION 93#endif 94 | |
95typedef struct { 96 void *spaceholder[64]; 97} iconv_allocation_t; 98 99int iconv_open_into(const char *, const char *, iconv_allocation_t *); 100void iconv_set_relocation_prefix(const char *orig_prefix, 101 const char *curr_prefix); 102 --- 53 unchanged lines hidden --- | 76typedef struct { 77 void *spaceholder[64]; 78} iconv_allocation_t; 79 80int iconv_open_into(const char *, const char *, iconv_allocation_t *); 81void iconv_set_relocation_prefix(const char *orig_prefix, 82 const char *curr_prefix); 83 --- 53 unchanged lines hidden --- |