This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: eCos standard config for indent or astyle?
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: Grant Edwards <grant dot b dot edwards at gmail dot com>
- Cc: ecos-devel at sources dot redhat dot com
- Date: Tue, 22 Mar 2011 18:54:53 +0200 (EET)
- Subject: Re: eCos standard config for indent or astyle?
- References: <imad6q$1jg$1@dough.gmane.org>
On Tue, 22 Mar 2011, Grant Edwards wrote:
> Does anybody have a config file for either indent or astyle that will
> format source code according to eCos standards?
Hi,
They have 'Lindent'..., I thought, - Why we have not 'Eindent'? :-)
Well, I wrote *something* for myself
HG's repo https://bitbucket.org/tickling/geneindent/src
Install
sh genindent > ~/bin/Eindent
chmod +x ~/bin/Eindent
Usage (mostly in Vim on visual blocks)
:'<,'>!Eindent
Also I wrote vim.cdl (vim syntax file) to hack/check eCos config files:
HG's repo https://bitbucket.org/tickling/vim-syntax-cdl/src
HTH
Sergei