]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - usr.bin/bc/extern.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / usr.bin / bc / extern.h
1 /*      $FreeBSD$                                               */
2 /*      $OpenBSD: extern.h,v 1.6 2006/03/18 20:44:43 otto Exp $ */
3
4 /*
5  * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
6  *
7  * Permission to use, copy, modify, and distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  */
19
20 #include <stdio.h>
21
22 struct lvalue {
23         ssize_t  load;
24         ssize_t  store;
25 };
26
27 int                      yylex(void);
28 void                     yyerror(const char *);
29 void                     fatal(const char *);
30 void                     abort_line(int);
31
32 extern int               lineno;
33 extern int               fileindex;
34 extern int               sargc;
35 extern const char       **sargv;
36 extern const char       *filename;
37 extern char             *cmdexpr;
38 extern bool              interactive;
39 extern EditLine         *el;
40 extern History          *hist;
41 extern HistEvent         he;
42