From: Ben Pfaff Date: Sat, 5 Nov 2011 23:09:18 +0000 (-0700) Subject: settings: Update default MXLOOPS and document. X-Git-Tag: v0.7.9~111 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40c95e4fddf5e16df9cf634d32bec205c3cbfb18;p=pspp-builds.git settings: Update default MXLOOPS and document. MXLOOPS should be 40 by default, for compatibility. --- diff --git a/doc/flow-control.texi b/doc/flow-control.texi index 892887e2..b396e1f3 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 5d664bc4..a42adb46 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 0868a331..95fda576 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 */