diff options
author | Ben Elliston <bje@au.ibm.com> | 2005-04-29 01:15:21 +0000 |
---|---|---|
committer | Ben Elliston <bje@au.ibm.com> | 2005-04-29 01:15:21 +0000 |
commit | 89b788963fc7b64fafaf6f8a72cc99982ac6477d (patch) | |
tree | 4e883ba4667977532d26585e9ee99ee03dca51ac /binutils/sysdump.c | |
parent | 4aac130b2837a86f535d5846501ca09cd2e2f00d (diff) | |
download | gdb-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/sysdump.c')
-rw-r--r-- | binutils/sysdump.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/binutils/sysdump.c b/binutils/sysdump.c index 3b219c7..b0fc6b0 100644 --- a/binutils/sysdump.c +++ b/binutils/sysdump.c @@ -54,16 +54,9 @@ static void derived_type (void); 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; @@ -120,7 +113,7 @@ dh (unsigned char *ptr, int size) } } -int +static int fillup (unsigned char *ptr) { int size; @@ -143,7 +136,7 @@ fillup (unsigned char *ptr) return size - 1; } -barray +static barray getBARRAY (unsigned char *ptr, int *idx, int dsize ATTRIBUTE_UNUSED, int max ATTRIBUTE_UNUSED) { @@ -161,7 +154,7 @@ getBARRAY (unsigned char *ptr, int *idx, int dsize ATTRIBUTE_UNUSED, return res; } -int +static int getINT (unsigned char *ptr, int *idx, int size, int max) { int n = 0; @@ -197,7 +190,7 @@ getINT (unsigned char *ptr, int *idx, int size, int max) return n; } -int +static int getBITS (unsigned char *ptr, int *idx, int size, int max) { int byte = *idx / 8; @@ -262,7 +255,7 @@ pbarray (barray *y) #define IT_tr_CODE 0x7f -void +static void sysroff_swap_tr_in (void) { unsigned char raw[255]; @@ -271,7 +264,7 @@ sysroff_swap_tr_in (void) fillup (raw); } -void +static void sysroff_print_tr_out (void) { itheader ("tr", IT_tr_CODE); |