mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2026-08-27 00:26:02 -04:00
gdb: remove extern from function declarations in gdbarch-gen.h
Using extern on function declarations is not necessary, and in my opinion it's just noise. Change-Id: Ie44ca14651d49e7eb04db9b0bedf0af7a3676b45 Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
parent
f257739664
commit
87ca5a00d6
2 changed files with 479 additions and 479 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -68,7 +68,7 @@ with open("gdbarch-gen.h", "w") as f:
|
|||
for c in filter(info, components):
|
||||
print(file=f)
|
||||
print(
|
||||
f"""extern {c.type}{maybe_space(c)}gdbarch_{c.name} (struct gdbarch *gdbarch);
|
||||
f"""{c.type}{maybe_space(c)}gdbarch_{c.name} (struct gdbarch *gdbarch);
|
||||
/* set_gdbarch_{c.name}() - not applicable - pre-initialized. */""",
|
||||
file=f,
|
||||
)
|
||||
|
|
@ -100,16 +100,16 @@ with open("gdbarch-gen.h", "w") as f:
|
|||
|
||||
if c.predicate:
|
||||
print(file=f)
|
||||
print(f"extern bool gdbarch_{c.name}_p (struct gdbarch *gdbarch);", file=f)
|
||||
print(f"bool gdbarch_{c.name}_p (struct gdbarch *gdbarch);", file=f)
|
||||
|
||||
print(file=f)
|
||||
if isinstance(c, Value):
|
||||
print(
|
||||
f"extern {c.type}{maybe_space(c)}gdbarch_{c.name} (struct gdbarch *gdbarch);",
|
||||
f"{c.type}{maybe_space(c)}gdbarch_{c.name} (struct gdbarch *gdbarch);",
|
||||
file=f,
|
||||
)
|
||||
print(
|
||||
f"extern void set_gdbarch_{c.name} (struct gdbarch *gdbarch, {c.type}{maybe_space(c)}{c.name});",
|
||||
f"void set_gdbarch_{c.name} (struct gdbarch *gdbarch, {c.type}{maybe_space(c)}{c.name});",
|
||||
file=f,
|
||||
)
|
||||
else:
|
||||
|
|
@ -120,11 +120,11 @@ with open("gdbarch-gen.h", "w") as f:
|
|||
)
|
||||
if c.implement:
|
||||
print(
|
||||
f"extern {c.type}{maybe_space(c)}gdbarch_{c.name} ({c.set_list()});",
|
||||
f"{c.type}{maybe_space(c)}gdbarch_{c.name} ({c.set_list()});",
|
||||
file=f,
|
||||
)
|
||||
print(
|
||||
f"extern void set_gdbarch_{c.name} (struct gdbarch *gdbarch, {c.ftype()} *{c.name});",
|
||||
f"void set_gdbarch_{c.name} (struct gdbarch *gdbarch, {c.ftype()} *{c.name});",
|
||||
file=f,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue