*** empty log message ***
[m17n/m17n-lib.git] / src / internal.h
index 1dd0782..3354e29 100644 (file)
     longer version of internal.h description 
 */
 
+extern int m17n__core_initialized;
+extern int m17n__shell_initialized;
+extern int m17n__gui_initialized;
+
 extern int mdebug_hook ();
 
 /** Return with code RET while setting merror_code to ERR.  */
@@ -329,6 +333,7 @@ typedef struct
              (((M17NObject *) (object))->u.freer) (object);    \
            else                                                \
              free (object);                                    \
+           (object) = NULL;                                    \
          }                                                     \
       }                                                                \
   } while (0)
@@ -505,6 +510,12 @@ extern void mdebug__print_time ();
       fprintf (stderr, (fmt), (arg1), (arg2), (arg3), (arg4)); \
   } while (0)
 
+#define MDEBUG_PRINT5(fmt, arg1, arg2, arg3, arg4, arg5)               \
+  do {                                                                 \
+    if (mdebug__flag & mdebug_mask)                                    \
+      fprintf (stderr, (fmt), (arg1), (arg2), (arg3), (arg4), (arg5)); \
+  } while (0)
+
 
 #define MDEBUG_PUSH_TIME()             \
   do {                                 \