Use the correct meta type for spacial types.

Although vector and quaternion types have symbol tables, they are not
really structs, so set the meta type to "none", allowing the types to be
encoded correctly.
This commit is contained in:
Bill Currie 2011-03-21 17:26:49 +09:00
parent cefe7e2e94
commit 46093c0937

View file

@ -846,12 +846,14 @@ init_types (void)
make_structure (0, 'u', param_struct, &type_param); make_structure (0, 'u', param_struct, &type_param);
make_structure (0, 's', vector_struct, &type_vector); make_structure (0, 's', vector_struct, &type_vector);
type_vector.type = ev_vector; type_vector.type = ev_vector;
type_vector.ty = ty_none;
if (options.traditional) if (options.traditional)
return; return;
make_structure (0, 's', quaternion_struct, &type_quaternion); make_structure (0, 's', quaternion_struct, &type_quaternion);
type_quaternion.type = ev_quat; type_quaternion.type = ev_quat;
type_quaternion.ty = ty_none;
} }
void void