Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpc/hpc/platid_gen fix compile failure.
details: https://anonhg.NetBSD.org/src/rev/4f7b5713da62
branches: trunk
changeset: 769789:4f7b5713da62
user: nonaka <nonaka%NetBSD.org@localhost>
date: Fri Sep 23 14:14:38 2011 +0000
description:
fix compile failure.
diffstat:
sys/arch/hpc/hpc/platid_gen/gram.y | 6 +++++-
sys/arch/hpc/hpc/platid_gen/platid_gen.c | 5 +++--
sys/arch/hpc/hpc/platid_gen/platid_gen.h | 3 ++-
sys/arch/hpc/hpc/platid_gen/scan.l | 5 ++++-
4 files changed, 14 insertions(+), 5 deletions(-)
diffs (97 lines):
diff -r f8deea7cf082 -r 4f7b5713da62 sys/arch/hpc/hpc/platid_gen/gram.y
--- a/sys/arch/hpc/hpc/platid_gen/gram.y Fri Sep 23 13:48:28 2011 +0000
+++ b/sys/arch/hpc/hpc/platid_gen/gram.y Fri Sep 23 14:14:38 2011 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: gram.y,v 1.3 2001/03/03 12:51:44 takemura Exp $ */
+/* $NetBSD: gram.y,v 1.4 2011/09/23 14:14:38 nonaka Exp $ */
/*-
* Copyright (c) 1999
@@ -37,8 +37,10 @@
#include <stdio.h>
#include <strings.h>
+#include <ctype.h>
#include "platid_gen.h"
+#include "gram.h"
#define LIST_NEW(l) { \
(l) = new_node(N_LIST, 0, NULL, NULL, NULL); \
@@ -130,6 +132,8 @@
%%
+extern int YYLEX_DECL();
+
char*
touppers(s)
char *s;
diff -r f8deea7cf082 -r 4f7b5713da62 sys/arch/hpc/hpc/platid_gen/platid_gen.c
--- a/sys/arch/hpc/hpc/platid_gen/platid_gen.c Fri Sep 23 13:48:28 2011 +0000
+++ b/sys/arch/hpc/hpc/platid_gen/platid_gen.c Fri Sep 23 14:14:38 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: platid_gen.c,v 1.9 2009/03/18 10:22:28 cegger Exp $ */
+/* $NetBSD: platid_gen.c,v 1.10 2011/09/23 14:14:38 nonaka Exp $ */
/*-
* Copyright (c) 1999
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: platid_gen.c,v 1.9 2009/03/18 10:22:28 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: platid_gen.c,v 1.10 2011/09/23 14:14:38 nonaka Exp $");
#include <stdio.h>
#include <stdlib.h>
@@ -259,6 +259,7 @@
fprintf(fp, " */\n");
}
+int
gen_name(char *buf, struct genctx_t ctx[], int nest, int name, char *punct,
int ignr)
{
diff -r f8deea7cf082 -r 4f7b5713da62 sys/arch/hpc/hpc/platid_gen/platid_gen.h
--- a/sys/arch/hpc/hpc/platid_gen/platid_gen.h Fri Sep 23 13:48:28 2011 +0000
+++ b/sys/arch/hpc/hpc/platid_gen/platid_gen.h Fri Sep 23 14:14:38 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: platid_gen.h,v 1.4 2003/04/23 03:42:21 uwe Exp $ */
+/* $NetBSD: platid_gen.h,v 1.5 2011/09/23 14:14:38 nonaka Exp $ */
/*-
* Copyright (c) 1999
@@ -47,3 +47,4 @@
void *mem_alloc(int);
void dump_node(char *, node_t *);
char *touppers(char*);
+int read_def();
diff -r f8deea7cf082 -r 4f7b5713da62 sys/arch/hpc/hpc/platid_gen/scan.l
--- a/sys/arch/hpc/hpc/platid_gen/scan.l Fri Sep 23 13:48:28 2011 +0000
+++ b/sys/arch/hpc/hpc/platid_gen/scan.l Fri Sep 23 14:14:38 2011 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scan.l,v 1.5 2011/05/18 12:10:22 nonaka Exp $ */
+/* $NetBSD: scan.l,v 1.6 2011/09/23 14:14:38 nonaka Exp $ */
/*-
* Copyright (c) 1999
@@ -43,6 +43,8 @@
int yyline;
char *getstr(char *);
void getcomment(void);
+int yyparse(void);
+void yyerror(const char *);
%}
%option noyywrap
@@ -103,6 +105,7 @@
}
}
+int
read_def()
{
yyline = 1;
Home |
Main Index |
Thread Index |
Old Index