/Proj4/emess.h

http://github.com/route-me/route-me · C Header · 32 lines · 21 code · 8 blank · 3 comment · 0 complexity · b642c6a83f689e5c3d98405ac797f4a0 MD5 · raw file

  1. /* Error message processing header file */
  2. #ifndef EMESS_H
  3. #define EMESS_H
  4. #ifndef lint
  5. static char EMESS_H_ID[] = "@(#)emess.h 4.1 93/03/08 GIE REL";
  6. #endif
  7. struct EMESS {
  8. char *File_name, /* input file name */
  9. *Prog_name; /* name of program */
  10. int File_line; /* approximate line read
  11. where error occured */
  12. };
  13. #ifdef EMESS_ROUTINE /* use type */
  14. /* for emess procedure */
  15. struct EMESS emess_dat = { (char *)0, (char *)0, 0 };
  16. #ifdef sun /* Archaic SunOs 4.1.1, etc. */
  17. extern char *sys_errlist[];
  18. #define strerror(n) (sys_errlist[n])
  19. #endif
  20. #else /* for for calling procedures */
  21. extern struct EMESS emess_dat;
  22. void emess(int, char *, ...);
  23. #endif /* use type */
  24. #endif /* end EMESS_H */