usr.sbin/fstyp: Use NULL instead of 0 for pointers. (FreeBSD@GitHub 27f4c84a)
[dragonfly.git] / usr.bin / bc / extern.h
blob45509063b31e071448b456748375b30bb0a08552
1 /*
2 * $OpenBSD: extern.h,v 1.6 2006/03/18 20:44:43 otto Exp $
3 */
5 /*
6 * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
8 * Permission to use, copy, modify, and distribute this software for any
9 * purpose with or without fee is hereby granted, provided that the above
10 * copyright notice and this permission notice appear in all copies.
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 #include <stdbool.h>
22 #include <stdio.h>
24 struct lvalue {
25 ssize_t load;
26 ssize_t store;
29 struct termios;
31 int yylex(void);
32 void yyerror(char *);
33 void fatal(const char *);
34 void abort_line(int);
35 int gettty(struct termios *);
36 void tstpcont(int);
37 unsigned char bc_eof(EditLine *, int);
39 extern int lineno;
40 extern char *yytext;
41 extern FILE *yyin;
42 extern int fileindex;
43 extern int sargc;
44 extern char **sargv;
45 extern char *filename;
46 extern char *cmdexpr;
47 extern struct termios ttysaved;
48 extern bool interactive;
49 extern EditLine *el;
50 extern History *hist;
51 extern HistEvent he;