This is the mail archive of the ecos-devel@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: eCos standard config for indent or astyle?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]