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

#define M17N_OBJECT_UNREF ( object   ) 

Value:

do {                                            \
    if (object)                                       \
      {                                               \
      if (((M17NObject *) (object))->ref_count_extended)    \
        m17n_object_unref (object);                   \
      else if (((M17NObject *) (object))->ref_count == 0)   \
        break;                                  \
      else if (((M17NObject *) (object))->ref_count > 1)    \
        ((M17NObject *) (object))->ref_count--;       \
      else                                      \
        {                                       \
          if (((M17NObject *) (object))->u.freer)           \
            (((M17NObject *) (object))->u.freer) (object);  \
          else                                  \
            free (object);                            \
        }                                       \
      }                                               \
  } while (0)
en Decrement the reference count of OBJECT if the count is greater than 0. In that case, if the count becomes 0, free OBJECT.

Definition at line 320 of file internal.h.

Referenced by mcharset__init(), and mdatabase__init().


Generated by  Doxygen 1.6.0   Back to index