|
SDL
2.0
|
#include "geniconv.h"#include <uconv.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <os2.h>#include "os2cp.h"
Include dependency graph for os2iconv.c:Go to the source code of this file.
Data Structures | |
| struct | iuconv_obj |
Macros | |
| #define | ICONV_THREAD_SAFE 1 |
| #define | _ULS_CALLCONV_ |
| #define | CALLCONV _System |
| #define | INCL_DOSSEMAPHORES |
| #define | INCL_DOSERRORS |
| #define | min(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | MAX_CP_NAME_LEN 64 |
Functions | |
| static int | _createUconvObj (const char *code, UconvObject *uobj) |
| static int | uconv_open (const char *code, UconvObject *uobj) |
| iconv_t _System | os2_iconv_open (const char *tocode, const char *fromcode) |
| size_t _System | os2_iconv (iconv_t cd, char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) |
| int _System | os2_iconv_close (iconv_t cd) |
| #define _ULS_CALLCONV_ |
Definition at line 31 of file os2iconv.c.
| #define CALLCONV _System |
Definition at line 32 of file os2iconv.c.
| #define ICONV_THREAD_SAFE 1 |
Definition at line 28 of file os2iconv.c.
| #define INCL_DOSERRORS |
Definition at line 39 of file os2iconv.c.
| #define INCL_DOSSEMAPHORES |
Definition at line 38 of file os2iconv.c.
| #define MAX_CP_NAME_LEN 64 |
Definition at line 48 of file os2iconv.c.
|
static |
Definition at line 61 of file os2iconv.c.
References i, MAX_CP_NAME_LEN, and NULL.
Referenced by uconv_open().
| size_t _System os2_iconv | ( | iconv_t | cd, |
| char ** | inbuf, | ||
| size_t * | inbytesleft, | ||
| char ** | outbuf, | ||
| size_t * | outbytesleft | ||
| ) |
Definition at line 146 of file os2iconv.c.
References done, free, malloc, memcpy, min, and NULL.
Referenced by _init().
| iconv_t _System os2_iconv_open | ( | const char * | tocode, |
| const char * | fromcode | ||
| ) |
Definition at line 103 of file os2iconv.c.
References iuconv_obj::buf, iuconv_obj::buf_len, FALSE, iuconv_obj::hMtx, malloc, NULL, uconv_open(), iuconv_obj::uo_fromcode, and iuconv_obj::uo_tocode.
Referenced by _init().
|
static |
Definition at line 81 of file os2iconv.c.
References _createUconvObj(), cp, NULL, and os2cpFromName().
Referenced by os2_iconv_open().