Statistics
| Revision:

root / tmp / org.txm.statsengine.r.core.win32 / res / win32 / include / iconv.h @ 2486

History | View | Annotate | Download (2 kB)

1
/* Copyright (C) 1999-2003, 2005-2006 Free Software Foundation, Inc.
2
   This file is part of the GNU LIBICONV Library.
3

4
   The GNU LIBICONV Library is free software; you can redistribute it
5
   and/or modify it under the terms of the GNU Library General Public
6
   License as published by the Free Software Foundation; either version 2
7
   of the License, or (at your option) any later version.
8

9
   The GNU LIBICONV Library is distributed in the hope that it will be
10
   useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
11
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
   Library General Public License for more details.
13

14
   You should have received a copy of the GNU Library General Public
15
   License along with the GNU LIBICONV Library; see the file COPYING.LIB.
16
   If not, write to the Free Software Foundation, Inc., 51 Franklin Street,
17
   Fifth Floor, Boston, MA 02110-1301, USA.  */
18

    
19
/* When installed, this file is called "iconv.h". */
20

    
21
/* A subset for use in R */
22

    
23
#ifndef _LIBICONV_H
24
#define _LIBICONV_H
25

    
26

    
27
#ifdef BUILDING_LIBICONV
28
#define LIBICONV_DLL_EXPORTED __declspec(dllexport)
29
#else
30
#define LIBICONV_DLL_EXPORTED __declspec(dllimport)
31
#endif
32
//#define LIBICONV_DLL_EXPORTED
33

    
34
#undef iconv_t
35
#define iconv_t libiconv_t
36
typedef void* iconv_t;
37

    
38
/* Get size_t declaration */
39
#include <stddef.h>
40

    
41

    
42
#ifdef __cplusplus
43
extern "C" {
44
#endif
45

    
46

    
47
#define iconv_open libiconv_open
48
extern LIBICONV_DLL_EXPORTED 
49
iconv_t iconv_open (const char* tocode, const char* fromcode);
50

    
51
#define iconv libiconv
52
extern LIBICONV_DLL_EXPORTED 
53
size_t iconv (iconv_t cd, const char* * inbuf, size_t *inbytesleft, 
54
              char* * outbuf, size_t *outbytesleft);
55

    
56
#define iconv_close libiconv_close
57
extern LIBICONV_DLL_EXPORTED int iconv_close (iconv_t cd);
58

    
59
#define iconvlist libiconvlist
60
extern LIBICONV_DLL_EXPORTED 
61
void iconvlist (int (*do_one) (unsigned int namescount,
62
                               const char * const * names,
63
                               void* data),
64
                void* daXta);
65

    
66
#ifdef __cplusplus
67
}
68
#endif
69

    
70

    
71
#endif /* _LIBICONV_H */