diff options
author | Pierre Muller <muller@sourceware.org> | 2012-12-22 17:51:11 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2012-12-22 17:51:11 +0000 |
commit | 0dfd2fad8bd1557bab3458c48cff6eeabca84693 (patch) | |
tree | 54c0bd8bfab7e32dca2d2203e16351a5486f5905 /gdb | |
parent | e2b61e68947c0426f6f846a2a74325bd2707e1d8 (diff) | |
download | binutils-0dfd2fad8bd1557bab3458c48cff6eeabca84693.zip binutils-0dfd2fad8bd1557bab3458c48cff6eeabca84693.tar.gz binutils-0dfd2fad8bd1557bab3458c48cff6eeabca84693.tar.bz2 |
* gdbint.texinfo (Function prototypes): Require use of "extern"
modifier for function prototypes in headers.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdbint.texinfo | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 6fcf81d..44077d0 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2012-12-23 Pierre Muller <muller@sourceware.org> + + * gdbint.texinfo (Function prototypes): Require use of "extern" + modifier for function prototypes in headers. + 2012-12-19 Joel Brobecker <brobecker@adacore.com> * refcard.tex: Update copyright notice to GPL v3 or later. diff --git a/gdb/doc/gdbint.texinfo b/gdb/doc/gdbint.texinfo index bb7e5e5..945431d 100644 --- a/gdb/doc/gdbint.texinfo +++ b/gdb/doc/gdbint.texinfo @@ -5935,7 +5935,8 @@ argument type and name, with the name matching that used in the actual function definition. All external functions should have a declaration in a header file that -callers include, except for @code{_initialize_*} functions, which must +callers include, that declaration should use the @code{extern} modifier. +The only exception concerns @code{_initialize_*} functions, which must be external so that @file{init.c} construction works, but shouldn't be visible to random source files. |