Module Name: src Committed By: nonaka Date: Fri Sep 23 14:14:38 UTC 2011
Modified Files: src/sys/arch/hpc/hpc/platid_gen: gram.y platid_gen.c platid_gen.h scan.l Log Message: fix compile failure. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/arch/hpc/hpc/platid_gen/gram.y cvs rdiff -u -r1.9 -r1.10 src/sys/arch/hpc/hpc/platid_gen/platid_gen.c cvs rdiff -u -r1.4 -r1.5 src/sys/arch/hpc/hpc/platid_gen/platid_gen.h cvs rdiff -u -r1.5 -r1.6 src/sys/arch/hpc/hpc/platid_gen/scan.l Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/hpc/hpc/platid_gen/gram.y diff -u src/sys/arch/hpc/hpc/platid_gen/gram.y:1.3 src/sys/arch/hpc/hpc/platid_gen/gram.y:1.4 --- src/sys/arch/hpc/hpc/platid_gen/gram.y:1.3 Sat Mar 3 12:51:44 2001 +++ src/sys/arch/hpc/hpc/platid_gen/gram.y Fri Sep 23 14:14:38 2011 @@ -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; Index: src/sys/arch/hpc/hpc/platid_gen/platid_gen.c diff -u src/sys/arch/hpc/hpc/platid_gen/platid_gen.c:1.9 src/sys/arch/hpc/hpc/platid_gen/platid_gen.c:1.10 --- src/sys/arch/hpc/hpc/platid_gen/platid_gen.c:1.9 Wed Mar 18 10:22:28 2009 +++ src/sys/arch/hpc/hpc/platid_gen/platid_gen.c Fri Sep 23 14:14:38 2011 @@ -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) { Index: src/sys/arch/hpc/hpc/platid_gen/platid_gen.h diff -u src/sys/arch/hpc/hpc/platid_gen/platid_gen.h:1.4 src/sys/arch/hpc/hpc/platid_gen/platid_gen.h:1.5 --- src/sys/arch/hpc/hpc/platid_gen/platid_gen.h:1.4 Wed Apr 23 03:42:21 2003 +++ src/sys/arch/hpc/hpc/platid_gen/platid_gen.h Fri Sep 23 14:14:38 2011 @@ -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(); Index: src/sys/arch/hpc/hpc/platid_gen/scan.l diff -u src/sys/arch/hpc/hpc/platid_gen/scan.l:1.5 src/sys/arch/hpc/hpc/platid_gen/scan.l:1.6 --- src/sys/arch/hpc/hpc/platid_gen/scan.l:1.5 Wed May 18 12:10:22 2011 +++ src/sys/arch/hpc/hpc/platid_gen/scan.l Fri Sep 23 14:14:38 2011 @@ -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;