home *** CD-ROM | disk | FTP | other *** search
- /*=========================================================================
-
- ATOC error/warning module
-
- =========================================================================*/
-
- #include <stdio.h>
- #include "atoc.h"
-
-
- /*-------------------------------------------------------------------------
- error( s ) handles the error message.
- -------------------------------------------------------------------------*/
- error( s )
- char *s;
- {
- printf( "%s\n", buffer );
- printf( "%s:%d: ERROR: %s\n", filename, linenumber, s );
- exitcode = 1;
- }
- /*-------------------------------------------------------------------------
- warning( s ) handles the warning message.
- -------------------------------------------------------------------------*/
- warning( s )
- char *s;
- {
- printf( "%s\n", buffer );
- printf( "%s:%d: WARNING: %s\n", filename, linenumber, s );
- }
- /*=======================================================================*/