Release 5.2.1 A few bug-fixes present in the distributed package for 5.2.1 are not yet commited upstream because the repository is in the process of migration from cvs to git. * src/graphics.c (plot_betweencurves): plot 'foo' with filledcurves below y=bar would fail to identify "below" regions where the y value foo[x] at the start or end of the region was exactly equal to bar. * src/axis.c (gen_tics): `set log x; set xtics foo` would always place the first axis tic at foo rather than at (foo / base^N) for suitable N. * src/win/winmain.c (ConsolePutS, ConsolePutCh): Use standard file IO instead of Console API to enable word-wrapping on Windows 10 and to allow for redirection of stdout/stderr. * term/post.trm: Raise the limit on number of relative moves before a "stroke" so that a full circle as drawn by do_arc() does not glitch due to insertion of a "stroke xx yy M" sequence that resets the dot/dash pattern. * src/plot2d.c (eval_plots): If the range for logscaled y axis is empty, e.g. the plot holds a single point, auto-extend the range rather than giving up with an error.
16 lines
451 B
C
16 lines
451 B
C
$NetBSD: patch-src_command.c,v 1.3 2017/11/03 15:00:10 adam Exp $
|
|
|
|
Fix for some platforms where WEXITSTATUS gets undefined.
|
|
|
|
--- src/command.c.orig 2017-11-03 14:50:58.000000000 +0000
|
|
+++ src/command.c
|
|
@@ -3640,6 +3640,9 @@ do_system_func(const char *cmd, char **o
|
|
#if defined(_WIN32) && !defined(WEXITSTATUS)
|
|
#define WEXITSTATUS(error) (error)
|
|
#endif
|
|
+#if !defined(WEXITSTATUS)
|
|
+#include <sys/wait.h>
|
|
+#endif
|
|
|
|
static int
|
|
report_error(int ierr)
|