Fix issue with test-mdict generation:
we shall not replace "{" by "{\n" as { is not part of the language.
This commit is contained in:
1 parent
693c491f1e
commit
37225eaf57
1 file changed
+1
-1
+1
-1
@@ -96,7 +96,7 @@ coverage-dir:
|
||||
coverage-dir/%.c: %.c coverage-dir
|
||||
awk '/START_COVERAGE/ { printit=1} (printit == 0) { print }' $< > coverage-dir/first.c
|
||||
awk ' printit { print } /END_COVERAGE/ { printit=1}' $< > coverage-dir/end.c
|
||||
$(CC) -E -std=c99 -I. -I.. -DNDEBUG -DWITHIN_COVERAGE $< |grep -v '^#' |awk ' /END_COVERAGE/ { printit=0} printit { print } /START_COVERAGE/ { printit=1 }' |perl -pi -e 's/;/;\n/g ; s/}/}\n/g ; s/{/{\n/g' > coverage-dir/middle.c
|
||||
$(CC) -E -std=c99 -I. -I.. -DNDEBUG -DWITHIN_COVERAGE $< |grep -v '^#' |awk ' /END_COVERAGE/ { printit=0} printit { print } /START_COVERAGE/ { printit=1 }' |perl -pi -e "s/;(?![\"'])/;\n/g ; s/}(?![\"'])/}\n/g ; s/{(?![\"'])/{\n/g" > coverage-dir/middle.c
|
||||
cat coverage-dir/first.c coverage-dir/middle.c coverage-dir/end.c > coverage-dir/$<
|
||||
|
||||
coverage-test/%.c: coverage-dir/%.c
|
||||
|
||||
Reference in new issue
Block a user