PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
 5#ifndef lint
 6static char EMESS_H_ID[] = "@(#)emess.h	4.1	93/03/08	GIE	REL";
 7#endif
 8
 9struct EMESS {
10	char	*File_name,	/* input file name */
11			*Prog_name;	/* name of program */
12	int		File_line;	/* approximate line read
13							where error occured */
14};
15
16#ifdef EMESS_ROUTINE	/* use type */
17/* for emess procedure */
18struct EMESS emess_dat = { (char *)0, (char *)0, 0 };
19
20#ifdef sun /* Archaic SunOs 4.1.1, etc. */
21extern char *sys_errlist[];
22#define strerror(n) (sys_errlist[n])
23#endif
24
25#else	/* for for calling procedures */
26
27extern struct EMESS emess_dat;
28void emess(int, char *, ...);
29
30#endif /* use type */
31
32#endif /* end EMESS_H */