summaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authordyoung <dyoung@NetBSD.org>2011-07-26 20:51:23 +0000
committerdyoung <dyoung@NetBSD.org>2011-07-26 20:51:23 +0000
commit9d3c07c5f3b032e3472d80875d6ca2e7e7313e21 (patch)
treeab558b470bf5b59c1ee9ea86240999aac207274a /lib/libedit
parenta79aa931bd32a7a300a4b943ce461673662f2a0e (diff)
Replace anonymous constants, 0x10, 0x14, ..., with PCI_BAR(0),
PCI_BAR(1), .... There was no change in the generated assembly. I used this semantic patch: @ mapsit @ identifier bar; expression pact; @@ ( pci_mapreg_map | Cardbus_mapreg_map )(pact, bar, ...) @ depends on mapsit @ identifier mapsit.bar; @@ ( - #define bar 0x10 + #define bar PCI_BAR(0) | - #define bar 0x14 + #define bar PCI_BAR(1) | - #define bar 0x18 + #define bar PCI_BAR(2) | - #define bar 0x1C + #define bar PCI_BAR(3) | - #define bar 0x20 + #define bar PCI_BAR(4) )
Diffstat (limited to 'lib/libedit')
0 files changed, 0 insertions, 0 deletions