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