ftp.nice.ch/pub/next/database/plz/xplz.3.4.s.tar.gz#/xplz-3.4/message.c

This is message.c in view mode; [Download] [Up]

/* $Id: message.c,v 2.0 1993/05/12 16:34:15 klute Exp klute $ */

/* 
 * Copyright 1993 Rainer Klute <klute@irb.informatik.uni-dortmund.de>
 *
 * Permission to use, copy, modify, distribute, and sell this software and
 * its documentation for any purpose is hereby granted without fee, provided
 * that the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation. The author makes no representations about the suitability
 * of this software for any purpose. It is provided "as is" without express
 * or implied warranty.
 *
 */

#include <stdio.h>

#include "message.h"


UserInterfaceMethods userInterfaceMethods;




void Message (char *msg)
{
    if (userInterfaceMethods.MsgWrite != (void *) 0)
        userInterfaceMethods.MsgWrite (userInterfaceMethods.uiComponents, msg);
}




void MessageFlush (void)
{
    if (userInterfaceMethods.MsgFlush != (void *) 0)
        userInterfaceMethods.MsgFlush (userInterfaceMethods.uiComponents);
}




void NoteClear (void)
{
    if (userInterfaceMethods.NoteClear != (void *) 0)
        userInterfaceMethods.NoteClear (userInterfaceMethods.uiComponents);
}




void Note (char *msg)
{
    if (userInterfaceMethods.NoteWrite != (void *) 0)
        userInterfaceMethods.NoteWrite (userInterfaceMethods.uiComponents, msg);
}




void OutOfMemory (char *f)
{
    Message ("Speichermangel in Funktion \"");
    Message (f);
    Message ("\"\n");
    MessageFlush ();
}

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.