Back to index

glibc  2.9
Defines
ibm943.c File Reference
#include <dlfcn.h>
#include <stdint.h>
#include <stdbool.h>
#include "ibm943.h"
#include <iconv/loop.c>
#include <iconv/skeleton.c>

Go to the source code of this file.

Defines

#define FROM   0
#define TO   1
#define CHARSET_NAME   "IBM943//"
#define FROM_LOOP   from_ibm943
#define TO_LOOP   to_ibm943
#define DEFINE_INIT   1
#define DEFINE_FINI   1
#define MIN_NEEDED_FROM   1
#define MAX_NEEDED_FROM   2
#define MIN_NEEDED_TO   4
#define MIN_NEEDED_INPUT   MIN_NEEDED_FROM
#define MAX_NEEDED_INPUT   MAX_NEEDED_FROM
#define MIN_NEEDED_OUTPUT   MIN_NEEDED_TO
#define LOOPFCT   FROM_LOOP
#define BODY
#define LOOP_NEED_FLAGS
#define ONEBYTE_BODY
#define MIN_NEEDED_INPUT   MIN_NEEDED_TO
#define MIN_NEEDED_OUTPUT   MIN_NEEDED_FROM
#define MAX_NEEDED_OUTPUT   MAX_NEEDED_FROM
#define LOOPFCT   TO_LOOP
#define BODY
#define LOOP_NEED_FLAGS

Define Documentation

#define BODY

Definition at line 127 of file ibm943.c.

#define BODY

Definition at line 127 of file ibm943.c.

#define CHARSET_NAME   "IBM943//"

Definition at line 30 of file ibm943.c.

#define DEFINE_FINI   1

Definition at line 36 of file ibm943.c.

#define DEFINE_INIT   1

Definition at line 35 of file ibm943.c.

#define FROM   0

Definition at line 26 of file ibm943.c.

#define FROM_LOOP   from_ibm943

Definition at line 31 of file ibm943.c.

#define LOOP_NEED_FLAGS

Definition at line 209 of file ibm943.c.

#define LOOP_NEED_FLAGS

Definition at line 209 of file ibm943.c.

#define LOOPFCT   FROM_LOOP

Definition at line 126 of file ibm943.c.

#define LOOPFCT   TO_LOOP

Definition at line 126 of file ibm943.c.

#define MAX_NEEDED_FROM   2

Definition at line 39 of file ibm943.c.

Definition at line 44 of file ibm943.c.

Definition at line 125 of file ibm943.c.

#define MIN_NEEDED_FROM   1

Definition at line 38 of file ibm943.c.

Definition at line 123 of file ibm943.c.

Definition at line 123 of file ibm943.c.

Definition at line 124 of file ibm943.c.

Definition at line 124 of file ibm943.c.

#define MIN_NEEDED_TO   4

Definition at line 40 of file ibm943.c.

#define ONEBYTE_BODY
Value:
{                                                                    \
    if (c == 0x80 || c == 0xa0 || c >= 0xe0)                                \
      return WEOF;                                                   \
    uint32_t res = __ibm943sb_to_ucs4[c];                            \
    if (res == 0 && c != 0)                                          \
      return WEOF;                                                   \
    if (res == 0xa5)                                                  \
      res = 0x5c;                                                    \
    else if (res == 0x203e)                                          \
      res = 0x7e;                                                    \
    return res;                                                             \
  }

Definition at line 107 of file ibm943.c.

#define TO   1

Definition at line 27 of file ibm943.c.

#define TO_LOOP   to_ibm943

Definition at line 32 of file ibm943.c.