From: Øyvind H. <go...@us...> - 2009-11-26 17:36:29
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 060980357df2f71b8d18eb6a86a8c9878a8b417e (commit) from 3f8aa3cb035a97988fd38dfb08db5a4224f4b591 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 060980357df2f71b8d18eb6a86a8c9878a8b417e Author: Ãyvind Harboe <oyv...@zy...> Date: Tue Nov 24 20:26:40 2009 +0100 styleguide: add some embedded style rules. Embedded and pthreads rely on modest and predictable stack usage. Signed-off-by: Ãyvind Harboe <oyv...@zy...> diff --git a/doc/manual/style.txt b/doc/manual/style.txt index b4d0216..71bb5f6 100644 --- a/doc/manual/style.txt +++ b/doc/manual/style.txt @@ -80,6 +80,9 @@ Finally, try to avoid lines of code that are longer than than 72-80 columns: - designated initializers (@{ .field = value @}) - variables declarations should occur at the point of first use - new block scopes for selection and iteration statements +- use malloc() to create dynamic arrays. Do @b not use @c alloca +or variable length arrays on the stack. non-MMU hosts(uClinux) and +pthreads require modest and predictable stack usage. @section styletypes Type Guidelines - use native types (@c int or @c unsigned) if the type is not important ----------------------------------------------------------------------- Summary of changes: doc/manual/style.txt | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) hooks/post-receive -- Main OpenOCD repository |