mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 10:35:12 +08:00
Make context_stack_size static in buildsym.c
context_stack_size is declared in buildsym.h, but only used in buildsym.c. This makes it static in buildsym.c. gdb/ChangeLog 2018-07-16 Tom Tromey <tom@tromey.com> * buildsym.h (context_stack_size): Don't declare. * buildsym.c (context_stack_size): New global.
This commit is contained in:
parent
81cc346dc9
commit
0ec44fc067
@ -1,3 +1,8 @@
|
||||
2018-07-16 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* buildsym.h (context_stack_size): Don't declare.
|
||||
* buildsym.c (context_stack_size): New global.
|
||||
|
||||
2018-07-16 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* dbxread.c (processing_acc_compilation): New global.
|
||||
|
@ -257,6 +257,10 @@ struct subfile_stack
|
||||
|
||||
static struct subfile_stack *subfile_stack;
|
||||
|
||||
/* Currently allocated size of context stack. */
|
||||
|
||||
static int context_stack_size;
|
||||
|
||||
static void free_buildsym_compunit (void);
|
||||
|
||||
static int compare_line_numbers (const void *ln1p, const void *ln2p);
|
||||
|
@ -159,10 +159,6 @@ EXTERN struct context_stack *context_stack;
|
||||
|
||||
EXTERN int context_stack_depth;
|
||||
|
||||
/* Currently allocated size of context stack. */
|
||||
|
||||
EXTERN int context_stack_size;
|
||||
|
||||
/* Non-zero if the context stack is empty. */
|
||||
#define outermost_context_p() (context_stack_depth == 0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user