xref: /dragonfly/usr.bin/bc/extern.h (revision 1847e88f)
1 /*
2  * $OpenBSD: extern.h,v 1.5 2004/10/19 07:36:51 otto Exp $
3  * $DragonFly: src/usr.bin/bc/extern.h,v 1.2 2005/04/21 18:50:22 swildner Exp $
4  */
5 
6 /*
7  * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
8  *
9  * Permission to use, copy, modify, and distribute this software for any
10  * purpose with or without fee is hereby granted, provided that the above
11  * copyright notice and this permission notice appear in all copies.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
14  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
16  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
19  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20  */
21 
22 #include <sys/types.h>
23 
24 #include <stdio.h>
25 
26 struct lvalue {
27 	ssize_t load;
28 	ssize_t store;
29 };
30 
31 int		yylex(void);
32 void		yyerror(char *);
33 void		fatal(const char *);
34 void		abort_line(int);
35 
36 extern int	lineno;
37 extern char	*yytext;
38 extern FILE	*yyin;
39 extern int	fileindex;
40 extern int	sargc;
41 extern char	**sargv;
42 extern char	*filename;
43 extern char	*cmdexpr;
44