* 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.
+2005-04-29 Ben Elliston <bje@au.ibm.com>
+
+ * 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.
+
2005-04-29 Ben Elliston <bje@au.ibm.com>
* ar.c (mri_mode): Make static.
static void dump_coff_type (struct coff_type *);
static void dump_coff_where (struct coff_where *);
static void dump_coff_visible (struct coff_visible *);
-extern void dump_coff_symbol (struct coff_symbol *);
static void dump_coff_scope (struct coff_scope *);
static void dump_coff_sfile (struct coff_sfile *);
static void dump_coff_section (struct coff_section *);
-extern void coff_dump (struct coff_ofile *);
static void show_usage (FILE *, int);
extern int main (int, char **);
tab (-1);
}
-void
+static void
dump_coff_symbol (struct coff_symbol *p)
{
tab (1);
tab (-1);
}
-void
+static void
coff_dump (struct coff_ofile *ptr)
{
int i;
#include "coff/internal.h"
#include "../bfd/libcoff.h"
#include "coffgrok.h"
-int lofile = 1;
+static int lofile = 1;
static struct coff_scope *top_scope;
static struct coff_scope *file_scope;
static struct coff_ofile *ofile;
-struct coff_symbol *last_function_symbol;
-struct coff_type *last_function_type;
-struct coff_type *last_struct;
-struct coff_type *last_enum;
-struct coff_sfile *cur_sfile;
+static struct coff_symbol *last_function_symbol;
+static struct coff_type *last_function_type;
+static struct coff_type *last_struct;
+static struct coff_type *last_enum;
+static struct coff_sfile *cur_sfile;
static struct coff_symbol **tindex;
int token;
};
-struct keyword_tokens_struct keyword_tokens[] =
+static struct keyword_tokens_struct keyword_tokens[] =
{
{ "CHECK", CHECK },
{ "CODESTART", CODESTART },
static void module (void);
static void show_usage (FILE *, int);
-extern char *getCHARS (unsigned char *, int *, int, int);
-extern int fillup (unsigned char *);
-extern barray getBARRAY (unsigned char *, int *, int, int);
-extern int getINT (unsigned char *, int *, int, int);
-extern int getBITS (unsigned char *, int *, int, int);
-extern void sysroff_swap_tr_in (void);
-extern void sysroff_print_tr_out (void);
extern int main (int, char **);
-char *
+static char *
getCHARS (unsigned char *ptr, int *idx, int size, int max)
{
int oc = *idx / 8;
}
}
-int
+static int
fillup (unsigned char *ptr)
{
int size;
return size - 1;
}
-barray
+static barray
getBARRAY (unsigned char *ptr, int *idx, int dsize ATTRIBUTE_UNUSED,
int max ATTRIBUTE_UNUSED)
{
return res;
}
-int
+static int
getINT (unsigned char *ptr, int *idx, int size, int max)
{
int n = 0;
return n;
}
-int
+static int
getBITS (unsigned char *ptr, int *idx, int size, int max)
{
int byte = *idx / 8;
#define IT_tr_CODE 0x7f
-void
+static void
sysroff_swap_tr_in (void)
{
unsigned char raw[255];
fillup (raw);
}
-void
+static void
sysroff_print_tr_out (void)
{
itheader ("tr", IT_tr_CODE);
#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);
-c write code to print info in human form */
int yydebug;
-char writecode;
int
main (int ac, char **av)
#endif
#endif
#include "sysinfo.h"
-char *word;
-int number;
-int unit;
#define YY_NO_UNPUT