diff --git a/src/bap/mess.c b/src/bap/mess.c index 27f295e..bc7ae30 100644 --- a/src/bap/mess.c +++ b/src/bap/mess.c @@ -1,8 +1,8 @@ -/* +/* Program Name: mess File name: mess.c 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. Last Update: Tuesday 13 August 1991 @@ -15,47 +15,50 @@ */ /* --- includes --- */ -#include "defn.h" /* IMPORT: stdio.h */ -#include "textOutput.h" /* IMPORT: UpdateTextOutput */ -#include #include -/* int vfprintf (FILE *stream, const char *format, va_list arglist); */ +#include +#include + +#include "defn.h" /* IMPORT: stdio.h */ +#include "textOutput.h" /* IMPORT: UpdateTextOutput */ +/* int vfprintf (FILE *stream, const char *format, va_list arglist); + */ /* ---- Exports ---- */ void messagef(char *format, ...) { - va_list args; - va_start (args,format); - vfprintf (stdout, format, args); - va_end(args); - UpdateTextOutput(); + va_list args; + va_start(args, format); + vfprintf(stdout, format, args); + va_end(args); + UpdateTextOutput(); } void message(char *message) { - /* prints the message to the screen*/ - fprintf(stdout,"%s",message); - UpdateTextOutput(); - return; + /* prints the message to the screen*/ + fprintf(stdout, "%s", message); + UpdateTextOutput(); + return; } void popupMessage(char *message) { - fprintf(stdout,"%s",message); - UpdateTextOutput(); - return; + fprintf(stdout, "%s", message); + UpdateTextOutput(); + return; } - void popUpErrorMessage() { - fprintf(stdout,"ERROR: Memory allocation problem.\nPlease exit and restart this program\n"); -/* since this is the text version I want the program to exit if this - memory allocation error occurs*/ - UpdateTextOutput(); - sleep(10); - - exit(); + fprintf(stdout, + "ERROR: Memory allocation problem.\nPlease exit and restart " + "this program\n"); + /* since this is the text version I want the program to exit if this + memory allocation error occurs*/ + UpdateTextOutput(); + sleep(10); + exit(0); } diff --git a/src/staden/Sheet.c b/src/staden/Sheet.c index fa07b27..725471c 100644 --- a/src/staden/Sheet.c +++ b/src/staden/Sheet.c @@ -1,4 +1,3 @@ -#include /* $XConsortium: Sheet.c,v 1.2 88/10/25 17:40:25 swick Exp $ */ /* Copyright Massachusetts Institute of Technology 1987, 1988 */ diff --git a/src/staden/Sheet.h b/src/staden/Sheet.h index a938e2a..12944f6 100644 --- a/src/staden/Sheet.h +++ b/src/staden/Sheet.h @@ -1,4 +1,3 @@ -#include /* $XConsortium: Sheet.h,v 1.2 88/10/25 17:22:09 swick Exp $ */ /* Copyright Massachusetts Institute of Technology 1987, 1988 */ diff --git a/src/staden/SheetP.h b/src/staden/SheetP.h index 4c51e75..fbabb31 100644 --- a/src/staden/SheetP.h +++ b/src/staden/SheetP.h @@ -1,4 +1,3 @@ -#include /* $XConsortium: SheetP.h,v 1.2 88/10/25 17:37:59 swick Exp $ */ /* Copyright Massachusetts Institute of Technology 1987, 1988 */