projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cab2119
)
tests: loosen/tighten the always_defined_macros check
author
Jim Meyering
<meyering@redhat.com>
Sun, 9 May 2010 16:29:22 +0000
(18:29 +0200)
committer
Jim Meyering
<meyering@redhat.com>
Sun, 9 May 2010 16:29:22 +0000
(18:29 +0200)
* cfg.mk (.re-defmac): Generate better regexps: allow white space
before the '#', and append a word-boundary requirement.
Without the latter, #define NULL_DEV ... would evoke a false-positive.
cfg.mk
patch
|
blob
|
history
diff --git
a/cfg.mk
b/cfg.mk
index
6153f53
..
d417461
100644
(file)
--- a/
cfg.mk
+++ b/
cfg.mk
@@
-128,7
+128,7
@@
gl_extract_significant_defines_ = \
done; \
) | sort -u \
| grep -Ev '^ATTRIBUTE_NORETURN' \
- | sed 's/^/^
# *define /'
\
+ | sed 's/^/^
*# *define /;s/$$/\\>/'
\
> $@-t
@mv $@-t $@