void pd_init(void) { if (!pd_this) pd_this = pdinstance_new(); mess_init(); obj_init(); conf_init(); glob_init(); garray_init(); }
void pd_init(void) { static int initted = 0; if (initted) return; initted = 1; #ifdef PDINSTANCE pd_instances = (t_pdinstance **)getbytes(sizeof(*pd_instances)); pd_instances[0] = &pd_maininstance; pd_ninstances = 1; #endif mess_init(); sys_lock(); obj_init(); conf_init(); glob_init(); garray_init(); sys_unlock(); }