diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-06 23:12:02 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-06 23:12:02 +0000 |
commit | e70bba9f276b2af03f5cc3d80ad20fd982d4eb1a (patch) | |
tree | 835b4f4780ff5386e216a22dd468c64ad74e5032 | |
parent | 3654c0672f3181c64f67a5b1b59dc9e6f048675f (diff) | |
download | gdb-e70bba9f276b2af03f5cc3d80ad20fd982d4eb1a.zip gdb-e70bba9f276b2af03f5cc3d80ad20fd982d4eb1a.tar.gz gdb-e70bba9f276b2af03f5cc3d80ad20fd982d4eb1a.tar.bz2 |
* valops.c (value_cast): Don't use backslash newline--pre-ANSI
compilers (such as SunOS4 /bin/cc) don't generally support it
except in some contexts.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/valops.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9db2f16..43ed859 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Mon Mar 6 15:03:59 1995 Jim Kingdon (kingdon@lioth.cygnus.com) + + * valops.c (value_cast): Don't use backslash newline--pre-ANSI + compilers (such as SunOS4 /bin/cc) don't generally support it + except in some contexts. + Fri Mar 3 17:42:48 1995 Per Bothner <bothner@kalessin.cygnus.com> * valops.c (value_cast): Check for cast to array type *before* diff --git a/gdb/valops.c b/gdb/valops.c index a476ddc..ad3d8f9 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -151,9 +151,9 @@ value_cast (type, arg2) if (current_language->c_style_arrays && (VALUE_REPEATED (arg2) || TYPE_CODE (VALUE_TYPE (arg2)) == TYPE_CODE_ARRAY)) - arg2 = value_coerce_array (arg2); \ + arg2 = value_coerce_array (arg2); - if (TYPE_CODE (VALUE_TYPE (arg2)) == TYPE_CODE_FUNC) \ + if (TYPE_CODE (VALUE_TYPE (arg2)) == TYPE_CODE_FUNC) arg2 = value_coerce_function (arg2); COERCE_VARYING_ARRAY (arg2); |