Re: eCos standard config for indent or astyle?

Sergei Gavrikov <[email protected]>
Newsgroups gmane.os.ecos.devel
Message-ID <alpine.DEB.2.00.1103221844380.2145@sg-laptop>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.