Turn some value_contents functions into methods
This turns value_contents_raw, value_contents_writeable, and value_contents_all_raw into methods on value. The remaining functions will be changed later in the series; they were a bit trickier and so I didn't include them in this patch. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
parent
ee7bb2944b
commit
bbe912ba88
32 changed files with 142 additions and 145 deletions
|
@ -674,7 +674,7 @@ c_string_operation::evaluate (struct type *expect_type,
|
|||
error (_("Too many array elements"));
|
||||
|
||||
result = value::allocate (expect_type);
|
||||
memcpy (value_contents_raw (result).data (), obstack_base (&output),
|
||||
memcpy (result->contents_raw ().data (), obstack_base (&output),
|
||||
obstack_object_size (&output));
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue