projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40c95e4
)
settings: Implement MXLOOPS subcommand.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 5 Nov 2011 23:10:54 +0000
(16:10 -0700)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 6 Nov 2011 16:19:23 +0000
(08:19 -0800)
It had been overlooked.
The following commit adds a test.
src/language/utilities/set.q
patch
|
blob
|
history
diff --git
a/src/language/utilities/set.q
b/src/language/utilities/set.q
index ea040cb56b40ba07d5ab8c93a2ef10506811ed6a..c538c8c47ed50f5163868b82bd678ed4a34f6b66 100644
(file)
--- a/
src/language/utilities/set.q
+++ b/
src/language/utilities/set.q
@@
-150,6
+150,13
@@
cmd_set (struct lexer *lexer, struct dataset *ds)
settings_set_include (cmd.inc == STC_ON);
if (cmd.sbc_mxerrs)
settings_set_max_messages (MSG_S_ERROR, cmd.n_mxerrs[0]);
+ if (cmd.sbc_mxloops)
+ {
+ if (cmd.n_mxloops[0] >= 1)
+ settings_set_mxloops (cmd.n_mxloops[0]);
+ else
+ msg (SE, _("%s must be at least 1."), "MXLOOPS");
+ }
if (cmd.sbc_mxwarns)
settings_set_max_messages (MSG_S_WARNING, cmd.n_mxwarns[0]);
if (cmd.sbc_rib)