/* $Header: /local/src/CVS/nickle/error.c,v 1.18 2001/03/15 18:22:23 keithp Exp $ */

/*
 * Copyright (C) 1988-2001 Keith Packard and Bart Massey.
 * All Rights Reserved.  See the file COPYING in this directory
 * for licensing information.
 */

#include	"nickle.h"
#include	"gram.h"

Bool	signalError;

void
PrintError (char *s, ...)
{
    va_list args;

    va_start (args, s);
    FileVPrintf (FileStderr, s, args);
    va_end (args);
}

void
RaiseError (char *s, ...)
{
    va_list	args;

    va_start (args, s);
    FileVPrintf (FileStderr, s, args);
    va_end (args);
    FilePrintf (FileStderr, "\n");
    SetSignalError ();
}
