aboutsummaryrefslogtreecommitdiff
path: root/gdb/valarith.c
diff options
context:
space:
mode:
authorgdb-3.1 <gdb@fsf.org>1989-01-31 17:56:40 +0000
committerPedro Alves <palves@redhat.com>2012-06-03 15:36:31 +0100
commite91b87a36830d061ef87d67be5f309e4d4ed918f (patch)
tree3408ea913a9cccd51c9b7d0b3bc7d7897cac8a5b /gdb/valarith.c
parentbb7592f01006b09c846831a9fb9c306307ba34f6 (diff)
downloadfsf-binutils-gdb-e91b87a36830d061ef87d67be5f309e4d4ed918f.zip
fsf-binutils-gdb-e91b87a36830d061ef87d67be5f309e4d4ed918f.tar.gz
fsf-binutils-gdb-e91b87a36830d061ef87d67be5f309e4d4ed918f.tar.bz2
gdb-3.1
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r--gdb/valarith.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c
index adf0044..772e590 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -19,13 +19,11 @@ anyone else from sharing it farther. Help stamp out software hoarding!
*/
#include "defs.h"
-#include "initialize.h"
#include "param.h"
#include "symtab.h"
#include "value.h"
#include "expression.h"
-START_FILE
value value_x_binop ();
@@ -332,7 +330,7 @@ value_binop (arg1, arg2, op)
}
else
{
- long v1, v2, v;
+ LONGEST v1, v2, v;
v1 = value_as_long (arg1);
v2 = value_as_long (arg2);
@@ -398,8 +396,8 @@ value_binop (arg1, arg2, op)
error ("Invalid binary operation on numbers.");
}
- val = allocate_value (builtin_type_long);
- *(long *) VALUE_CONTENTS (val) = v;
+ val = allocate_value (BUILTIN_TYPE_LONGEST);
+ *(LONGEST *) VALUE_CONTENTS (val) = v;
}
return val;
@@ -532,9 +530,3 @@ value_lognot (arg1)
return value_from_long (VALUE_TYPE (arg1), ~ value_as_long (arg1));
}
-static
-initialize ()
-{
-}
-
-END_FILE