All of lore.kernel.org
 help / color / mirror / Atom feed
* [SCRIPT] designated initializer conversion, take 2
@ 2002-07-13 13:14 Art Haas
  0 siblings, 0 replies; only message in thread
From: Art Haas @ 2002-07-13 13:14 UTC (permalink / raw)
  To: linux-kernel; +Cc: kernel-janitor-discuss

[-- Attachment #1: Type: text/plain, Size: 965 bytes --]

Hi.

A couple of days ago I posted a script that converts structure
initializers from the form ...

struct foo = {
	field:	val
}

to 

struct foo = {
	.field = val
}

The latest version of the script is attached. This version
changes more structures, as well as adds a few missed fields
to the conversion. I'm running a kernel based on the code
that the script converted, so the output works here.

I've heard from Rusty Russell regarding the earlier version
of the script, and will possibly be sending him patches based
on the output. The script changes 679 files in my kernel, so
that is a lot of potential patches.

As for the script itself, I confess it's gotten a bit uglier
as I added more things that it knows to convert.

My thanks to everyone working on the kernel.

Art Haas

-- 
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759

[-- Attachment #2: decfix.pl --]
[-- Type: application/x-perl, Size: 12527 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-07-13 13:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-13 13:14 [SCRIPT] designated initializer conversion, take 2 Art Haas

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.