M
mihirtr
Hi,
I am trying to do following with Perl. Can someone check and help me
out if it is possible.
I am have multiple .c files, I need to find out second parameter in
function call My_Function_Test from these files and output to a file.
For example:
Example .c file
Sample_Func1()
{
MY_STRUCT_1 abc;
My_Function_Test (MY_1ST_PARAMETER,
sizeof(MY_STRUCT_1),
MY_3RD_PARAMETER);
}
Sample_Func1()
{
MY_STRUCT_2 abc;
My_Function_Test (MY_1ST_PARAMETER,
sizeof(MY_STRUCT_2),
MY_3RD_PARAMETER);
}
After running perl script, the output should be following
sizeof(MY_STRUCT_1)
sizeof(MY_STRUCT_2)
I am trying to do following with Perl. Can someone check and help me
out if it is possible.
I am have multiple .c files, I need to find out second parameter in
function call My_Function_Test from these files and output to a file.
For example:
Example .c file
Sample_Func1()
{
MY_STRUCT_1 abc;
My_Function_Test (MY_1ST_PARAMETER,
sizeof(MY_STRUCT_1),
MY_3RD_PARAMETER);
}
Sample_Func1()
{
MY_STRUCT_2 abc;
My_Function_Test (MY_1ST_PARAMETER,
sizeof(MY_STRUCT_2),
MY_3RD_PARAMETER);
}
After running perl script, the output should be following
sizeof(MY_STRUCT_1)
sizeof(MY_STRUCT_2)