summaryrefslogtreecommitdiff
path: root/usr.bin/bc/extern.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2003-09-28 07:57:58 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2003-09-28 07:57:58 +0000
commitb37465bd36aab1129d0f3931aa17c9d69d3a2d21 (patch)
treeb32a658668a85e06176f64654f9655afa4b5f146 /usr.bin/bc/extern.h
parentca9363082c1fce100f9f892fef89e249c2aa8bfd (diff)
Better error hanndling:
- skip current line on syntax error - detect EOF in strings and comments - report correct line number in above case - more consistent warning and errors ok henning@
Diffstat (limited to 'usr.bin/bc/extern.h')
-rw-r--r--usr.bin/bc/extern.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/bc/extern.h b/usr.bin/bc/extern.h
index 85cae900c40..8d4b0417523 100644
--- a/usr.bin/bc/extern.h
+++ b/usr.bin/bc/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.2 2003/09/26 07:02:52 deraadt Exp $ */
+/* $OpenBSD: extern.h,v 1.3 2003/09/28 07:57:57 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -24,6 +24,8 @@ struct lvalue {
};
int yylex(void);
+void yyerror(char *);
+void fatal(const char *);
void abort_line(int);
extern int lineno;