diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | pc/ChangeLog | 5 | ||||
-rw-r--r-- | pc/Makefile.tst | 2 | ||||
-rw-r--r-- | profile.c | 5 | ||||
-rw-r--r-- | test/ChangeLog | 5 | ||||
-rw-r--r-- | test/Makefile.am | 2 |
6 files changed, 21 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2015-04-08 Eli Zaretskii <eliz@gnu.org> + + * profile.c (set_prof_file): Interpret a file name of "-" to mean + standard output. + 2015-04-06 Arnold D. Robbins <arnold@skeeve.com> * awk.h (force_number): Add `!= 0' check to bitwise operation. diff --git a/pc/ChangeLog b/pc/ChangeLog index 2a241b19..600c49a1 100644 --- a/pc/ChangeLog +++ b/pc/ChangeLog @@ -1,3 +1,8 @@ +2015-04-08 Eli Zaretskii <eliz@gnu.org> + + * Makefile.tst (mpfrmemok1): Use -p- instead of -p/dev/stdout, for + more portability. + 2015-04-07 Arnold D. Robbins <arnold@skeeve.com> * Makefile.tst: Sync with mainline. diff --git a/pc/Makefile.tst b/pc/Makefile.tst index 4fb68df9..77b9ecf6 100644 --- a/pc/Makefile.tst +++ b/pc/Makefile.tst @@ -979,7 +979,7 @@ mpfrrem: mpfrmemok1: @echo $@ - @$(AWK) -p/dev/stdout -M -f "$(srcdir)"/$@.awk 2>&1 | sed 1d > _$@ + @$(AWK) -p- -M -f "$(srcdir)"/$@.awk 2>&1 | sed 1d > _$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ jarebug:: @@ -66,7 +66,10 @@ void set_prof_file(const char *file) { assert(file != NULL); - prof_fp = fopen(file, "w"); + if (strcmp(file, "-") == 0) + prof_fp = stdout; + else + prof_fp = fopen(file, "w"); if (prof_fp == NULL) { warning(_("could not open `%s' for writing: %s"), file, strerror(errno)); diff --git a/test/ChangeLog b/test/ChangeLog index 292e9615..d0dc131a 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,8 @@ +2015-04-08 Eli Zaretskii <eliz@gnu.org> + + * Makefile.am (mpfrmemok1): Use -p- for portability and + compatibility with pc/Makefile.tst. + 2015-03-31 Arnold D. Robbins <arnold@skeeve.com> * Makefile.am (indirectbuiltin): New test. diff --git a/test/Makefile.am b/test/Makefile.am index 515a26e2..ec84a17f 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1820,7 +1820,7 @@ mpfrrem: mpfrmemok1: @echo $@ - @$(AWK) -p/dev/stdout -M -f "$(srcdir)"/$@.awk 2>&1 | sed 1d > _$@ + @$(AWK) -p- -M -f "$(srcdir)"/$@.awk 2>&1 | sed 1d > _$@ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ jarebug:: |