Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!sun-barr!decwrl!ucbvax!hplabs!hp-pcd!hpvcfs1!stevem From: stevem@hpvcfs1.HP.COM (Steve Miller) Newsgroups: comp.lang.c Subject: Looking to C conversion utility Message-ID: <700001@hpvcfs1.HP.COM> Date: 26 Jul 89 17:28:27 GMT Organization: Hewlett Packard, Vancouver, WA Lines: 20 I'm looking for a shell script, C program, or anything that will do the following conversions on a large number of C source files: 1) Convert all variables spelled "my_var" to "myVar" 2) Convert all procedures named "My_Procedure" to "MyProcedure" 3) Convert all variable types to a custome typedef: (Example: convert "char" to "UBYTE" or convert "short" to "UINT") 4) Leave constants alone (MY_CONSTANT) The script/program must work reliably enough that minimal or no editing needs to be done to correct mistakes since many source files are involved. I expect these types of things have been done before and it would be nice to take advantage of existing solutions of this problem. Thanks in Advance. Steven Miller stevem@hpvcfs1 Vancouver Division Hewlett Packard