Merge branch 'vendor/LDNS'
[dragonfly.git] / usr.bin / bc / extern.h
1 /*
2  * $OpenBSD: extern.h,v 1.6 2006/03/18 20:44:43 otto Exp $
3  * $DragonFly: src/usr.bin/bc/extern.h,v 1.3 2007/09/01 18:42:08 pavalos 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 <stdio.h>
23
24 struct lvalue {
25         ssize_t load;
26         ssize_t store;
27 };
28
29 int             yylex(void);
30 void            yyerror(char *);
31 void            fatal(const char *);
32 void            abort_line(int);
33
34 extern int      lineno;
35 extern char     *yytext;
36 extern FILE     *yyin;
37 extern int      fileindex;
38 extern int      sargc;
39 extern char     **sargv;
40 extern char     *filename;
41 extern char     *cmdexpr;
42 bool            interactive;