forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
#include "block.h"
|
||||
#include "objfiles.h"
|
||||
#include "valprint.h"
|
||||
#include "f-lang.h"
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
@@ -560,11 +559,11 @@ print_subexp_standard (struct expression *exp, int *pos,
|
||||
return;
|
||||
}
|
||||
|
||||
case OP_F90_RANGE:
|
||||
case OP_RANGE:
|
||||
{
|
||||
enum f90_range_type range_type;
|
||||
enum range_type range_type;
|
||||
|
||||
range_type = (enum f90_range_type)
|
||||
range_type = (enum range_type)
|
||||
longest_to_int (exp->elts[pc + 1].longconst);
|
||||
*pos += 2;
|
||||
|
||||
@@ -1046,11 +1045,11 @@ dump_subexp_body_standard (struct expression *exp,
|
||||
elt += 2;
|
||||
}
|
||||
break;
|
||||
case OP_F90_RANGE:
|
||||
case OP_RANGE:
|
||||
{
|
||||
enum f90_range_type range_type;
|
||||
enum range_type range_type;
|
||||
|
||||
range_type = (enum f90_range_type)
|
||||
range_type = (enum range_type)
|
||||
longest_to_int (exp->elts[elt].longconst);
|
||||
elt += 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user