On 07/18/2011 12:46 PM, Joe Perches wrote:
I've attached the tools I used the last time I tried
something like this.

The converter is detypedef.perl.

Usage:

perl detypedef.perl --from=from --to=to file(s)...

The other files were helpers for the ath6kl project.

typedefs_to_rename is a list of ath6kl specific typedefs,
and doalldetypedefs.sh contains a directory reference,
so you'll have to edit those if you want to use them.

doalldetypedefs.sh does a git commit for each typedef
converted.

My code has an additional problem that shows up in this hunk:

@@ -365,7 +365,7 @@ typedef struct _BSS_QOS{

        u8                                      QBssLoad[QBSS_LOAD_SIZE];
        bool                                    bQBssLoadValid;
-}BSS_QOS, *PBSS_QOS;
+}struct bss_qos, *struct bss_qos *;

 #define sQoSCtlLng     2
#define QOS_CTRL_LEN(_QosMode) ( (_QosMode > QOS_DISABLE)? sQoSCtlLng : 0 )

My regular expression skills are not quite up to the task. I was able to write one that would get rid of the first "struct bss_qos" leaving the line as

+}, *struct bss_qos *;

I was unable to turn that into the simple "};" that I want.

Larry

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to