extern.h revision 265533
1/* $FreeBSD: stable/10/usr.bin/bc/extern.h 265533 2014-05-07 08:06:54Z delphij $ */ 2/* $OpenBSD: extern.h,v 1.10 2013/09/19 16:12:01 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 <stdbool.h> 21#include <stdio.h> 22 23struct lvalue { 24 ssize_t load; 25 ssize_t store; 26}; 27 28int yylex(void); 29void yyerror(const char *); 30void fatal(const char *); 31void abort_line(int); 32struct termios; 33int gettty(struct termios *); 34void tstpcont(int); 35unsigned char bc_eof(EditLine *, int); 36 37extern int lineno; 38extern int fileindex; 39extern int sargc; 40extern const char **sargv; 41extern const char *filename; 42extern bool interactive; 43extern EditLine *el; 44extern History *hist; 45extern HistEvent he; 46extern char *cmdexpr; 47extern struct termios ttysaved; 48