Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/doc-do-not-write-extern' into next
author
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Feb 2018 21:34:29 +0000
(13:34 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 14 Feb 2018 21:34:29 +0000
(13:34 -0800)
Devdoc update.
* jk/doc-do-not-write-extern:
CodingGuidelines: mention "static" and "extern"
Documentation/CodingGuidelines
patch
|
blob
|
history
raw
(from parent 1:
2f564fb
)
diff --git
a/Documentation/CodingGuidelines
b/Documentation/CodingGuidelines
index c4cb5ff0d477938b8fd49749c3589c5afbb04221..48aa4edfbdd180e1c6d874b6bb61ea5fc8e32ef5 100644
(file)
--- a/
Documentation/CodingGuidelines
+++ b/
Documentation/CodingGuidelines
@@
-386,6
+386,11
@@
For C programs:
- Use Git's gettext wrappers to make the user interface
translatable. See "Marking strings for translation" in po/README.
+ - Variables and functions local to a given source file should be marked
+ with "static". Variables that are visible to other source files
+ must be declared with "extern" in header files. However, function
+ declarations should not use "extern", as that is already the default.
+
For Perl programs:
- Most of the C guidelines above apply.