Improve seperation between kernel code and userland code by requiring
[dragonfly.git] / usr.bin / bc / extern.h
1 /*
2  * $OpenBSD: extern.h,v 1.4 2003/12/02 09:00:07 otto Exp $
3  * $DragonFly: src/usr.bin/bc/extern.h,v 1.1 2004/09/20 04:20:34 dillon 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;