From 2a9e84da09c7c9a604471fb9591e401588db49d1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 5 Nov 2011 16:10:54 -0700 Subject: [PATCH] settings: Implement MXLOOPS subcommand. It had been overlooked. The following commit adds a test. --- src/language/utilities/set.q | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/language/utilities/set.q b/src/language/utilities/set.q index ea040cb5..c538c8c4 100644 --- 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) -- 2.30.2