diff options
author | delphij <delphij@FreeBSD.org> | 2010-02-04 18:43:05 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2010-02-04 18:43:05 +0000 |
commit | 314d37171eeeaf59a5b31a334f60c81fe2e6745c (patch) | |
tree | 922142fb6348e5d6c63fc34056e3e1e85129a988 /usr.bin/bc/extern.h | |
parent | 4650055e248bb24fa28802c303a9d9af06e02256 (diff) | |
download | FreeBSD-src-314d37171eeeaf59a5b31a334f60c81fe2e6745c.zip FreeBSD-src-314d37171eeeaf59a5b31a334f60c81fe2e6745c.tar.gz |
Use libedit when interacting with tty, which provided history
functionality, etc. as did by GNU bc.
This also fixes an issue where BSDL bc can not handle very long
line.
Reported by: imp
Reviewed by: imp
Diffstat (limited to 'usr.bin/bc/extern.h')
-rw-r--r-- | usr.bin/bc/extern.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/bc/extern.h b/usr.bin/bc/extern.h index a99c46c..d1e9fe8 100644 --- a/usr.bin/bc/extern.h +++ b/usr.bin/bc/extern.h @@ -35,4 +35,8 @@ extern int sargc; extern const char **sargv; extern const char *filename; extern char *cmdexpr; -bool interactive; +extern bool interactive; +extern EditLine *el; +extern History *hist; +extern HistEvent he; + |