|
From: Ethan M. <merritt@u.washington.edu> - 2010-02-18 18:36:39
|
On Thursday 18 February 2010 08:15:59 Petr Mikulik wrote:
[re: modifying the code to allow a trailing definition inside a plot command]
> I agree -- if it is easily possible to comply with previous versions of
> gnuplot, we should keep this compatibility. Morever, if users wish this.
> Imperfectins in documentation should then be improved.
After applying the proposed patch (copied below), I get:
gnuplot> plot for [i=1:10] i,a=0
Segmentation fault
On Sunday 14 February 2010, Teo S Bernhard wrote:
diff -r ca8b5fbc043a plot2d.c
--- a/plot2d.c Sun Feb 14 14:45:12 2010 +0100
+++ b/plot2d.c Sun Feb 14 16:45:27 2010 +0100
@@ -1459,7 +1459,7 @@
if (is_definition(c_token)) {
define();
- if (!equals(c_token,",")) {
+ if (!END_OF_COMMAND && !equals(c_token,",")) {
was_definition = TRUE;
continue;
}
@@ -2174,7 +2174,7 @@
if (is_definition(c_token)) {
define();
- if (!equals(c_token,",")) {
+ if (!END_OF_COMMAND && !equals(c_token,",")) {
was_definition = TRUE;
continue;
}
|