eCos standard config for indent or astyle?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

eCos standard config for indent or astyle?

Grant Edwards-6
Does anybody have a config file for either indent or astyle that will
format source code according to eCos standards?

--
Grant Edwards               grant.b.edwards        Yow! It's the RINSE CYCLE!!
                                  at               They've ALL IGNORED the
                              gmail.com            RINSE CYCLE!!

Reply | Threaded
Open this post in threaded view
|

Re: eCos standard config for indent or astyle?

Sergei Gavrikov-4
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
Reply | Threaded
Open this post in threaded view
|

Re: eCos standard config for indent or astyle?

Grant Edwards-6
On 2011-03-22, Sergei Gavrikov <[hidden email]> wrote:

> 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

Great!

Thanks.

--
Grant Edwards               grant.b.edwards        Yow! An air of FRENCH FRIES
                                  at               permeates my nostrils!!
                              gmail.com