9029fa4aa9
add write_int_fields to replace write_packed_immediates This avoids having to explicitly list the types of all fields -- we derive them from the type of the struct instead. Also add write_int_fields_named, to give the fields by name instead of ordered by index.