From 40c95e4fddf5e16df9cf634d32bec205c3cbfb18 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 5 Nov 2011 16:09:18 -0700 Subject: [PATCH] settings: Update default MXLOOPS and document. MXLOOPS should be 40 by default, for compatibility. --- doc/flow-control.texi | 1 + doc/utilities.texi | 1 + src/data/settings.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/flow-control.texi b/doc/flow-control.texi index 892887e211..b396e1f3b1 100644 --- a/doc/flow-control.texi +++ b/doc/flow-control.texi @@ -169,6 +169,7 @@ condition on @cmd{END LOOP} will always execute at least once. If neither the index clause nor either condition clause is present, then the loop is executed MXLOOPS (@pxref{SET}) times. +The default MXLOOPS is 40. @cmd{BREAK} also terminates @cmd{LOOP} execution (@pxref{BREAK}). diff --git a/doc/utilities.texi b/doc/utilities.texi index 5d664bc460..a42adb46a2 100644 --- a/doc/utilities.texi +++ b/doc/utilities.texi @@ -588,6 +588,7 @@ Currently not used. @item MXLOOPS The maximum number of iterations for an uncontrolled loop (@pxref{LOOP}). +The default MXLOOPS is 40. @item SEED The initial pseudo-random number seed. Set to a real number or to diff --git a/src/data/settings.c b/src/data/settings.c index 0868a33189..95fda576da 100644 --- a/src/data/settings.c +++ b/src/data/settings.c @@ -105,7 +105,7 @@ static struct settings the_settings = { true, /* printback */ true, /* mprint */ - 1, /* mxloops */ + 40, /* mxloops */ 64L * 1024 * 1024, /* workspace */ {FMT_F, 8, 2}, /* default_format */ false, /* testing_mode */ -- 2.30.2