aboutsummaryrefslogtreecommitdiff
path: root/binutils/sysinfo.y
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-04-29 01:15:21 +0000
committerBen Elliston <bje@au.ibm.com>2005-04-29 01:15:21 +0000
commit89b788963fc7b64fafaf6f8a72cc99982ac6477d (patch)
tree4e883ba4667977532d26585e9ee99ee03dca51ac /binutils/sysinfo.y
parent4aac130b2837a86f535d5846501ca09cd2e2f00d (diff)
downloadgdb-89b788963fc7b64fafaf6f8a72cc99982ac6477d.zip
gdb-89b788963fc7b64fafaf6f8a72cc99982ac6477d.tar.gz
gdb-89b788963fc7b64fafaf6f8a72cc99982ac6477d.tar.bz2
* more static'ing.
* syslex.l (word, number, unit): Remove unused variables. * nlmheader.y (keyword_tokens): Make static. * coffdump.c (dump_coff_symbol, coff_dump): Make static. * coffgrok.c (lofile, last_function_symbol, last_function_type, last_struct, last_enum, cur_sfile): Make variables static. * sysdump.c (getCHARS, fillup, getBARRAY, getINT, getBITS, sysroff_swap_tr_in, sysroff_print_tr_out): Make static. * sysinfo.y (writecode, it, code, repeat, oldrepeat, name, rdepth, names, pnames): Likewise.
Diffstat (limited to 'binutils/sysinfo.y')
-rw-r--r--binutils/sysinfo.y26
1 files changed, 9 insertions, 17 deletions
diff --git a/binutils/sysinfo.y b/binutils/sysinfo.y
index 807ac78..233e70a 100644
--- a/binutils/sysinfo.y
+++ b/binutils/sysinfo.y
@@ -21,22 +21,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <stdio.h>
#include <stdlib.h>
-extern char *word;
-extern char writecode;
-extern int number;
-extern int unit;
-char nice_name[1000];
-char *it;
-int sofar;
-int width;
-int code;
-char * repeat;
-char *oldrepeat;
-char *name;
-int rdepth;
-char *loop [] = {"","n","m","/*BAD*/"};
-char *names[] = {" ","[n]","[n][m]"};
-char *pnames[]= {"","*","**"};
+static char writecode;
+static char *it;
+static int code;
+static char * repeat;
+static char *oldrepeat;
+static char *name;
+static int rdepth;
+static char *names[] = {" ","[n]","[n][m]"};
+static char *pnames[]= {"","*","**"};
static int yyerror (char *s);
extern int yylex (void);
@@ -415,7 +408,6 @@ enum_list:
-c write code to print info in human form */
int yydebug;
-char writecode;
int
main (int ac, char **av)