How can I extract someting similar? The goal is to determinate easily in which function does one line of code belong to. The goal is to create a similar file:
none: void funct1(void)
funct1: {
funct1: int i = 0;
funct1: int j = 0;
funct1: ....
funct1: }
none: void functXY(void)
functXY: {
functXY: int i = 0;
functXY: int j = 0;
functXY: ....
functXY: }
Do I really need AST for this? I use gcc compiler with C89 code.