1 |
/**
|
2 |
* Navit, a modular navigation system.
|
3 |
* Copyright (C) 2005-2008 Navit Team
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* version 2 as published by the Free Software Foundation.
|
8 |
*
|
9 |
* This program is distributed in the hope that it will be useful,
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12 |
* GNU General Public License for more details.
|
13 |
*
|
14 |
* You should have received a copy of the GNU General Public License
|
15 |
* along with this program; if not, write to the
|
16 |
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
17 |
* Boston, MA 02110-1301, USA.
|
18 |
*/
|
19 |
|
20 |
/* Error message processing header file */
|
21 |
#ifndef EMESS_H
|
22 |
#define EMESS_H
|
23 |
|
24 |
#ifndef lint
|
25 |
/*static char EMESS_H_ID[] = "@(#)emess.h 4.1 93/03/08 GIE REL";*/
|
26 |
#endif
|
27 |
|
28 |
struct EMESS {
|
29 |
char *File_name, /* input file name */
|
30 |
*Prog_name; /* name of program */
|
31 |
int File_line; /* approximate line read
|
32 |
where error occured */
|
33 |
};
|
34 |
|
35 |
#ifdef EMESS_ROUTINE /* use type */
|
36 |
/* for emess procedure */
|
37 |
struct EMESS emess_dat = { (char *)0, (char *)0, 0 };
|
38 |
|
39 |
#ifdef sun /* Archaic SunOs 4.1.1, etc. */
|
40 |
extern char *sys_errlist[];
|
41 |
#define strerror(n) (sys_errlist[n])
|
42 |
#endif
|
43 |
|
44 |
#else /* for for calling procedures */
|
45 |
|
46 |
extern struct EMESS emess_dat;
|
47 |
void emess(int, char *, ...);
|
48 |
|
49 |
#endif /* use type */
|
50 |
|
51 |
#endif /* end EMESS_H */
|