diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-08 07:27:57 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-08 07:28:34 -0700 |
commit | 6ad3b8bf3b118e9635a0dcc022128496f4fc13ca (patch) | |
tree | 8a35c0e6cf7ef7cd781fe2f7ca6df716962a8647 /gdb/ada-lang.c | |
parent | 3f4a0053d9699d19a0251cd8c87871c65994e8e1 (diff) | |
download | gdb-6ad3b8bf3b118e9635a0dcc022128496f4fc13ca.zip gdb-6ad3b8bf3b118e9635a0dcc022128496f4fc13ca.tar.gz gdb-6ad3b8bf3b118e9635a0dcc022128496f4fc13ca.tar.bz2 |
Implement Ada min and max operations
This implement the Ada min and max operations using an existing
template class.
gdb/ChangeLog
2021-03-08 Tom Tromey <tom@tromey.com>
* ada-lang.c (ada_binop_minmax): No longer static.
* ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
New typedefs.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index eb21748..418cc04 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -10394,7 +10394,7 @@ ada_unop_atr (struct expression *exp, enum noside noside, enum exp_opcode op, /* A helper function for OP_ATR_MIN and OP_ATR_MAX. */ -static struct value * +struct value * ada_binop_minmax (struct type *expect_type, struct expression *exp, enum noside noside, enum exp_opcode op, |