diff options
author | Pedro Alves <palves@redhat.com> | 2015-02-27 16:33:07 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-02-27 16:33:07 +0000 |
commit | fe978cb071b460b2d4aed2f9a71d895f84efce0e (patch) | |
tree | 65d107663745fc7872e680feea9ec2fa6a4949ad /gdb/memattr.c | |
parent | 3bc3d82a005466a66fa22f704c90f4486ca71344 (diff) | |
download | gdb-fe978cb071b460b2d4aed2f9a71d895f84efce0e.zip gdb-fe978cb071b460b2d4aed2f9a71d895f84efce0e.tar.gz gdb-fe978cb071b460b2d4aed2f9a71d895f84efce0e.tar.bz2 |
C++ keyword cleanliness, mostly auto-generated
This patch renames symbols that happen to have names which are
reserved keywords in C++.
Most of this was generated with Tromey's cxx-conversion.el script.
Some places where later hand massaged a bit, to fix formatting, etc.
And this was rebased several times meanwhile, along with re-running
the script, so re-running the script from scratch probably does not
result in the exact same output. I don't think that matters anyway.
gdb/
2015-02-27 Tom Tromey <tromey@redhat.com>
Pedro Alves <palves@redhat.com>
Rename symbols whose names are reserved C++ keywords throughout.
gdb/gdbserver/
2015-02-27 Tom Tromey <tromey@redhat.com>
Pedro Alves <palves@redhat.com>
Rename symbols whose names are reserved C++ keywords throughout.
Diffstat (limited to 'gdb/memattr.c')
-rw-r--r-- | gdb/memattr.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/memattr.c b/gdb/memattr.c index e6a98f6..a2aac07 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -112,11 +112,11 @@ mem_region_cmp (const void *untyped_lhs, const void *untyped_rhs) /* Allocate a new memory region, with default settings. */ void -mem_region_init (struct mem_region *new) +mem_region_init (struct mem_region *newobj) { - memset (new, 0, sizeof (struct mem_region)); - new->enabled_p = 1; - new->attrib = default_mem_attrib; + memset (newobj, 0, sizeof (struct mem_region)); + newobj->enabled_p = 1; + newobj->attrib = default_mem_attrib; } /* This function should be called before any command which would @@ -174,7 +174,7 @@ static void create_mem_region (CORE_ADDR lo, CORE_ADDR hi, const struct mem_attrib *attrib) { - struct mem_region new; + struct mem_region newobj; int i, ix; /* lo == hi is a useless empty region. */ @@ -184,11 +184,11 @@ create_mem_region (CORE_ADDR lo, CORE_ADDR hi, return; } - mem_region_init (&new); - new.lo = lo; - new.hi = hi; + mem_region_init (&newobj); + newobj.lo = lo; + newobj.hi = hi; - ix = VEC_lower_bound (mem_region_s, mem_region_list, &new, + ix = VEC_lower_bound (mem_region_s, mem_region_list, &newobj, mem_region_lessthan); /* Check for an overlapping memory region. We only need to check @@ -214,9 +214,9 @@ create_mem_region (CORE_ADDR lo, CORE_ADDR hi, } } - new.number = ++mem_number; - new.attrib = *attrib; - VEC_safe_insert (mem_region_s, mem_region_list, ix, &new); + newobj.number = ++mem_number; + newobj.attrib = *attrib; + VEC_safe_insert (mem_region_s, mem_region_list, ix, &newobj); } /* |