extern.h (1480B)
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 #ifndef EXTERN_H 20 #define EXTERN_H 21 22 #include <stdbool.h> 23 #include <stdio.h> 24 25 struct lvalue { 26 ssize_t load; 27 ssize_t store; 28 }; 29 30 int yylex(void); 31 void yyerror(char *); 32 void fatal(const char *); 33 void abort_line(int); 34 struct termios; 35 int gettty(struct termios *); 36 void tstpcont(int); 37 unsigned char bc_eof(EditLine *, int); 38 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 bool interactive; 47 extern EditLine *el; 48 extern History *hist; 49 extern HistEvent he; 50 extern char *cmdexpr; 51 extern struct termios ttysaved; 52 53 #endif