diff options
author | Tom Tromey <tom@tromey.com> | 2016-04-27 10:28:56 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2016-05-17 12:02:03 -0600 |
commit | 01739a3b6a564f6552acf6c01617aa21ab4d8833 (patch) | |
tree | b5af9ea90a1d366d26463916b62ca45b4e86d308 /gdb/parse.c | |
parent | 0bdfa368bc8dbea2f39706e34306c9b67883bbb1 (diff) | |
download | fsf-binutils-gdb-01739a3b6a564f6552acf6c01617aa21ab4d8833.zip fsf-binutils-gdb-01739a3b6a564f6552acf6c01617aa21ab4d8833.tar.gz fsf-binutils-gdb-01739a3b6a564f6552acf6c01617aa21ab4d8833.tar.bz2 |
Rename OP_F90_RANGE to OP_RANGE.
This renames OP_F90_RANGE to OP_RANGE, and similarly renames the
f90_range_type enum.
2016-05-17 Tom Tromey <tom@tromey.com>
* std-operator.def (OP_RANGE): Rename from OP_F90_RANGE.
* rust-lang.c: Don't include f-lang.h.
(rust_range, rust_compute_range, rust_subscript)
(rust_evaluate_subexp): Update.
* rust-exp.y: Don't include f-lang.h.
(ast_range, convert_ast_to_expression): Update.
* parse.c (operator_length_standard): Update.
* f-lang.h (enum f90_range_type): Move to expression.h.
* f-exp.y: Use OP_RANGE.
* expression.h (enum range_type): New enum; renamed from
f90_range_type.
* expprint.c: Don't include f-lang.h.
(print_subexp_standard, dump_subexp_body_standard): Use OP_RANGE.
* eval.c (value_f90_subarray, evaluate_subexp_standard): Update.
Diffstat (limited to 'gdb/parse.c')
-rw-r--r-- | gdb/parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/parse.c b/gdb/parse.c index 4191fc6..2b00708 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -862,7 +862,7 @@ operator_length_standard (const struct expression *expr, int endpos, { int oplen = 1; int args = 0; - enum f90_range_type range_type; + enum range_type range_type; int i; if (endpos < 1) @@ -1004,9 +1004,9 @@ operator_length_standard (const struct expression *expr, int endpos, oplen = 2; break; - case OP_F90_RANGE: + case OP_RANGE: oplen = 3; - range_type = (enum f90_range_type) + range_type = (enum range_type) longest_to_int (expr->elts[endpos - 2].longconst); switch (range_type) |