mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 20:14:06 +08:00
gdb: make value_subscripted_rvalue static
The function value_subscripted_rvalue is only used in valarith.c, so lets make it a static function. There should be no user visible change after this commit.
This commit is contained in:
parent
cc7ea7504c
commit
bf94cfb631
@ -29,6 +29,11 @@
|
||||
#include "gdbsupport/byte-vector.h"
|
||||
#include "gdbarch.h"
|
||||
|
||||
/* Forward declarations. */
|
||||
static struct value *value_subscripted_rvalue (struct value *array,
|
||||
LONGEST index,
|
||||
LONGEST lowerbound);
|
||||
|
||||
/* Define whether or not the C operator '/' truncates towards zero for
|
||||
differently signed operands (truncation direction is undefined in C). */
|
||||
|
||||
@ -190,8 +195,9 @@ value_subscript (struct value *array, LONGEST index)
|
||||
(eg, a vector register). This routine used to promote floats
|
||||
to doubles, but no longer does. */
|
||||
|
||||
struct value *
|
||||
value_subscripted_rvalue (struct value *array, LONGEST index, LONGEST lowerbound)
|
||||
static struct value *
|
||||
value_subscripted_rvalue (struct value *array, LONGEST index,
|
||||
LONGEST lowerbound)
|
||||
{
|
||||
struct type *array_type = check_typedef (value_type (array));
|
||||
struct type *elt_type = check_typedef (TYPE_TARGET_TYPE (array_type));
|
||||
|
@ -1165,10 +1165,6 @@ extern struct value *find_function_in_inferior (const char *,
|
||||
|
||||
extern struct value *value_allocate_space_in_inferior (int);
|
||||
|
||||
extern struct value *value_subscripted_rvalue (struct value *array,
|
||||
LONGEST index,
|
||||
LONGEST lowerbound);
|
||||
|
||||
/* User function handler. */
|
||||
|
||||
typedef struct value *(*internal_function_fn) (struct gdbarch *gdbarch,
|
||||
|
Loading…
Reference in New Issue
Block a user