All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Ignacio García Pérez" <iggarpe@domain.hid>
To: Jan Kiszka <kiszka@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] timeout in native API calls          (cond, sem, mutex, etc).
Date: Fri, 21 Oct 2005 16:46:59 +0200	[thread overview]
Message-ID: <4358FF63.5070600@domain.hid> (raw)
In-Reply-To: <4358DDAE.2090703@domain.hid>

Jan Kiszka wrote:

>Ignacio García Pérez wrote:
>  
>
>>...
>>P.S: As a side note, wouldn't be a good practice to expand tabs to
>>spaces in all the code?
>>    
>>
>
>My opinion is yes - but it's a nasty work. Would you provide such
>patches...?
>
>Jan
>
>  
>
Assuming everybody is using the 8 space tab (I saw it in all the files I
examined today), something like this would do:

texp () {
    TMPFILE=$(mktemp tmp.XXXXXX)
    expand -t 8 $1 > $TMPFILE
    mv -f $TMPFILE $1
}

for i in $(find -name "*.c"); do texp $i; done
for i in $(find -name "*.h"); do texp $i; done



However, this is of no help if developers don't configure their editors
to expand spaces by default, which I think is quite difiicult to achieve.

Would be a good idea too to enforce this tab expansion policy with a SVN
submit filter, but that's beyond by knowledge.

Nacho.


  reply	other threads:[~2005-10-21 14:46 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-20 16:20 [Xenomai-help] timeout in native API calls (cond, sem, mutex, etc) Ignacio García Pérez
2005-10-20 16:46 ` Jan Kiszka
2005-10-20 17:09   ` Ignacio García Pérez
2005-10-20 17:33     ` Jan Kiszka
2005-10-20 18:18       ` Philippe Gerum
2005-10-20 18:16     ` Philippe Gerum
2005-10-21  7:20       ` Ignacio García Pérez
2005-10-21 10:29         ` Philippe Gerum
2005-10-21 12:02           ` Ignacio García Pérez
2005-10-21 10:51         ` Ignacio García Pérez
2005-10-21 12:23           ` Jan Kiszka
2005-10-21 14:46             ` Ignacio García Pérez [this message]
2005-10-21 16:45             ` Philippe Gerum
2005-10-21 16:39           ` Philippe Gerum
2005-10-21 18:55             ` Ignacio García Pérez
2005-10-21 10:52         ` Ignacio García Pérez
2005-10-21 12:16           ` Jan Kiszka
2005-10-21 14:40             ` Ignacio García Pérez
2005-10-21 16:42           ` Philippe Gerum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4358FF63.5070600@domain.hid \
    --to=iggarpe@domain.hid \
    --cc=kiszka@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.