Add ip6 and icmp6 displays to systat(1).
[dragonfly/vkernel-mp.git] / usr.bin / bc / extern.h
blobed43c757c9faa5f46c9f619805ae29d8ceb58615
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 20:50:22 swildner Exp $
4 */
6 /*
7 * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
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.
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.
22 #include <sys/types.h>
24 #include <stdio.h>
26 struct lvalue {
27 ssize_t load;
28 ssize_t store;
31 int yylex(void);
32 void yyerror(char *);
33 void fatal(const char *);
34 void abort_line(int);
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;