fix: compile broken
This commit is contained in:
parent
0e62bc5f9e
commit
dfb25a03d8
4 changed files with 29 additions and 29 deletions
|
@ -2,7 +2,7 @@
|
||||||
Program Name: mess
|
Program Name: mess
|
||||||
File name: mess.c
|
File name: mess.c
|
||||||
Purpose: put user information to the screen for the text version
|
Purpose: put user information to the screen for the text version
|
||||||
of osp--maybe error messages or any kind of user information
|
of osp--maybe error messages or any kind of user information
|
||||||
or question.
|
or question.
|
||||||
|
|
||||||
Last Update: Tuesday 13 August 1991
|
Last Update: Tuesday 13 August 1991
|
||||||
|
@ -15,47 +15,50 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* --- includes --- */
|
/* --- includes --- */
|
||||||
#include "defn.h" /* IMPORT: stdio.h */
|
|
||||||
#include "textOutput.h" /* IMPORT: UpdateTextOutput */
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
/* int vfprintf (FILE *stream, const char *format, va_list arglist); */
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include "defn.h" /* IMPORT: stdio.h */
|
||||||
|
#include "textOutput.h" /* IMPORT: UpdateTextOutput */
|
||||||
|
/* int vfprintf (FILE *stream, const char *format, va_list arglist);
|
||||||
|
*/
|
||||||
|
|
||||||
/* ---- Exports ---- */
|
/* ---- Exports ---- */
|
||||||
void messagef(char *format, ...)
|
void messagef(char *format, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
va_start (args,format);
|
va_start(args, format);
|
||||||
vfprintf (stdout, format, args);
|
vfprintf(stdout, format, args);
|
||||||
va_end(args);
|
va_end(args);
|
||||||
UpdateTextOutput();
|
UpdateTextOutput();
|
||||||
}
|
}
|
||||||
|
|
||||||
void message(char *message)
|
void message(char *message)
|
||||||
{
|
{
|
||||||
/* prints the message to the screen*/
|
/* prints the message to the screen*/
|
||||||
fprintf(stdout,"%s",message);
|
fprintf(stdout, "%s", message);
|
||||||
UpdateTextOutput();
|
UpdateTextOutput();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void popupMessage(char *message)
|
void popupMessage(char *message)
|
||||||
{
|
{
|
||||||
fprintf(stdout,"%s",message);
|
fprintf(stdout, "%s", message);
|
||||||
UpdateTextOutput();
|
UpdateTextOutput();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void popUpErrorMessage()
|
void popUpErrorMessage()
|
||||||
{
|
{
|
||||||
fprintf(stdout,"ERROR: Memory allocation problem.\nPlease exit and restart this program\n");
|
fprintf(stdout,
|
||||||
/* since this is the text version I want the program to exit if this
|
"ERROR: Memory allocation problem.\nPlease exit and restart "
|
||||||
memory allocation error occurs*/
|
"this program\n");
|
||||||
UpdateTextOutput();
|
/* since this is the text version I want the program to exit if this
|
||||||
sleep(10);
|
memory allocation error occurs*/
|
||||||
|
UpdateTextOutput();
|
||||||
exit();
|
sleep(10);
|
||||||
|
|
||||||
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#include <X11/copyright.h>
|
|
||||||
|
|
||||||
/* $XConsortium: Sheet.c,v 1.2 88/10/25 17:40:25 swick Exp $ */
|
/* $XConsortium: Sheet.c,v 1.2 88/10/25 17:40:25 swick Exp $ */
|
||||||
/* Copyright Massachusetts Institute of Technology 1987, 1988 */
|
/* Copyright Massachusetts Institute of Technology 1987, 1988 */
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#include <X11/copyright.h>
|
|
||||||
|
|
||||||
/* $XConsortium: Sheet.h,v 1.2 88/10/25 17:22:09 swick Exp $ */
|
/* $XConsortium: Sheet.h,v 1.2 88/10/25 17:22:09 swick Exp $ */
|
||||||
/* Copyright Massachusetts Institute of Technology 1987, 1988 */
|
/* Copyright Massachusetts Institute of Technology 1987, 1988 */
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#include <X11/copyright.h>
|
|
||||||
|
|
||||||
/* $XConsortium: SheetP.h,v 1.2 88/10/25 17:37:59 swick Exp $ */
|
/* $XConsortium: SheetP.h,v 1.2 88/10/25 17:37:59 swick Exp $ */
|
||||||
/* Copyright Massachusetts Institute of Technology 1987, 1988 */
|
/* Copyright Massachusetts Institute of Technology 1987, 1988 */
|
||||||
|
|
Loading…
Reference in a new issue