Hi,
I'm looking for a way to merge two programs (C-source). The code is semantically similar, but syntactically different. That is to say, there are "about the same" functions that do "about the same", but the code inside them may be more or less different.
What I would like to do is this:
Take two files, one of each program. Open a window for each file and have a list of functions in that file (written in C). Then select a function in the left window, one in the right window, and have BC compare these two functions side-by-side.
My feeling is that this kind of handling goes beyond BC - it is not designed to scan a file for functions and isolate them. But can anyone think of a third-party-tool that can do this? If I could have the other tool create the function lists, I could probably script BC to open the file comparison at the lines specified by the other tool.
Does this make sense to anyone? ;-)
Regs,
150d
I'm looking for a way to merge two programs (C-source). The code is semantically similar, but syntactically different. That is to say, there are "about the same" functions that do "about the same", but the code inside them may be more or less different.
What I would like to do is this:
Take two files, one of each program. Open a window for each file and have a list of functions in that file (written in C). Then select a function in the left window, one in the right window, and have BC compare these two functions side-by-side.
My feeling is that this kind of handling goes beyond BC - it is not designed to scan a file for functions and isolate them. But can anyone think of a third-party-tool that can do this? If I could have the other tool create the function lists, I could probably script BC to open the file comparison at the lines specified by the other tool.
Does this make sense to anyone? ;-)
Regs,
150d
Comment