if (mai_initialized) { return TRUE; } mai_initialized = TRUE;
mai_init(void){    if (mai_initialized) {        return TRUE;    }    mai_initialized = TRUE;    //no MAI_LOG should come before this    if (!gMaiLog) {        gMaiLog = PR_NewLogModule("Mai");        PR_ASSERT(gMaiLog);    }    MAI_LOG_DEBUG(("Mozilla Atk Implementation initialized\n"));    g_type_init();    /* Initialize the MAI Utility class */    g_type_class_unref(g_type_class_ref(MAI_TYPE_UTIL));    return TRUE;}