Hi Tony,
2016-1-31(Sun) 8:38:43 UTC+9 Tony Mechelynck:
> The coding style of C function declarations seems to have undergone a
> massive change yesterday (well, I'm on CET = GMT+0100 and it's shortly
> after midnight my time).
>
> However, runtime/doc/develop.txt lines 327-345 (about half a screen
> _above_ ":help style-spaces") still reflect the "old" Vim coding
> style.
Ah, Thanks for suggestion.
Is an attached patch Okay?
--
Best regards,
Hirohito Higashi (a.k.a h_east)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/runtime/doc/develop.txt b/runtime/doc/develop.txt
index 34ff38d..03ad715 100644
--- a/runtime/doc/develop.txt
+++ b/runtime/doc/develop.txt
@@ -324,7 +324,13 @@ OK: if (cond)
Functions start with:
-Wrong: int function_name(int arg1, int arg2)
+Wrong: int function_name(arg1, arg2)
+ int arg1; /* short comment about arg1 */
+ int arg2; /* short comment about arg2 */
+ {
+ int local; /* comment about local */
+
+ local = arg1 * arg2;
OK: /*
* Explanation of what this function is used for.
@@ -340,8 +346,8 @@ OK: /*
local = arg1 * arg2;
-NOTE: Don't use ANSI style function declarations. A few people still have to
-use a compiler that doesn't support it.
+NOTE: Don't use K&R style function declarations. Use ANSI C style function
+declarations.
SPACES AND PUNCTUATION *style-spaces*