Source-Changes-D archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/dev
On Tue, 26 Jul 2011, David Young wrote:
I used this semantic patch:
[...]
- #define bar 0x10
+ #define bar PCI_BAR(0)
White space on "+" lines is taken literally, whereas white space
on context lines and "-" lines is matched loosely. This means
that spatch will convert from any amount of white space before and
after the identifier "bar", to exactly one space.
If you would prefer to retain the original white space, then you
can avoid using white space in "+" lines, like this:
#define bar
-0x10
+PCI_BAR(0)
At least, that works in normal code; I don't know whether it works
in #define lines.
--apb (Alan Barrett)
Home |
Main Index |
Thread Index |
Old Index