* vax-dis.c (entry_mask_bit): New array.
[deliverable/binutils-gdb.git] / binutils / sysinfo.y
index c67e9f6392580709a7c18b39fc81903beb7c4d77..807ac7876e50c7007c3874bf92ff1ad80466d43c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright 2001, 2003 Free Software Foundation, Inc.
+/* Copyright 2001, 2003, 2005 Free Software Foundation, Inc.
    Written by Steve Chamberlain of Cygnus Support (steve@cygnus.com).
 
 This file is part of GNU binutils.
@@ -37,6 +37,9 @@ int rdepth;
 char *loop [] = {"","n","m","/*BAD*/"};
 char *names[] = {" ","[n]","[n][m]"};
 char *pnames[]= {"","*","**"};
+
+static int yyerror (char *s);
+extern int yylex (void);
 %}
 
 
@@ -117,7 +120,7 @@ it:
            printf("void sysroff_swap_%s_in(ptr)\n",$2);
            printf("struct IT_%s *ptr;\n", it);
            printf("{\n");
-           printf("char raw[255];\n");
+           printf("unsigned char raw[255];\n");
            printf("\tint idx = 0 ;\n");
            printf("\tint size;\n");
            printf("memset(raw,0,255);\n");     
@@ -129,7 +132,7 @@ it:
            printf("FILE * file;\n");
            printf("struct IT_%s *ptr;\n", it);
            printf("{\n");
-           printf("\tchar raw[255];\n");
+           printf("\tunsigned char raw[255];\n");
            printf("\tint idx = 16 ;\n");
            printf("\tmemset (raw, 0, 255);\n");
            printf("\tcode = IT_%s_CODE;\n", it);
@@ -406,7 +409,7 @@ enum_list:
 %%
 /* four modes
 
-   -d write structure defintions for sysroff in host format
+   -d write structure definitions for sysroff in host format
    -i write functions to swap into sysroff format in
    -o write functions to swap into sysroff format out
    -c write code to print info in human form */
@@ -431,7 +434,7 @@ if (writecode == 'd')
 return 0;
 }
 
-int
+static int
 yyerror (char *s)
 {
   fprintf(stderr, "%s\n" , s);
This page took 0.025208 seconds and 4 git commands to generate.