home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / oper_sys / emerald / emrldsys.lha / Language / Compiler / error.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-16  |  946 b   |  40 lines

  1. /*
  2.  * @(#)error.h    1.2  3/18/87
  3.  */
  4. #ifndef error_h
  5. #define error_h
  6. #ifndef NULL
  7. #include <stdio.h>
  8. #endif
  9. #ifndef scan_h
  10. #include "scan.h"
  11. #endif
  12.  
  13. extern int numberOfSyntaxErrors, numberOfSemanticErrors;
  14. extern char error_buffer[];
  15. #define BeginErrorMessage(p) \
  16.     { \
  17.     fprintf(stdout, "\"%s\", line %d: ", \
  18.         currentFileName, (p)->lineNumber); \
  19.     numberOfSemanticErrors++; \
  20.     }
  21. #define BeginWarningMessage(p) \
  22.     { \
  23.     fprintf(stdout, "\"%s\", line %d: (warning) ", \
  24.         currentFileName, (p)->lineNumber); \
  25.     }
  26. #define ErrorWrite(A) fprintf(stdout, A)
  27. #define EndErrorMessage() fprintf(stdout, ".\n")
  28.  
  29. extern void BeginSyntaxErrorMessage();
  30. extern void NotImplemented(/* p, s */);
  31. /* NodePtr p; char *s; */
  32. extern void CheckForErrors();
  33. extern void ErrorMessage(/* p, s */);
  34. /* NodePtr p; char *s; */
  35. extern void WarningMessage(/* p, s */);
  36. /* NodePtr p; char *s; */
  37. extern int errno, sys_nerr;
  38. extern char *sys_errlist[];
  39. #endif
  40.