Back to index

glibc  2.9
Defines | Enumerations
ibm1364.c File Reference
#include <dlfcn.h>
#include <stdint.h>
#include <wchar.h>
#include <byteswap.h>
#include <iconv/loop.c>
#include <iconv/skeleton.c>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DATA_HEADER   "ibm1364.h"
#define CHARSET_NAME   "IBM1364//"
#define FROM_LOOP   from_ibm1364
#define TO_LOOP   to_ibm1364
#define SB_TO_UCS4   __ibm1364sb_to_ucs4
#define DB_TO_UCS4_IDX   __ibm1364db_to_ucs4_idx
#define DB_TO_UCS4   __ibm1364db_to_ucs4
#define UCS4_TO_SB_IDX   __ucs4_to_ibm1364sb_idx
#define UCS4_TO_SB   __ucs4_to_ibm1364sb
#define UCS4_TO_DB_IDX   __ucs4_to_ibm1364db_idx
#define UCS4_TO_DB   __ucs4_to_ibm1364db
#define UCS_LIMIT   0xffff
#define SI   0x0F /* Shift In, host code to turn DBCS off. */
#define SO   0x0E /* Shift Out, host code to turn DBCS on. */
#define MIN_NEEDED_FROM   1
#define MAX_NEEDED_FROM   2
#define MIN_NEEDED_TO   4
#define MAX_NEEDED_TO   4
#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 SUB_COMBINED_UCS_FROM_IBM13XX
#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 EXTRA_LOOP_DECLS   , int *curcsp
#define INIT_PARAMS   int curcs = *curcsp & ~7
#define UPDATE_PARAMS   *curcsp = curcs
#define SUB_COMBINED_UCS_TO_IBM13XX
#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 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 299 of file ibm1364.c.

#define BODY

Definition at line 299 of file ibm1364.c.

#define CHARSET_NAME   "IBM1364//"

Definition at line 30 of file ibm1364.c.

#define DATA_HEADER   "ibm1364.h"

Definition at line 29 of file ibm1364.c.

Definition at line 35 of file ibm1364.c.

#define DB_TO_UCS4_IDX   __ibm1364db_to_ucs4_idx

Definition at line 34 of file ibm1364.c.

#define DEFINE_FINI   1

Definition at line 66 of file ibm1364.c.

#define DEFINE_INIT   1

Definition at line 65 of file ibm1364.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 72 of file ibm1364.c.

#define EXTRA_LOOP_ARGS   , curcsp

Definition at line 62 of file ibm1364.c.

#define EXTRA_LOOP_DECLS   , int *curcsp

Definition at line 386 of file ibm1364.c.

#define EXTRA_LOOP_DECLS   , int *curcsp

Definition at line 386 of file ibm1364.c.

#define FROM_LOOP   from_ibm1364

Definition at line 31 of file ibm1364.c.

#define INIT_PARAMS   int curcs = *curcsp & ~7

Definition at line 387 of file ibm1364.c.

#define INIT_PARAMS   int curcs = *curcsp & ~7

Definition at line 387 of file ibm1364.c.

#define LOOP_NEED_FLAGS

Definition at line 385 of file ibm1364.c.

#define LOOP_NEED_FLAGS

Definition at line 385 of file ibm1364.c.

#define LOOPFCT   FROM_LOOP

Definition at line 298 of file ibm1364.c.

#define LOOPFCT   TO_LOOP

Definition at line 298 of file ibm1364.c.

#define MAX_NEEDED_FROM   2

Definition at line 52 of file ibm1364.c.

Definition at line 150 of file ibm1364.c.

Definition at line 297 of file ibm1364.c.

#define MAX_NEEDED_TO   4

Definition at line 57 of file ibm1364.c.

#define MIN_NEEDED_FROM   1

Definition at line 51 of file ibm1364.c.

Definition at line 295 of file ibm1364.c.

Definition at line 295 of file ibm1364.c.

Definition at line 296 of file ibm1364.c.

Definition at line 296 of file ibm1364.c.

#define MIN_NEEDED_TO   4

Definition at line 53 of file ibm1364.c.

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

Definition at line 59 of file ibm1364.c.

#define REINIT_PARAMS   curcs = *curcsp & ~7

Definition at line 388 of file ibm1364.c.

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

Definition at line 95 of file ibm1364.c.

Definition at line 33 of file ibm1364.c.

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

Definition at line 47 of file ibm1364.c.

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

Definition at line 48 of file ibm1364.c.

Value:
{                                                                    \
    put32 (outptr, res);                                             \
    outptr += 4;                                                     \
  }

Definition at line 140 of file ibm1364.c.

Definition at line 290 of file ibm1364.c.

#define TO_LOOP   to_ibm1364

Definition at line 32 of file ibm1364.c.

Definition at line 39 of file ibm1364.c.

#define UCS4_TO_DB_IDX   __ucs4_to_ibm1364db_idx

Definition at line 38 of file ibm1364.c.

Definition at line 37 of file ibm1364.c.

#define UCS4_TO_SB_IDX   __ucs4_to_ibm1364sb_idx

Definition at line 36 of file ibm1364.c.

#define UCS_LIMIT   0xffff

Definition at line 40 of file ibm1364.c.

#define UPDATE_PARAMS   *curcsp = curcs

Definition at line 389 of file ibm1364.c.

#define UPDATE_PARAMS   *curcsp = curcs

Definition at line 389 of file ibm1364.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
sb 
db 

Definition at line 103 of file ibm1364.c.

{
  sb = 0,
  db = 64