diff options
author | Tom Tromey <tom@tromey.com> | 2018-04-17 13:51:22 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-06-01 10:19:55 -0600 |
commit | bc8453a7bb617a5f14a465516f9f87c2ab6e05d5 (patch) | |
tree | 813981913ed2e53b90fae81456775124441eb1eb /gdb/c-typeprint.c | |
parent | 739e8682ff1cffc2809c91853efeef232d29e582 (diff) | |
download | fsf-binutils-gdb-bc8453a7bb617a5f14a465516f9f87c2ab6e05d5.zip fsf-binutils-gdb-bc8453a7bb617a5f14a465516f9f87c2ab6e05d5.tar.gz fsf-binutils-gdb-bc8453a7bb617a5f14a465516f9f87c2ab6e05d5.tar.bz2 |
Make c_type_print_varspec_suffix static
I noticed that c_type_print_varspec_suffix is only called from
c-typeprint.c, so this patch makes it "static".
gdb/ChangeLog
2018-06-01 Tom Tromey <tom@tromey.com>
* typeprint.h (c_type_print_varspec_suffix): Don't declare.
* c-typeprint.c (c_type_print_varspec_suffix): Now static.
Diffstat (limited to 'gdb/c-typeprint.c')
-rw-r--r-- | gdb/c-typeprint.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index cb793f0..31ff170 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -50,6 +50,10 @@ enum access_specifier s_protected }; +static void c_type_print_varspec_suffix (struct type *, struct ui_file *, int, + int, int, + const struct type_print_options *); + static void c_type_print_varspec_prefix (struct type *, struct ui_file *, int, int, int, @@ -716,7 +720,7 @@ remove_qualifiers (char *qid) needed after the variable name (to describe its type). Args work like c_type_print_varspec_prefix. */ -void +static void c_type_print_varspec_suffix (struct type *type, struct ui_file *stream, int show, int passed_a_ptr, |