File: emess.h

package info (click to toggle)
proj 4.3.3-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 920 kB
  • ctags: 1,335
  • sloc: ansic: 9,295; makefile: 140
file content (32 lines) | stat: -rw-r--r-- 711 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* Error message processing header file */
#ifndef EMESS_H
#define EMESS_H

#ifndef lint
static char EMESS_H_ID[] = "@(#)emess.h	4.1	93/03/08	GIE	REL";
#endif

struct EMESS {
	char	*File_name,	/* input file name */
			*Prog_name;	/* name of program */
	int		File_line;	/* approximate line read
							where error occured */
};

#ifdef EMESS_ROUTINE	/* use type */
/* for emess procedure */
struct EMESS emess_dat = { (char *)0, (char *)0, 0 };

#ifdef sun /* Archaic SunOs 4.1.1, etc. */
extern char *sys_errlist[];
#define strerror(n) (sys_errlist[n])
#endif

#else	/* for for calling procedures */

extern struct EMESS emess_dat;
void emess(int, char *, ...);

#endif /* use type */

#endif /* end EMESS_H */