1*d04ba965Sotto /* $OpenBSD: extern.h,v 1.8 2011/06/03 06:10:33 otto Exp $ */ 25092d5c9Sotto 35092d5c9Sotto /* 45092d5c9Sotto * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> 55092d5c9Sotto * 65092d5c9Sotto * Permission to use, copy, modify, and distribute this software for any 75092d5c9Sotto * purpose with or without fee is hereby granted, provided that the above 85092d5c9Sotto * copyright notice and this permission notice appear in all copies. 95092d5c9Sotto * 105092d5c9Sotto * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 115092d5c9Sotto * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 125092d5c9Sotto * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 135092d5c9Sotto * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 145092d5c9Sotto * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 155092d5c9Sotto * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 165092d5c9Sotto * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 175092d5c9Sotto */ 185092d5c9Sotto 195092d5c9Sotto #include <stdio.h> 205092d5c9Sotto 215092d5c9Sotto struct lvalue { 221e868aa7Sotto ssize_t load; 231e868aa7Sotto ssize_t store; 245092d5c9Sotto }; 255092d5c9Sotto 265092d5c9Sotto int yylex(void); 27ac868341Sotto void yyerror(char *); 28ac868341Sotto void fatal(const char *); 295092d5c9Sotto void abort_line(int); 30*d04ba965Sotto unsigned char bc_eof(EditLine *, int); 315092d5c9Sotto 325092d5c9Sotto extern int lineno; 335092d5c9Sotto extern char *yytext; 345092d5c9Sotto extern FILE *yyin; 35b1fdaab8Sotto extern int fileindex; 36b1fdaab8Sotto extern int sargc; 37b1fdaab8Sotto extern char **sargv; 38b1fdaab8Sotto extern char *filename; 39ce0441ffSotto extern bool interactive; 40ce0441ffSotto extern EditLine *el; 41ce0441ffSotto extern History *hist; 42ce0441ffSotto extern HistEvent he; 43b1fdaab8Sotto extern char *cmdexpr; 44ce0441ffSotto 45c6ecccdfSotto bool interactive; 46