]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Hoist the SECTION comment in opncls.c
authorTom Tromey <tom@tromey.com>
Fri, 17 Feb 2023 19:12:11 +0000 (12:12 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 20 Feb 2023 21:35:15 +0000 (14:35 -0700)
The opening and closing node in BFD starts:

    File: bfd.info, [...]

 /* Set to N to open the next N BFDs using an alternate id space.  */
 extern unsigned int bfd_use_reserved_id;

    2.13 Opening and closing BFDs
    =============================

That is, there's a stray C comment and declaration before any other
text or subsections.

This occurs because the code fragment for bfd_use_reserved_id comes
before the SECTION comment.  Hoisting it makes this a little nicer.

2023-02-17  Tom Tromey  <tom@tromey.com>

* opncls.c: Hoist the SECTION comment.

bfd/ChangeLog
bfd/opncls.c

index a974a5c6716c821724eb16de05cc4adddc9a291c..fac38b8e4fab0f5bae3017a42624cc37398beacf 100644 (file)
@@ -1,3 +1,7 @@
+2023-02-17  Tom Tromey  <tom@tromey.com>
+
+       * opncls.c: Hoist the SECTION comment.
+
 2023-02-17  Tom Tromey  <tom@tromey.com>
 
        * opncls.c (bfd_get_debug_link_info_1, separate_debug_file_exists)
index 3fa2b03fdf9430f52c6459e0a2f591416dc96a66..4d0ca48ee78209c171f67a13b777ec2a374887a6 100644 (file)
 #define S_IXOTH 0001   /* Execute by others.  */
 #endif
 
+/*
+SECTION
+       Opening and closing BFDs
+
+SUBSECTION
+       Functions for opening and closing
+*/
+
 /* Counters used to initialize the bfd identifier.  */
 
 static unsigned int bfd_id_counter = 0;
@@ -185,14 +193,6 @@ _bfd_free_cached_info (bfd *abfd)
   return true;
 }
 
-/*
-SECTION
-       Opening and closing BFDs
-
-SUBSECTION
-       Functions for opening and closing
-*/
-
 /*
 FUNCTION
        bfd_fopen