/*
    ####             #    #     # #
    #   #            #    #       #          The FreeWare C library for 
    #   #  ##   ###  #  # #     # ###             RISC OS machines
    #   # #  # #     # #  #     # #  #   ___________________________________
    #   # ####  ###  ##   #     # #  #                                      
    #   # #        # # #  #     # #  #    Please refer to the accompanying
    ####   ### ####  #  # ##### # ###    documentation for conditions of use
    ________________________________________________________________________

    File:    MsgTrans.ReportPS.c
    Author:  Copyright  1994 Tony Houghton
    Version: 1.00 (05 Nov 1994)
    Purpose: Match a token in a Messages file and report it as an error
    
*/

#include "Desk.Error.h"
#include "Desk.MsgTrans.h"

void	Desk_MsgTrans_ReportPS(Desk_msgtrans_filedesc *filedesc, const char *token,
                            Desk_bool fatal,
                            const char *p0, const char *p1, const char *p2, const char *p3)
{
  char buffer[252];

  Desk_MsgTrans_LookupPS(filedesc, token, buffer, 252,
                             p0, p1, p2, p3);
  if (fatal)
    Desk_Error_ReportFatal(0, buffer);
  else
    Desk_Error_Report(0, buffer);

  return;
}
