aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/bc/extern.h
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2014-04-16 23:14:05 +0000
committerXin LI <delphij@FreeBSD.org>2014-04-16 23:14:05 +0000
commitbe848c7a13013b0555c07bfe92892b5dd546163f (patch)
tree4287628ab93fcb1da08cdd812e5b72100fb7c76b /usr.bin/bc/extern.h
parent2ae4b3d100e93bf8942ef07933ebb723476b4a25 (diff)
downloadsrc-be848c7a13013b0555c07bfe92892b5dd546163f.tar.gz
src-be848c7a13013b0555c07bfe92892b5dd546163f.zip
Notes
Diffstat (limited to 'usr.bin/bc/extern.h')
-rw-r--r--usr.bin/bc/extern.h32
1 files changed, 20 insertions, 12 deletions
diff --git a/usr.bin/bc/extern.h b/usr.bin/bc/extern.h
index d1e9fe80e5f6..b692311e60f5 100644
--- a/usr.bin/bc/extern.h
+++ b/usr.bin/bc/extern.h
@@ -1,5 +1,5 @@
/* $FreeBSD$ */
-/* $OpenBSD: extern.h,v 1.6 2006/03/18 20:44:43 otto Exp $ */
+/* $OpenBSD: extern.h,v 1.10 2013/09/19 16:12:01 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -17,26 +17,34 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <stdbool.h>
#include <stdio.h>
struct lvalue {
- ssize_t load;
- ssize_t store;
+ ssize_t load;
+ ssize_t store;
};
-int yylex(void);
-void yyerror(const char *);
-void fatal(const char *);
-void abort_line(int);
+int yylex(void);
+void yyerror(const char *);
+void fatal(const char *);
+void abort_line(int);
+struct termios;
+int gettty(struct termios *);
+void tstpcont(int);
+unsigned char bc_eof(EditLine *, int);
-extern int lineno;
-extern int fileindex;
-extern int sargc;
+extern int lineno;
+extern char *yytext;
+extern FILE *yyin;
+extern int fileindex;
+extern int sargc;
extern const char **sargv;
extern const char *filename;
-extern char *cmdexpr;
extern bool interactive;
extern EditLine *el;
extern History *hist;
extern HistEvent he;
-
+extern char *cmdexpr;
+extern struct termios ttysaved;
+extern bool interactive;