Convert more block functions to methods

This converts block_scope, block_set_scope, block_using, and
block_set_using to be methods.  These are all done at once to make it
easier to also convert block_initialize_namespace at the same time.
This was mostly written by script.
This commit is contained in:
Tom Tromey
2023-01-16 17:39:55 -07:00
parent a4dfe74756
commit 3c45e9f915
13 changed files with 78 additions and 80 deletions

View File

@@ -5424,7 +5424,7 @@ ada_add_block_renamings (std::vector<struct block_symbol> &result,
symbol_name_matcher_ftype *name_match
= ada_get_symbol_name_matcher (lookup_name);
for (renaming = block_using (block);
for (renaming = block->get_using ();
renaming != NULL;
renaming = renaming->next)
{