Back to index

glibc  2.9
Defines | Variables
euc-jisx0213.c File Reference
#include <dlfcn.h>
#include <stdint.h>
#include <gconv.h>
#include "jisx0213.h"
#include <iconv/loop.c>
#include <iconv/skeleton.c>

Go to the source code of this file.

Defines

#define CHARSET_NAME   "EUC-JISX0213//"
#define FROM_LOOP   from_euc_jisx0213
#define TO_LOOP   to_euc_jisx0213
#define DEFINE_INIT   1
#define DEFINE_FINI   1
#define FROM_LOOP_MIN_NEEDED_FROM   1
#define FROM_LOOP_MAX_NEEDED_FROM   3
#define FROM_LOOP_MIN_NEEDED_TO   4
#define FROM_LOOP_MAX_NEEDED_TO   8
#define TO_LOOP_MIN_NEEDED_FROM   4
#define TO_LOOP_MAX_NEEDED_FROM   4
#define TO_LOOP_MIN_NEEDED_TO   1
#define TO_LOOP_MAX_NEEDED_TO   3
#define PREPARE_LOOP
#define EXTRA_LOOP_ARGS   , statep
#define SAVE_RESET_STATE(Save)
#define EMIT_SHIFT_TO_INIT
#define MIN_NEEDED_INPUT   FROM_LOOP_MIN_NEEDED_FROM
#define MAX_NEEDED_INPUT   FROM_LOOP_MAX_NEEDED_FROM
#define MIN_NEEDED_OUTPUT   FROM_LOOP_MIN_NEEDED_TO
#define MAX_NEEDED_OUTPUT   FROM_LOOP_MAX_NEEDED_TO
#define LOOPFCT   FROM_LOOP
#define BODY
#define LOOP_NEED_FLAGS
#define EXTRA_LOOP_DECLS   , int *statep
#define ONEBYTE_BODY
#define COMP_TABLE_IDX_02E5   0
#define COMP_TABLE_LEN_02E5   1
#define COMP_TABLE_IDX_02E9   (COMP_TABLE_IDX_02E5 + COMP_TABLE_LEN_02E5)
#define COMP_TABLE_LEN_02E9   1
#define COMP_TABLE_IDX_0300   (COMP_TABLE_IDX_02E9 + COMP_TABLE_LEN_02E9)
#define COMP_TABLE_LEN_0300   5
#define COMP_TABLE_IDX_0301   (COMP_TABLE_IDX_0300 + COMP_TABLE_LEN_0300)
#define COMP_TABLE_LEN_0301   4
#define COMP_TABLE_IDX_309A   (COMP_TABLE_IDX_0301 + COMP_TABLE_LEN_0301)
#define COMP_TABLE_LEN_309A   14
#define MIN_NEEDED_INPUT   TO_LOOP_MIN_NEEDED_FROM
#define MAX_NEEDED_INPUT   TO_LOOP_MAX_NEEDED_FROM
#define MIN_NEEDED_OUTPUT   TO_LOOP_MIN_NEEDED_TO
#define MAX_NEEDED_OUTPUT   TO_LOOP_MAX_NEEDED_TO
#define LOOPFCT   TO_LOOP
#define BODY
#define LOOP_NEED_FLAGS
#define EXTRA_LOOP_DECLS   , int *statep

Variables

struct {
uint16_t base
uint16_t composed
comp_table_data []

Define Documentation

#define BODY

Definition at line 294 of file euc-jisx0213.c.

#define BODY

Definition at line 294 of file euc-jisx0213.c.

#define CHARSET_NAME   "EUC-JISX0213//"

Definition at line 42 of file euc-jisx0213.c.

#define COMP_TABLE_IDX_02E5   0
#define COMP_TABLE_LEN_02E5   1
#define COMP_TABLE_LEN_02E9   1
#define COMP_TABLE_LEN_0300   5
#define COMP_TABLE_LEN_0301   4
#define COMP_TABLE_LEN_309A   14
#define DEFINE_FINI   1

Definition at line 46 of file euc-jisx0213.c.

#define DEFINE_INIT   1

Definition at line 45 of file euc-jisx0213.c.

Value:
if (data->__statep->__count != 0)                                    \
    {                                                                \
      if (FROM_DIRECTION)                                            \
       {                                                             \
         if (__builtin_expect (outbuf + 4 <= outend, 1))                    \
           {                                                         \
             /* Write out the last character.  */                           \
             *((uint32_t *) outbuf) = data->__statep->__count >> 3;         \
             outbuf += sizeof (uint32_t);                            \
             data->__statep->__count = 0;                            \
           }                                                         \
         else                                                        \
           /* We don't have enough room in the output buffer.  */           \
           status = __GCONV_FULL_OUTPUT;                             \
       }                                                             \
      else                                                           \
       {                                                             \
         if (__builtin_expect (outbuf + 2 <= outend, 1))                    \
           {                                                         \
             /* Write out the last character.  */                           \
	      uint32_t lasttwo = data->__statep->__count >> 3;              \
             *outbuf++ = (lasttwo >> 8) & 0xff;                      \
             *outbuf++ = lasttwo & 0xff;                             \
             data->__statep->__count = 0;                            \
           }                                                         \
         else                                                        \
           /* We don't have enough room in the output buffer.  */           \
           status = __GCONV_FULL_OUTPUT;                             \
       }                                                             \
    }

Definition at line 78 of file euc-jisx0213.c.

#define EXTRA_LOOP_ARGS   , statep

Definition at line 58 of file euc-jisx0213.c.

#define EXTRA_LOOP_DECLS   , int *statep

Definition at line 415 of file euc-jisx0213.c.

#define EXTRA_LOOP_DECLS   , int *statep

Definition at line 415 of file euc-jisx0213.c.

#define FROM_LOOP   from_euc_jisx0213

Definition at line 43 of file euc-jisx0213.c.

#define FROM_LOOP_MAX_NEEDED_FROM   3

Definition at line 48 of file euc-jisx0213.c.

#define FROM_LOOP_MAX_NEEDED_TO   8

Definition at line 50 of file euc-jisx0213.c.

#define FROM_LOOP_MIN_NEEDED_FROM   1

Definition at line 47 of file euc-jisx0213.c.

#define FROM_LOOP_MIN_NEEDED_TO   4

Definition at line 49 of file euc-jisx0213.c.

#define LOOP_NEED_FLAGS

Definition at line 414 of file euc-jisx0213.c.

#define LOOP_NEED_FLAGS

Definition at line 414 of file euc-jisx0213.c.

#define LOOPFCT   FROM_LOOP

Definition at line 293 of file euc-jisx0213.c.

#define LOOPFCT   TO_LOOP

Definition at line 293 of file euc-jisx0213.c.

Definition at line 290 of file euc-jisx0213.c.

Definition at line 290 of file euc-jisx0213.c.

Definition at line 292 of file euc-jisx0213.c.

Definition at line 292 of file euc-jisx0213.c.

Definition at line 289 of file euc-jisx0213.c.

Definition at line 289 of file euc-jisx0213.c.

Definition at line 291 of file euc-jisx0213.c.

Definition at line 291 of file euc-jisx0213.c.

#define ONEBYTE_BODY
Value:
{                                                                    \
    if (c < 0x80)                                                    \
      return c;                                                             \
    else                                                             \
      return WEOF;                                                   \
  }

Definition at line 233 of file euc-jisx0213.c.

#define PREPARE_LOOP
Value:
int saved_state;                                                     \
  int *statep = &data->__statep->__count;

Definition at line 55 of file euc-jisx0213.c.

#define SAVE_RESET_STATE (   Save)
Value:
if (Save)                                                            \
    saved_state = *statep;                                           \
  else                                                               \
    *statep = saved_state

Definition at line 63 of file euc-jisx0213.c.

#define TO_LOOP   to_euc_jisx0213

Definition at line 44 of file euc-jisx0213.c.

#define TO_LOOP_MAX_NEEDED_FROM   4

Definition at line 52 of file euc-jisx0213.c.

#define TO_LOOP_MAX_NEEDED_TO   3

Definition at line 54 of file euc-jisx0213.c.

#define TO_LOOP_MIN_NEEDED_FROM   4

Definition at line 51 of file euc-jisx0213.c.

#define TO_LOOP_MIN_NEEDED_TO   1

Definition at line 53 of file euc-jisx0213.c.


Variable Documentation

struct { ... } comp_table_data[] [static]