Back to index

glibc  2.9
Defines | Enumerations
ibm930.c File Reference
#include <dlfcn.h>
#include <stdint.h>
#include <wchar.h>
#include <byteswap.h>
#include "ibm930.h"
#include <iconv/loop.c>
#include <iconv/skeleton.c>

Go to the source code of this file.

Defines

#define SI   0x0F /* Shift In, host code to turn DBCS off. */
#define SO   0x0E /* Shift Out, host code to turn DBCS on. */
#define CHARSET_NAME   "IBM930//"
#define FROM_LOOP   from_ibm930
#define TO_LOOP   to_ibm930
#define FROM_LOOP_MIN_NEEDED_FROM   1
#define FROM_LOOP_MAX_NEEDED_FROM   2
#define FROM_LOOP_MIN_NEEDED_TO   4
#define FROM_LOOP_MAX_NEEDED_TO   4
#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   , curcsp
#define DEFINE_INIT   1
#define DEFINE_FINI   1
#define EMIT_SHIFT_TO_INIT
#define SAVE_RESET_STATE(Save)
#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 *curcsp
#define INIT_PARAMS   int curcs = *curcsp & ~7
#define UPDATE_PARAMS   *curcsp = curcs
#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 *curcsp
#define INIT_PARAMS   int curcs = *curcsp & ~7
#define REINIT_PARAMS   curcs = *curcsp & ~7
#define UPDATE_PARAMS   *curcsp = curcs

Enumerations

enum  { sb = 0, db = 64 }

Define Documentation

#define BODY

Definition at line 191 of file ibm930.c.

#define BODY

Definition at line 191 of file ibm930.c.

#define CHARSET_NAME   "IBM930//"

Definition at line 32 of file ibm930.c.

#define DEFINE_FINI   1

Definition at line 50 of file ibm930.c.

#define DEFINE_INIT   1

Definition at line 49 of file ibm930.c.

Value:
if ((data->__statep->__count & ~7) != sb)                            \
    {                                                                \
      if (FROM_DIRECTION)                                            \
       data->__statep->__count &= 7;                                        \
      else                                                           \
       {                                                             \
         /* We are not in the initial state.  To switch back we have        \
            to emit `SI'.  */                                               \
         if (__builtin_expect (outbuf >= outend, 0))                        \
           /* We don't have enough room in the output buffer.  */           \
           status = __GCONV_FULL_OUTPUT;                             \
         else                                                        \
           {                                                         \
             /* Write out the shift sequence.  */                           \
             *outbuf++ = SI;                                                \
             data->__statep->__count &= 7;                                  \
           }                                                         \
       }                                                             \
    }

Definition at line 56 of file ibm930.c.

#define EXTRA_LOOP_ARGS   , curcsp

Definition at line 46 of file ibm930.c.

#define EXTRA_LOOP_DECLS   , int *curcsp

Definition at line 276 of file ibm930.c.

#define EXTRA_LOOP_DECLS   , int *curcsp

Definition at line 276 of file ibm930.c.

#define FROM_LOOP   from_ibm930

Definition at line 33 of file ibm930.c.

#define FROM_LOOP_MAX_NEEDED_FROM   2

Definition at line 36 of file ibm930.c.

#define FROM_LOOP_MAX_NEEDED_TO   4

Definition at line 38 of file ibm930.c.

#define FROM_LOOP_MIN_NEEDED_FROM   1

Definition at line 35 of file ibm930.c.

#define FROM_LOOP_MIN_NEEDED_TO   4

Definition at line 37 of file ibm930.c.

#define INIT_PARAMS   int curcs = *curcsp & ~7

Definition at line 277 of file ibm930.c.

#define INIT_PARAMS   int curcs = *curcsp & ~7

Definition at line 277 of file ibm930.c.

#define LOOP_NEED_FLAGS

Definition at line 275 of file ibm930.c.

#define LOOP_NEED_FLAGS

Definition at line 275 of file ibm930.c.

#define LOOPFCT   FROM_LOOP

Definition at line 190 of file ibm930.c.

#define LOOPFCT   TO_LOOP

Definition at line 190 of file ibm930.c.

Definition at line 187 of file ibm930.c.

Definition at line 187 of file ibm930.c.

Definition at line 189 of file ibm930.c.

Definition at line 189 of file ibm930.c.

Definition at line 186 of file ibm930.c.

Definition at line 186 of file ibm930.c.

Definition at line 188 of file ibm930.c.

Definition at line 188 of file ibm930.c.

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

Definition at line 43 of file ibm930.c.

#define REINIT_PARAMS   curcs = *curcsp & ~7

Definition at line 278 of file ibm930.c.

#define SAVE_RESET_STATE (   Save)
Value:
if (Save)                                                            \
    save_curcs = *curcsp;                                            \
  else                                                               \
    *curcsp = save_curcs

Definition at line 79 of file ibm930.c.

#define SI   0x0F /* Shift In, host code to turn DBCS off. */

Definition at line 28 of file ibm930.c.

#define SO   0x0E /* Shift Out, host code to turn DBCS on. */

Definition at line 29 of file ibm930.c.

#define TO_LOOP   to_ibm930

Definition at line 34 of file ibm930.c.

#define TO_LOOP_MAX_NEEDED_FROM   4

Definition at line 40 of file ibm930.c.

#define TO_LOOP_MAX_NEEDED_TO   3

Definition at line 42 of file ibm930.c.

#define TO_LOOP_MIN_NEEDED_FROM   4

Definition at line 39 of file ibm930.c.

#define TO_LOOP_MIN_NEEDED_TO   1

Definition at line 41 of file ibm930.c.

#define UPDATE_PARAMS   *curcsp = curcs

Definition at line 279 of file ibm930.c.

#define UPDATE_PARAMS   *curcsp = curcs

Definition at line 279 of file ibm930.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
sb 
db 

Definition at line 87 of file ibm930.c.

{
  sb = 0,
  db = 64