00001
00002
00003
00004
00005
00006
00007
00008 #include "cddefines.h"
00009 #include "warnings.h"
00010
00011 t_warnings warnings;
00012
00013 void wcnint(void)
00014 {
00015
00016 DEBUG_ENTRY( "wcnint()" );
00017
00018
00019 warnings.nwarn = 0;
00020 warnings.ncaun = 0;
00021 warnings.nnote = 0;
00022 warnings.nbang = 0;
00023 return;
00024 }
00025
00026
00027 void warnin(char *chLine)
00028 {
00029
00030 DEBUG_ENTRY( "warnin()" );
00031
00032 if( warnings.nwarn >= LIMWCN )
00033 {
00034 static bool lgFirst=true;
00035 if( lgFirst )
00036 fprintf( ioQQQ,
00037 " Too many warnings have been entered; increase the value of LIMWCN everywhere in the code.\n" );
00038 lgFirst = false;
00039 }
00040 else
00041 {
00042 strcpy( warnings.chWarnln[warnings.nwarn], chLine );
00043 }
00044
00045 ++warnings.nwarn;
00046 return;
00047 }
00048
00049
00050 void notein(char *chLine)
00051 {
00052
00053 DEBUG_ENTRY( "notein()" );
00054
00055 if( warnings.nnote >= LIMWCN )
00056 {
00057 static bool lgFirst=true;
00058 if( lgFirst )
00059 fprintf( ioQQQ,
00060 " Too many notes have been entered; increase the value of LIMWCN everywhere in the code.\n" );
00061 lgFirst = false;
00062 }
00063 else
00064 {
00065 strcpy( warnings.chNoteln[warnings.nnote], chLine );
00066 }
00067
00068 ++warnings.nnote;
00069 return;
00070 }
00071
00072
00073 void bangin(char *chLine)
00074 {
00075
00076 DEBUG_ENTRY( "bangin()" );
00077
00078 if( warnings.nbang >= LIMWCN )
00079 {
00080 static bool lgFirst=true;
00081 if( lgFirst )
00082 fprintf( ioQQQ,
00083 " Too many surprises have been entered; increase the value of LIMWCN everywhere in the code.\n" );
00084 lgFirst = false;
00085 }
00086 else
00087 {
00088 strcpy( warnings.chBangln[warnings.nbang], chLine );
00089 }
00090
00091 ++warnings.nbang;
00092 return;
00093 }
00094
00095
00096 void caunin(char *chLine)
00097 {
00098
00099 DEBUG_ENTRY( "caunin()" );
00100
00101 if( warnings.ncaun >= LIMWCN )
00102 {
00103 static bool lgFirst=true;
00104 if( lgFirst )
00105 fprintf( ioQQQ,
00106 " Too many cautions have been entered; increase the value of LIMWCN everywhere in the code.\n" );
00107 lgFirst = false;
00108 }
00109 else
00110 {
00111 strcpy( warnings.chCaunln[warnings.ncaun], chLine );
00112 }
00113
00114 ++warnings.ncaun;
00115 return;
00116 }