[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[q2c 02/12] settings: Update default MXLOOPS and document.
From: |
Ben Pfaff |
Subject: |
[q2c 02/12] settings: Update default MXLOOPS and document. |
Date: |
Sat, 5 Nov 2011 20:11:24 -0700 |
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 deletions(-)
diff --git a/doc/flow-control.texi b/doc/flow-control.texi
index 892887e..b396e1f 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 93701fd..ef4774b 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 0868a33..95fda57 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 */
--
1.7.2.5
- [q2c 00/12] Fix i18n problems in q2c-generated strings, Ben Pfaff, 2011/11/05
- [q2c 01/12] SET: Warn for more obsolete subcommands., Ben Pfaff, 2011/11/05
- [q2c 04/12] LOOP: Correctly implement MXLOOPS and add a test., Ben Pfaff, 2011/11/05
- [q2c 03/12] settings: Implement MXLOOPS subcommand., Ben Pfaff, 2011/11/05
- [q2c 09/12] lexer: New function lex_force_string_or_id()., Ben Pfaff, 2011/11/05
- [q2c 08/12] lexer: New functions lex_spec_missing(), lex_spec_only_once()., Ben Pfaff, 2011/11/05
- [q2c 07/12] lexer: Use error helper functions in more situations., Ben Pfaff, 2011/11/06
- [q2c 12/12] q2c: Remove gettext.h #include from generated code., Ben Pfaff, 2011/11/06
- [q2c 02/12] settings: Update default MXLOOPS and document.,
Ben Pfaff <=
- [q2c 06/12] lexer: Drop lexer parameter from lex_sbc_missing()., Ben Pfaff, 2011/11/06
- [q2c 11/12] q2c: Remove final untranslated strings from q2c.c., Ben Pfaff, 2011/11/06
- [q2c 10/12] q2c: Use new subc_list_error() to report too many subcommands., Ben Pfaff, 2011/11/06
- [q2c 05/12] lexer: New function lex_error_expecting()., Ben Pfaff, 2011/11/06
- Re: [q2c 00/12] Fix i18n problems in q2c-generated strings, John Darrington, 2011/11/06