diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-08-31 10:44:33 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-08-31 10:44:33 -0400 |
commit | fe1fe7eae95c43bcb1dfda8a6922eda0c9acd1c2 (patch) | |
tree | 48f9597e8e198437fbc4489d9efc70f7f8204167 /gdb/f-lang.c | |
parent | 06de2e0da24a0f0fdc9b38f8308ec909453c4ee8 (diff) | |
download | gdb-fe1fe7eae95c43bcb1dfda8a6922eda0c9acd1c2.zip gdb-fe1fe7eae95c43bcb1dfda8a6922eda0c9acd1c2.tar.gz gdb-fe1fe7eae95c43bcb1dfda8a6922eda0c9acd1c2.tar.bz2 |
gdb: remove NULL_TYPE
The NULL_TYPE macro is not very useful... remove it and just use
nullptr.
gdb/ChangeLog:
* gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
Change-Id: Ic6215921413dad5649192b012f1a41d0a650a644
Diffstat (limited to 'gdb/f-lang.c')
-rw-r--r-- | gdb/f-lang.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/f-lang.c b/gdb/f-lang.c index 58b41d1..54d56f0 100644 --- a/gdb/f-lang.c +++ b/gdb/f-lang.c @@ -136,7 +136,7 @@ evaluate_subexp_f (struct type *expect_type, struct expression *exp, return evaluate_subexp_standard (expect_type, exp, pos, noside); case UNOP_ABS: - arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside); + arg1 = evaluate_subexp (nullptr, exp, pos, noside); if (noside == EVAL_SKIP) return eval_skip_value (exp); type = value_type (arg1); @@ -159,7 +159,7 @@ evaluate_subexp_f (struct type *expect_type, struct expression *exp, error (_("ABS of type %s not supported"), TYPE_SAFE_NAME (type)); case BINOP_MOD: - arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside); + arg1 = evaluate_subexp (nullptr, exp, pos, noside); arg2 = evaluate_subexp (value_type (arg1), exp, pos, noside); if (noside == EVAL_SKIP) return eval_skip_value (exp); @@ -193,7 +193,7 @@ evaluate_subexp_f (struct type *expect_type, struct expression *exp, case UNOP_FORTRAN_CEILING: { - arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside); + arg1 = evaluate_subexp (nullptr, exp, pos, noside); if (noside == EVAL_SKIP) return eval_skip_value (exp); type = value_type (arg1); @@ -208,7 +208,7 @@ evaluate_subexp_f (struct type *expect_type, struct expression *exp, case UNOP_FORTRAN_FLOOR: { - arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside); + arg1 = evaluate_subexp (nullptr, exp, pos, noside); if (noside == EVAL_SKIP) return eval_skip_value (exp); type = value_type (arg1); @@ -223,7 +223,7 @@ evaluate_subexp_f (struct type *expect_type, struct expression *exp, case BINOP_FORTRAN_MODULO: { - arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside); + arg1 = evaluate_subexp (nullptr, exp, pos, noside); arg2 = evaluate_subexp (value_type (arg1), exp, pos, noside); if (noside == EVAL_SKIP) return eval_skip_value (exp); @@ -260,7 +260,7 @@ evaluate_subexp_f (struct type *expect_type, struct expression *exp, } case BINOP_FORTRAN_CMPLX: - arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside); + arg1 = evaluate_subexp (nullptr, exp, pos, noside); arg2 = evaluate_subexp (value_type (arg1), exp, pos, noside); if (noside == EVAL_SKIP) return eval_skip_value (exp); |