From 6ad3b8bf3b118e9635a0dcc022128496f4fc13ca Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 8 Mar 2021 07:27:57 -0700 Subject: 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 * ada-lang.c (ada_binop_minmax): No longer static. * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation): New typedefs. --- gdb/ada-lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/ada-lang.c') 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, -- cgit v1.1