Z
Zhenhuan Du
Hello!
I was porting some files writing by others in C language.
Due to bad naming ,I found many
typedefs disagreement and macro definition conflicts.
That was really annoying.
My first solutions are :
So for clearance and portability, I want to do following actions.
1)Add a prefix like "CCC_" before every macro definition ,typedef
,functions name and global variable.
2)Add a prefix like "CCC_" in every ".c" file name and ".h" file name.
I there any
For example:
file1.c contains
#define define1 0x0
becomes
CCC_file1.c
#define CCC_define1 0x0
But I can't find any software capable of doing this job.
I know this kind of work is more like common text batch processing .
But I'm not good at this kind of programming.Maybe someone has done a
good job like this. Can anybody give some advice here? Thanks !
Also, if any other kind of solution is available, share with me please.
Du Zhenhuan <[email protected]>
I was porting some files writing by others in C language.
Due to bad naming ,I found many
typedefs disagreement and macro definition conflicts.
That was really annoying.
My first solutions are :
So for clearance and portability, I want to do following actions.
1)Add a prefix like "CCC_" before every macro definition ,typedef
,functions name and global variable.
2)Add a prefix like "CCC_" in every ".c" file name and ".h" file name.
I there any
For example:
file1.c contains
#define define1 0x0
becomes
CCC_file1.c
#define CCC_define1 0x0
But I can't find any software capable of doing this job.
I know this kind of work is more like common text batch processing .
But I'm not good at this kind of programming.Maybe someone has done a
good job like this. Can anybody give some advice here? Thanks !
Also, if any other kind of solution is available, share with me please.
Du Zhenhuan <[email protected]>