PDA

View Full Version : C Rules defaults


cringthis
13-Dec-2005, 09:18 AM
Diff the following two lines using C Rules:

int foobar;

... and ...

int foo bar;

(Note the space). Using the default C Rules, this is an unimportant difference(!).

I can see that by unchecking the C Rules | Options | Importance | "Embedded Whitespace" setting, this diff shows up as "important" once again... just wondering if this is the expected behavior - and whether the default "C Rules" setting should be changed.

Thanks

Chris
13-Dec-2005, 01:01 PM
This is expected behavior.

This is a limitation in BC's comparison algorithm. When you mark whitespace unimportant, it makes all whitespace unimportant. This doesn't differentiate between comparing no whitespace to whitespace vs whitespace compared to a different number of whitespace characters.

We are aware of this limitation and we do hope to handle it in a future version of Beyond Compare.