Signed-off-by: Mike Holmes <mike.hol...@linaro.org> --- doc/api_guide_lines.dox | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/doc/api_guide_lines.dox b/doc/api_guide_lines.dox index 4cfe088..2bc63a1 100644 --- a/doc/api_guide_lines.dox +++ b/doc/api_guide_lines.dox @@ -149,6 +149,21 @@ When an interface is defined in a header file and is intended to to be reused in - Be prefixed with an underscore "_". - All the required definitions for the API are to use an underscore, this includes MACROS, typedefs, enums and function names. +@subsection variables Declaring variables +- Variables shall be declared at the begining of scope, for example :- +@code + int start_of_global_scope; + + main () { + int start_of_function_scope; + ... + if (foo == bar) { + int start_of_block_scope; + ... + } + } +@endcode + @section implementation Implementation Considerations To support application portability and preserve implementation flexibility, ODP APIs MUST be designed with several guiding principles in mind. -- 2.1.0 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org http://lists.linaro.org/mailman/listinfo/lng-odp