@@ -618,7 +618,7 @@ stat_col(void)
618618 entries. The real number of entries which the table can hold is
619619 the nearest power of two for SIZE. */
620620st_table *
621- st_init_table_with_size (const struct st_hash_type * type , st_functions_t * functions , st_index_t size )
621+ st_init_table_with_size (const struct st_hash_type * type , st_index_t size )
622622{
623623 st_table * tab ;
624624 int n ;
@@ -642,7 +642,6 @@ st_init_table_with_size(const struct st_hash_type *type, st_functions_t *functio
642642 return NULL ;
643643#endif
644644 tab = (st_table * ) malloc (sizeof (st_table ));
645- tab -> functions = functions ;
646645#ifndef RUBY
647646 if (tab == NULL )
648647 return NULL ;
@@ -684,55 +683,55 @@ st_table_size(const struct st_table *tbl)
684683/* Create and return table with TYPE which can hold a minimal number
685684 of entries (see comments for get_power2). */
686685st_table *
687- st_init_table (const struct st_hash_type * type , st_functions_t * functions )
686+ st_init_table (const struct st_hash_type * type )
688687{
689- return st_init_table_with_size (type , functions , 0 );
688+ return st_init_table_with_size (type , 0 );
690689}
691690
692691/* Create and return table which can hold a minimal number of
693692 numbers. */
694693st_table *
695- st_init_numtable (st_functions_t * functions )
694+ st_init_numtable (void )
696695{
697- return st_init_table (& type_numhash , functions );
696+ return st_init_table (& type_numhash );
698697}
699698
700699/* Create and return table which can hold SIZE numbers. */
701700st_table *
702- st_init_numtable_with_size (st_functions_t * functions , st_index_t size )
701+ st_init_numtable_with_size (st_index_t size )
703702{
704- return st_init_table_with_size (& type_numhash , functions , size );
703+ return st_init_table_with_size (& type_numhash , size );
705704}
706705
707706/* Create and return table which can hold a minimal number of
708707 strings. */
709708st_table *
710- st_init_strtable (st_functions_t * functions )
709+ st_init_strtable (void )
711710{
712- return st_init_table (& type_strhash , functions );
711+ return st_init_table (& type_strhash );
713712}
714713
715714/* Create and return table which can hold SIZE strings. */
716715st_table *
717- st_init_strtable_with_size (st_functions_t * functions , st_index_t size )
716+ st_init_strtable_with_size (st_index_t size )
718717{
719- return st_init_table_with_size (& type_strhash , functions , size );
718+ return st_init_table_with_size (& type_strhash , size );
720719}
721720
722721/* Create and return table which can hold a minimal number of strings
723722 whose character case is ignored. */
724723st_table *
725- st_init_strcasetable (st_functions_t * functions )
724+ st_init_strcasetable (void )
726725{
727- return st_init_table (& type_strcasehash , functions );
726+ return st_init_table (& type_strcasehash );
728727}
729728
730729/* Create and return table which can hold SIZE strings whose character
731730 case is ignored. */
732731st_table *
733- st_init_strcasetable_with_size (st_functions_t * functions , st_index_t size )
732+ st_init_strcasetable_with_size (st_index_t size )
734733{
735- return st_init_table_with_size (& type_strcasehash , functions , size );
734+ return st_init_table_with_size (& type_strcasehash , size );
736735}
737736
738737/* Make table TAB empty. */
@@ -837,7 +836,7 @@ rebuild_table(st_table *tab)
837836 /* This allocation could trigger GC and compaction. If tab is the
838837 * gen_iv_tbl, then tab could have changed in size due to objects being
839838 * freed and/or moved. Do not store attributes of tab before this line. */
840- new_tab = st_init_table_with_size (tab -> type , tab -> functions ,
839+ new_tab = st_init_table_with_size (tab -> type ,
841840 2 * tab -> num_entries - 1 );
842841 new_entries = new_tab -> entries ;
843842 }
0 commit comments