Back to index

glibc  2.9
Defines
8bit-generic.c File Reference
#include <dlfcn.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 FROM_LOOP   from_generic
#define TO_LOOP   to_generic
#define DEFINE_INIT   1
#define DEFINE_FINI   1
#define MIN_NEEDED_FROM   1
#define MIN_NEEDED_TO   4
#define MIN_NEEDED_INPUT   MIN_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 LOOPFCT   TO_LOOP
#define BODY
#define LOOP_NEED_FLAGS

Define Documentation

#define BODY
Value:
{                                                                    \
    uint32_t ch = to_ucs4[*inptr];                                   \
                                                                     \
    if (HAS_HOLES && __builtin_expect (ch == L'\0', 0) && *inptr != '\0')     \
      {                                                                     \
       /* This is an illegal character.  */                                 \
       STANDARD_FROM_LOOP_ERR_HANDLER (1);                                  \
      }                                                                     \
									      \
    put32 (outptr, ch);                                                     \
    outptr += 4;                                                     \
    ++inptr;                                                         \
  }

Definition at line 66 of file 8bit-generic.c.

#define BODY
Value:
{                                                                    \
    uint32_t ch = get32 (inptr);                                     \
                                                                     \
    if (__builtin_expect (ch >= sizeof (from_ucs4) / sizeof (from_ucs4[0]), 0)\
       || (__builtin_expect (from_ucs4[ch], '\1') == '\0' && ch != 0))             \
      {                                                                     \
       UNICODE_TAG_HANDLER (ch, 4);                                         \
                                                                     \
       /* This is an illegal character.  */                                 \
       STANDARD_TO_LOOP_ERR_HANDLER (4);                             \
      }                                                                     \
                                                                     \
    *outptr++ = from_ucs4[ch];                                              \
    inptr += 4;                                                             \
  }

Definition at line 66 of file 8bit-generic.c.

#define DEFINE_FINI   1

Definition at line 26 of file 8bit-generic.c.

#define DEFINE_INIT   1

Definition at line 25 of file 8bit-generic.c.

#define FROM_LOOP   from_generic

Definition at line 23 of file 8bit-generic.c.

#define LOOP_NEED_FLAGS

Definition at line 82 of file 8bit-generic.c.

#define LOOP_NEED_FLAGS

Definition at line 82 of file 8bit-generic.c.

#define LOOPFCT   FROM_LOOP

Definition at line 65 of file 8bit-generic.c.

#define LOOPFCT   TO_LOOP

Definition at line 65 of file 8bit-generic.c.

#define MIN_NEEDED_FROM   1

Definition at line 27 of file 8bit-generic.c.

Definition at line 63 of file 8bit-generic.c.

Definition at line 63 of file 8bit-generic.c.

Definition at line 64 of file 8bit-generic.c.

Definition at line 64 of file 8bit-generic.c.

#define MIN_NEEDED_TO   4

Definition at line 28 of file 8bit-generic.c.

#define ONEBYTE_BODY
Value:
{                                                                    \
    uint32_t ch = to_ucs4[c];                                               \
                                                                     \
    if (HAS_HOLES && __builtin_expect (ch == L'\0', 0) && c != '\0')        \
      return WEOF;                                                   \
    else                                                             \
      return ch;                                                     \
  }

Definition at line 50 of file 8bit-generic.c.

#define TO_LOOP   to_generic

Definition at line 24 of file 8bit-generic.c.