in reply to Re^4: How to know if two files (.c,.h,.cpp) are different content-wise ignoring the comments?
in thread How to know if two files (.c,.h,.cpp) are different content-wise ignoring the comments?

iphone:

If there are differences in comments, then it's likely that there will be differences in the whitespace as well, so tell diff to ignore blank lines and other forms of whitespace. I don't know what you're running on, but on my box here, I use the options:

Note: I've never experimented to see if I can get by with a subset of those flags, but I suspect I can. But it's easy, so I've never found it worth the time to find out.

...roboticus

When your only tool is a hammer, all problems look like your thumb.

  • Comment on Re^5: How to know if two files (.c,.h,.cpp) are different content-wise ignoring the comments?