Make new_vector_expr and new_quaternion_expr const-correct.

This commit is contained in:
Bill Currie 2011-01-11 08:43:34 +09:00
parent 13503198e5
commit 18ae178eaf
2 changed files with 4 additions and 4 deletions

View file

@ -371,7 +371,7 @@ expr_t *new_float_expr (float float_val);
\return The new vector constant expression node
(expr_t::e::vector_val).
*/
expr_t *new_vector_expr (float *vector_val);
expr_t *new_vector_expr (const float *vector_val);
/** Create a new entity constant expression node.
@ -415,7 +415,7 @@ expr_t *new_pointer_expr (int val, struct type_s *type, struct def_s *def);
\return The new quaternion constant expression node
(expr_t::e::quaternion_val).
*/
expr_t *new_quaternion_expr (float *quaternion_val);
expr_t *new_quaternion_expr (const float *quaternion_val);
/** Create a new integer constant expression node.

View file

@ -560,7 +560,7 @@ new_float_expr (float float_val)
}
expr_t *
new_vector_expr (float *vector_val)
new_vector_expr (const float *vector_val)
{
expr_t *e = new_expr ();
e->type = ex_vector;
@ -609,7 +609,7 @@ new_pointer_expr (int val, type_t *type, def_t *def)
}
expr_t *
new_quaternion_expr (float *quaternion_val)
new_quaternion_expr (const float *quaternion_val)
{
expr_t *e = new_expr ();
e->type = ex_quaternion;