#include <config.h>
#include <libpspp/message.h>
#include "message-dialog.h"
+#include "progname.h"
#include <gtk/gtk.h>
switch (klass)
{
case SE:
- case IE:
case DE:
case ME:
message_type = GTK_MESSAGE_ERROR;
message_type = GTK_MESSAGE_WARNING;
break;
case SM:
- case IS:
case MM:
default:
message_type = GTK_MESSAGE_INFO;
msg = g_strdup(_("Script Error"));
break;
- case IE:
- case IS:
- msg = g_strdup(_("Installation Error"));
- break;
-
case DE:
case DW:
msg = g_strdup(_("Data File Error"));
msg(ME, "Assertion failed: %s:%d; (%s)\n",file,line,expr);
}
-/* The GUI is always interactive.
- So this function does nothing */
-void
-err_cond_fail(void)
-{
-}
-
-
+/* Writes MESSAGE formatted with printf, to stderr, if the
+ verbosity level is at least LEVEL. */
void
-err_failure(void)
+verbose_msg (int level, const char *format, ...)
{
- msg(ME, _("Terminating NOW due to fatal error"));
- gtk_main_quit();
+ /* Do nothing for now. */
}
-
/* FIXME: This is a stub .
* A temporary workaround until getl.c is rearranged
*/
void
err_location (struct file_locator *f)
{
- f->filename = 0;
+ f->file_name = 0;
f->line_number = -1;
}