repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git]
/
memcheck
/
tests
/
filter_stanza.awk
blob
99aad77e00227cac3bae39525c511ff3cda81d48
1
BEGIN
{
2
main=
""
3
stanza=
""
4
}
5
/
main
/ {
6
if
(
$
0
!=
main
) {
7
# first or different stanza
8
print
stanza$
0
9
main=$
0
10
stanza=
""
11
}
else
{
12
# duplicate stanza
13
main=$
0
14
stanza=
""
15
}
16
next
17
}
18
19
{
20
# other lines
21
stanza = stanza $
0
"
\n
"
22
}