How about move that to ODP api guidelines?

Maxim.

On 03/12/15 02:27, Mike Holmes wrote:
Clarify the locations that variables may be declared

Signed-off-by: Mike Holmes <[email protected]>
---
  CONTRIBUTING | 15 +++++++++++++++
  1 file changed, 15 insertions(+)

diff --git a/CONTRIBUTING b/CONTRIBUTING
index 75fb711..ca1ce3f 100644
--- a/CONTRIBUTING
+++ b/CONTRIBUTING
@@ -16,6 +16,21 @@ ODP code shall be documented using the doxygen style 
described in the
  "Documenting the code" section.
  Check patch script/checkpatch.pl shall be used before submitting a patch.
+Supplemental notes:-
+
+ - Variables shall be declared at the begining of scope, for example :-
+
+     int start_of_global_scope;
+
+     main () {
+       int start_of_function_scope;
+       ...
+       if (foo == bar) {
+         int start_of_block_scope;
+         ...
+       }
+     }
+
  2. ODP patch expectations as an  open source project
  ----------------------------------------------------
  While specific to the Linux kernel development, the following reference could


_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to