| Commit | Line | Data |
|---|---|---|
| f2d37758 | 1 | /* |
| db555d9a | 2 | * $OpenBSD: extern.h,v 1.6 2006/03/18 20:44:43 otto Exp $ |
| f2d37758 MD |
3 | */ |
| 4 | ||
| 5 | /* | |
| 6 | * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net> | |
| 7 | * | |
| 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. | |
| 11 | * | |
| 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. | |
| 19 | */ | |
| 20 | ||
| f2d37758 MD |
21 | #include <stdio.h> |
| 22 | ||
| 23 | struct lvalue { | |
| 24 | ssize_t load; | |
| 25 | ssize_t store; | |
| 26 | }; | |
| 27 | ||
| 28 | int yylex(void); | |
| 29 | void yyerror(char *); | |
| 30 | void fatal(const char *); | |
| 31 | void abort_line(int); | |
| 32 | ||
| 33 | extern int lineno; | |
| 34 | extern char *yytext; | |
| 35 | extern FILE *yyin; | |
| b6d9cda5 SW |
36 | extern int fileindex; |
| 37 | extern int sargc; | |
| 38 | extern char **sargv; | |
| 39 | extern char *filename; | |
| 40 | extern char *cmdexpr; | |
| ac3cc18c SW |
41 | extern bool interactive; |
| 42 | extern EditLine *el; | |
| 43 | extern History *hist; | |
| 44 | extern HistEvent he; |