Re: [Qemu-devel] RFC: mass comment conversion from C99 to C89

2011-01-17 Thread Blue Swirl
On Mon, Jan 17, 2011 at 3:04 PM, Anthony Liguori wrote: > On 01/16/2011 06:12 PM, Peter Maydell wrote: >> >> On 15 January 2011 16:02, Blue Swirl  wrote: >> >>> >>> With the sed script below (my first I think), I'm able to convert most >>> files in QEMU from C99 comment style to C89. When successi

Re: [Qemu-devel] RFC: mass comment conversion from C99 to C89

2011-01-17 Thread Anthony Liguori
On 01/16/2011 06:12 PM, Peter Maydell wrote: On 15 January 2011 16:02, Blue Swirl wrote: With the sed script below (my first I think), I'm able to convert most files in QEMU from C99 comment style to C89. When successive line with C99 comments are converted, the comments are merged. Two fil

Re: [Qemu-devel] RFC: mass comment conversion from C99 to C89

2011-01-16 Thread Peter Maydell
On 15 January 2011 16:02, Blue Swirl wrote: > With the sed script below (my first I think), I'm able to convert most > files in QEMU from C99 comment style to C89. When successive line with > C99 comments are converted, the comments are merged. Two files > (hw/rtl8139.c and microblaze-dis.c) still

Re: [Qemu-devel] RFC: mass comment conversion from C99 to C89

2011-01-15 Thread Blue Swirl
On Sat, Jan 15, 2011 at 5:44 PM, Stefan Weil wrote: > Am 15.01.2011 18:20, schrieb Laurent Vivier: >> >> Le samedi 15 janvier 2011 à 16:02 +, Blue Swirl a écrit : >>> >>> With the sed script below (my first I think), I'm able to convert most >> >> nice script. Did you try awk ? >> >>> files in

Re: [Qemu-devel] RFC: mass comment conversion from C99 to C89

2011-01-15 Thread Stefan Weil
Am 15.01.2011 18:20, schrieb Laurent Vivier: Le samedi 15 janvier 2011 à 16:02 +, Blue Swirl a écrit : With the sed script below (my first I think), I'm able to convert most nice script. Did you try awk ? files in QEMU from C99 comment style to C89. When successive line with C99 comments

Re: [Qemu-devel] RFC: mass comment conversion from C99 to C89

2011-01-15 Thread Blue Swirl
On Sat, Jan 15, 2011 at 5:20 PM, Laurent Vivier wrote: > Le samedi 15 janvier 2011 à 16:02 +, Blue Swirl a écrit : >> With the sed script below (my first I think), I'm able to convert most > > nice script. Did you try awk ? No, this just evolved from one-liner command into multi-line command

Re: [Qemu-devel] RFC: mass comment conversion from C99 to C89

2011-01-15 Thread Laurent Vivier
Le samedi 15 janvier 2011 à 16:02 +, Blue Swirl a écrit : > With the sed script below (my first I think), I'm able to convert most nice script. Did you try awk ? > files in QEMU from C99 comment style to C89. When successive line with > C99 comments are converted, the comments are merged. Two

[Qemu-devel] RFC: mass comment conversion from C99 to C89

2011-01-15 Thread Blue Swirl
With the sed script below (my first I think), I'm able to convert most files in QEMU from C99 comment style to C89. When successive line with C99 comments are converted, the comments are merged. Two files (hw/rtl8139.c and microblaze-dis.c) still fail. Is this a good idea? If yes, what should be