str_Pool str_pool_create( void ) { poolInfo pool = xmalloc( sizeof( struct poolInfo ) ); pool->string = mem_create_strings(); pool->hash = hsh_create( NULL, NULL ); return pool; }
void rb_config_parse() { config_ctx ctx; /* Setup the hash tables properly */ g_state.poll_by_key = hsh_create(); memset(&ctx, 0, sizeof(ctx)); if(cfg_parse_dir(g_state.confdir, &ctx) == -1) exit(2); /* message already printed */ if(!g_state.polls) errx(1, "no config files found in config directory: %s", g_state.confdir); }
static void _tim_check( void ) { if (!_tim_Hash) _tim_Hash = hsh_create( NULL, NULL ); }