[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????
From: |
Ned Konz |
Subject: |
Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros???? |
Date: |
Mon, 31 Jan 2005 16:07:10 -0800 |
User-agent: |
KMail/1.7.2 |
On Monday 31 January 2005 2:54 pm, E. Weddington wrote:
> >Perhaps we should announce Ned Konz' Perl script. Perl is part of
> >WinAVR anyway, so it would make it an easy move for almost anyone to
> >convert their old sources.
> >
> >
>
> *cough* Actually no, perl is not in WinAVR. It's got gawk and sed.
OK, here's the same thing in sed:
# run with:
# /bin/sed -f rewriteCbiAndSbi.sed -i.bak file [...]
s/\([ ]*\)cbi[ ]*([ ]*\([^,)]\+\)[ ]*,[ ]*\([^,)]\+\)[ ]*)/\1\2 \&=
~BIT(\3)/g
s/\([ ]*\)sbi[ ]*([ ]*\([^,)]\+\)[ ]*,[ ]*\([^,)]\+\)[ ]*)/\1\2 |=
BIT(\3)/g
--
Ned Konz
http://bike-nomad.com
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, (continued)
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, E. Weddington, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, Christopher X. Candreva, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, Joerg Wunsch, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, Victoria Welch, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, E. Weddington, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, Joerg Wunsch, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, Victoria Welch, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, E. Weddington, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, Joerg Wunsch, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, E. Weddington, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????,
Ned Konz <=
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, E. Weddington, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, Ned Konz, 2005/01/31
- [avr-gcc-list] Re: [avr-libc-dev] Re: What Happened to the sbi() and cbi() Macros????, Björn Haase, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, Galen Seitz, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, Kevin Neff, 2005/01/31
- Re: [avr-gcc-list] Re: What Happened to the sbi() and cbi() Macros????, E. Weddington, 2005/01/31
- Re: [avr-gcc-list] What Happened to the sbi() and cbi() Macros????, Jeff Barlow, 2005/01/31
- Re: [avr-gcc-list] What Happened to the sbi() and cbi() Macros????, Victoria Welch, 2005/01/31
- RE: [avr-gcc-list] What Happened to the sbi() and cbi() Macros????, Ben Mann, 2005/01/31
- [avr-gcc-list] Interrupt prologues, Curtis Maloney, 2005/01/31