mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 05:48:20 +08:00
2003-06-02 David Carlton <carlton@math.stanford.edu>
* block.c (contained_in): Add 'const' to arguments. (block_function): Ditto. * block.h: Update declarations for block_function and contained_in.
This commit is contained in:
@ -44,7 +44,7 @@ static void block_initialize_namespace (struct block *block,
|
||||
Return zero otherwise. */
|
||||
|
||||
int
|
||||
contained_in (struct block *a, struct block *b)
|
||||
contained_in (const struct block *a, const struct block *b)
|
||||
{
|
||||
if (!a || !b)
|
||||
return 0;
|
||||
@ -57,7 +57,7 @@ contained_in (struct block *a, struct block *b)
|
||||
lexical block, described by a struct block BL. */
|
||||
|
||||
struct symbol *
|
||||
block_function (struct block *bl)
|
||||
block_function (const struct block *bl)
|
||||
{
|
||||
while (BLOCK_FUNCTION (bl) == 0 && BLOCK_SUPERBLOCK (bl) != 0)
|
||||
bl = BLOCK_SUPERBLOCK (bl);
|
||||
|
Reference in New Issue
Block a user