Logo Search packages:      
Sourcecode: m17n-lib version File versions  Download package

#define MLIST_PREPEND1 ( list,
mem,
elt,
err   ) 

Value:

do {                                            \
    if ((list)->inc <= 0)                             \
      mdebug_hook ();                                 \
    if ((list)->size == (list)->used)                       \
      {                                               \
      (list)->size += (list)->inc;                    \
      MTABLE_REALLOC ((list)->mem, (list)->size, (err));    \
      }                                               \
    memmove ((list)->mem + 1, (list)->mem,                  \
           sizeof *((list)->mem) * ((list)->used));         \
    (list)->mem[0] = (elt);                           \
    (list)->used++;                                   \
  } while (0)

Definition at line 180 of file internal.h.


Generated by  Doxygen 1.6.0   Back to index