This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Add missing "extern" in rust-lang.h


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=888e3ddb20f541220f18709fce832ad0163c3e71

commit 888e3ddb20f541220f18709fce832ad0163c3e71
Author: Tom Tromey <tom@tromey.com>
Date:   Tue Jun 6 14:27:42 2017 -0600

    Add missing "extern" in rust-lang.h
    
    I noticed that one function in rust-lang.h was not declared using
    "extern".  In the interested of uniformity, this patch adds it.
    
    Tested by rebuilding.
    
    2017-10-02  Tom Tromey  <tom@tromey.com>
    
    	* rust-lang.h (rust_slice_type): Add "extern".

Diff:
---
 gdb/ChangeLog   | 4 ++++
 gdb/rust-lang.h | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9bdb6f8..f5b265b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,8 @@
 2017-10-02  Tom Tromey  <tom@tromey.com>
+
+	* rust-lang.h (rust_slice_type): Add "extern".
+
+2017-10-02  Tom Tromey  <tom@tromey.com>
 	    Pedro Alves  <palves@redhat.com>
 
 	* ada-lang.h (ada_exc_info::operator<): Make const.
diff --git a/gdb/rust-lang.h b/gdb/rust-lang.h
index 61547d7..4d07c48 100644
--- a/gdb/rust-lang.h
+++ b/gdb/rust-lang.h
@@ -43,7 +43,7 @@ extern std::string rust_crate_for_block (const struct block *block);
    is the type of the elements of the slice.  USIZE_TYPE is the Rust
    "usize" type to use.  The new type is allocated whereever ELT_TYPE
    is allocated.  */
-struct type *rust_slice_type (const char *name, struct type *elt_type,
-			      struct type *usize_type);
+extern struct type *rust_slice_type (const char *name, struct type *elt_type,
+				     struct type *usize_type);
 
 #endif /* RUST_LANG_H */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]