Back to index

glibc  2.9
Defines
ibm932.c File Reference
#include <dlfcn.h>
#include <stdint.h>
#include <stdbool.h>
#include "ibm932.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   "IBM932//"
#define FROM_LOOP   from_ibm932
#define TO_LOOP   to_ibm932
#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 126 of file ibm932.c.

#define BODY

Definition at line 126 of file ibm932.c.

#define CHARSET_NAME   "IBM932//"

Definition at line 30 of file ibm932.c.

#define DEFINE_FINI   1

Definition at line 36 of file ibm932.c.

#define DEFINE_INIT   1

Definition at line 35 of file ibm932.c.

#define FROM   0

Definition at line 26 of file ibm932.c.

#define FROM_LOOP   from_ibm932

Definition at line 31 of file ibm932.c.

#define LOOP_NEED_FLAGS

Definition at line 208 of file ibm932.c.

#define LOOP_NEED_FLAGS

Definition at line 208 of file ibm932.c.

#define LOOPFCT   FROM_LOOP

Definition at line 125 of file ibm932.c.

#define LOOPFCT   TO_LOOP

Definition at line 125 of file ibm932.c.

#define MAX_NEEDED_FROM   2

Definition at line 39 of file ibm932.c.

Definition at line 44 of file ibm932.c.

Definition at line 124 of file ibm932.c.

#define MIN_NEEDED_FROM   1

Definition at line 38 of file ibm932.c.

Definition at line 122 of file ibm932.c.

Definition at line 122 of file ibm932.c.

Definition at line 123 of file ibm932.c.

Definition at line 123 of file ibm932.c.

#define MIN_NEEDED_TO   4

Definition at line 40 of file ibm932.c.

#define ONEBYTE_BODY
Value:
{                                                                    \
    if (c == 0x80 || c == 0xa0 || c >= 0xfd)                                \
      return WEOF;                                                   \
    uint32_t res = __ibm932sb_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 106 of file ibm932.c.

#define TO   1

Definition at line 27 of file ibm932.c.

#define TO_LOOP   to_ibm932

Definition at line 32 of file ibm932.c.