X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fterminal%2Fmsg-ui.c;h=383ccb8cd35b112c35e1ea9f82ad39f4dfcb4aa2;hb=c0823c90e5209ed2bf60ed2785a480158ea75e8d;hp=682d753d8fbd36200f68e33677c239e5ef5b6c17;hpb=a1efcf97ca2f75f4be6a0389ff2372c03ed2d4e1;p=pspp diff --git a/src/ui/terminal/msg-ui.c b/src/ui/terminal/msg-ui.c index 682d753d8f..383ccb8cd3 100644 --- a/src/ui/terminal/msg-ui.c +++ b/src/ui/terminal/msg-ui.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,22 +18,24 @@ #include "msg-ui.h" -#include "unilbrk.h" -#include "localcharset.h" - -#include -#include #include +#include #include +#include #include #include -#include -#include +#include +#include + #include +#include #include #include #include +#include "unilbrk.h" +#include "localcharset.h" + #include "gettext.h" #define _(msgid) gettext (msgid) #define N_(msgid) msgid @@ -93,7 +95,7 @@ check_msg_count (struct source_stream *ss) if (settings_get_errorbreak () && error_count) msg (MN, _("Terminating execution of syntax file due to error.")); else if (error_count > settings_get_mxerrs () ) - msg (MN, _("Errors (%d) exceeds limit (%d)."), + msg (MN, _("Errors (%d) exceed limit (%d)."), error_count, settings_get_mxerrs ()); else if (error_count + warning_count > settings_get_mxwarns () ) msg (MN, _("Warnings (%d) exceed limit (%d)."), @@ -187,9 +189,9 @@ handle_msg (const struct msg *m) /* Disable screen output devices, because the error should already have been reported to the screen with the dump_message call above. */ - outp_enable_device (false, OUTP_DEV_SCREEN); + output_set_type_enabled (false, OUTPUT_DEVICE_SCREEN); tab_output_text (TAB_LEFT, ds_cstr (&string)); - outp_enable_device (true, OUTP_DEV_SCREEN); + output_set_type_enabled (true, OUTPUT_DEVICE_SCREEN); } ds_destroy (&string);