summaryrefslogtreecommitdiff
path: root/usr.bin/pcc
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-09-20 13:39:40 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-09-20 13:39:40 +0000
commit8aa2d6006acb4db19a7685f6e984f6a5d073bff5 (patch)
treeb1468d78d9cd68f521b7fd27816e384c57c94b44 /usr.bin/pcc
parent35a7fe647ce46eafedd8a154db1b3b6c04c630a5 (diff)
missing prototypes; pullup from ragge's repo
Diffstat (limited to 'usr.bin/pcc')
-rw-r--r--usr.bin/pcc/cc/ccom/scan.l4
-rw-r--r--usr.bin/pcc/cc/cpp/scanner.l5
2 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/pcc/cc/ccom/scan.l b/usr.bin/pcc/cc/ccom/scan.l
index 7edd4bd7c5b..45693712a74 100644
--- a/usr.bin/pcc/cc/ccom/scan.l
+++ b/usr.bin/pcc/cc/ccom/scan.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: scan.l,v 1.3 2007/09/16 18:52:52 otto Exp $ */
+/* $OpenBSD: scan.l,v 1.4 2007/09/20 13:39:39 otto Exp $ */
/*
* Copyright (c) 2002 Anders Magnusson. All rights reserved.
@@ -73,6 +73,8 @@ void yyset_out (FILE * out_str );
int yyget_debug (void);
void yyset_debug (int bdebug );
int yylex_destroy (void);
+extern int yyget_lineno (void);
+extern void yyset_lineno (int);
#endif
%}
diff --git a/usr.bin/pcc/cc/cpp/scanner.l b/usr.bin/pcc/cc/cpp/scanner.l
index 45704c294bd..0183858bdfb 100644
--- a/usr.bin/pcc/cc/cpp/scanner.l
+++ b/usr.bin/pcc/cc/cpp/scanner.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: scanner.l,v 1.4 2007/09/17 18:29:20 otto Exp $ */
+/* $OpenBSD: scanner.l,v 1.5 2007/09/20 13:39:39 otto Exp $ */
/*
* Copyright (c) 2004 Anders Magnusson. All rights reserved.
@@ -55,6 +55,9 @@ static void storepb(void);
void include(void);
void define(void);
+extern int yyget_lineno (void);
+extern void yyset_lineno (int);
+
static int inch(void);
static int scale, gotdef, contr;