aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-05-03 01:09:45 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-05-03 01:09:45 +0000
commite02b83d7f42fda0f69a040687f3fe8ba39d5e082 (patch)
tree98b3b756aad936d3a4057fad5f352e03f2dd9ae4 /bfd
parent5daa8fe797a3f310f9e53282e097b52583ab5109 (diff)
downloadgdb-e02b83d7f42fda0f69a040687f3fe8ba39d5e082.zip
gdb-e02b83d7f42fda0f69a040687f3fe8ba39d5e082.tar.gz
gdb-e02b83d7f42fda0f69a040687f3fe8ba39d5e082.tar.bz2
Regenerated.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/bfd-in2.h50
1 files changed, 18 insertions, 32 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 64a153f..545e442 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1440,7 +1440,7 @@ extern const struct bfd_symbol * const bfd_ind_symbol;
/* Macros to handle insertion and deletion of a bfd's sections. These
only handle the list pointers, ie. do not adjust section_count,
target_index etc. */
-#define bfd_section_double_list_remove(ABFD, S) \
+#define bfd_section_list_remove(ABFD, S) \
do \
{ \
asection *_s = S; \
@@ -1459,9 +1459,7 @@ extern const struct bfd_symbol * const bfd_ind_symbol;
(ABFD)->section_last = _prev; \
} \
while (0)
-#define bfd_section_list_remove(ABFD, PS) \
- bfd_section_double_list_remove ((ABFD), *(PS))
-#define bfd_section_double_list_append(ABFD, S) \
+#define bfd_section_list_append(ABFD, S) \
do \
{ \
asection *_s = S; \
@@ -1477,48 +1475,36 @@ extern const struct bfd_symbol * const bfd_ind_symbol;
_abfd->section_last = _s; \
} \
while (0)
-#define bfd_section_double_list_insert_after(ABFD, A, S) \
+#define bfd_section_list_insert_after(ABFD, A, S) \
do \
{ \
asection *_a = A; \
asection *_s = S; \
- if (_a) \
- { \
- asection *_next = _a->next; \
- _s->next = _next; \
- _s->prev = _a; \
- _a->next = _s; \
- if (_next) \
- _s->next->prev = _s; \
- else \
- (ABFD)->section_last = _s; \
- } \
+ asection *_next = _a->next; \
+ _s->next = _next; \
+ _s->prev = _a; \
+ _a->next = _s; \
+ if (_next) \
+ _s->next->prev = _s; \
else \
- bfd_section_double_list_append ((ABFD), (S)); \
+ (ABFD)->section_last = _s; \
} \
while (0)
-#define bfd_section_double_list_insert_before(ABFD, B, S) \
+#define bfd_section_list_insert_before(ABFD, B, S) \
do \
{ \
asection *_b = B; \
asection *_s = S; \
- if (_b) \
- { \
- asection *_prev = _b->prev; \
- _s->prev = _prev; \
- _s->next = _b; \
- _b->prev = _s; \
- if (_prev) \
- _prev->next = _s; \
- else \
- (ABFD)->sections = _s; \
- } \
+ asection *_prev = _b->prev; \
+ _s->prev = _prev; \
+ _s->next = _b; \
+ _b->prev = _s; \
+ if (_prev) \
+ _prev->next = _s; \
else \
- bfd_section_double_list_append ((ABFD), (S)); \
+ (ABFD)->sections = _s; \
} \
while (0)
-#define bfd_section_list_insert(ABFD, PS, S) \
- bfd_section_double_list_insert_before ((ABFD), *(PS), (S))
#define bfd_section_removed_from_list(ABFD, S) \
((S)->next == NULL && (S) != (ABFD)->section_last)