From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6441 invoked by alias); 22 Mar 2011 16:56:52 -0000 Received: (qmail 6433 invoked by uid 22791); 22 Mar 2011 16:56:51 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f47.google.com (HELO mail-fx0-f47.google.com) (209.85.161.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 22 Mar 2011 16:56:47 +0000 Received: by fxm19 with SMTP id 19so6598886fxm.20 for ; Tue, 22 Mar 2011 09:56:44 -0700 (PDT) Received: by 10.223.24.72 with SMTP id u8mr3244993fab.10.1300812897480; Tue, 22 Mar 2011 09:54:57 -0700 (PDT) Received: from sg-laptop ([178.123.165.74]) by mx.google.com with ESMTPS id n26sm63928fam.13.2011.03.22.09.54.54 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2011 09:54:55 -0700 (PDT) Date: Tue, 22 Mar 2011 16:56:00 -0000 From: Sergei Gavrikov To: Grant Edwards cc: ecos-devel@sources.redhat.com Subject: Re: eCos standard config for indent or astyle? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-03/txt/msg00016.txt.bz2 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