void src_create( void ) { if (Lines) err_fatal( __func__, "Source manager already created\n" ); Lines = xmalloc( (Count = INCREMENT) * sizeof( char * ) ); StringHeap = mem_create_strings(); InfoHeap = mem_create_objects( sizeof( struct source ) ); }
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; }