Navit SVN

/work/compile/navit/src/navit/tools/gpx2navit_txt/src/emess.h

00001 
00020 /* Error message processing header file */
00021 #ifndef EMESS_H
00022 #define EMESS_H
00023 
00024 #ifndef lint
00025 /*static char EMESS_H_ID[] = "@(#)emess.h       4.1     93/03/08        GIE     REL";*/
00026 #endif
00027 
00028 struct EMESS {
00029         char    *File_name,     /* input file name */
00030                         *Prog_name;     /* name of program */
00031         int             File_line;      /* approximate line read
00032                                                         where error occured */
00033 };
00034 
00035 #ifdef EMESS_ROUTINE    /* use type */
00036 /* for emess procedure */
00037 struct EMESS emess_dat = { (char *)0, (char *)0, 0 };
00038 
00039 #ifdef sun /* Archaic SunOs 4.1.1, etc. */
00040 extern char *sys_errlist[];
00041 #define strerror(n) (sys_errlist[n])
00042 #endif
00043 
00044 #else   /* for for calling procedures */
00045 
00046 extern struct EMESS emess_dat;
00047 void emess(int, char *, ...);
00048 
00049 #endif /* use type */
00050 
00051 #endif /* end EMESS_H */