--- a/stage4/generate_c/generate_c_il.cc Thu Oct 25 18:51:55 2012 +0100
+++ b/stage4/generate_c/generate_c_il.cc Fri Oct 26 10:11:28 2012 +0100
@@ -256,10 +256,10 @@
/* a small helper function */
symbol_c *default_literal_type(symbol_c *symbol) {
if (get_datatype_info_c::is_ANY_INT_literal(symbol)) {
- return &search_constant_type_c::lint_type_name;
+ return &get_datatype_info_c::lint_type_name;
}
else if (get_datatype_info_c::is_ANY_REAL_literal(symbol)) {
- return &search_constant_type_c::lreal_type_name;
+ return &get_datatype_info_c::lreal_type_name;
}
return symbol;
}
@@ -908,9 +908,9 @@
if (param_value == NULL) ERROR;
s4o.print("(");
if (get_datatype_info_c::is_ANY_INT_literal(current_param_type))
- search_constant_type_c::lint_type_name.accept(*this);
+ get_datatype_info_c::lint_type_name.accept(*this);
else if (get_datatype_info_c::is_ANY_REAL_literal(current_param_type))
- search_constant_type_c::lreal_type_name.accept(*this);
+ get_datatype_info_c::lreal_type_name.accept(*this);
else
current_param_type->accept(*this);
s4o.print(")");
@@ -1296,10 +1296,10 @@
}
if (param_value == NULL) ERROR;
s4o.print("(");
- if (get_datatype_info_c::is_ANY_INT_literal(current_param_type))
- search_constant_type_c::lint_type_name.accept(*this);
+ if (get_datatype_info_c::is_ANY_INT_literal(current_param_type))
+ get_datatype_info_c::lint_type_name.accept(*this);
else if (get_datatype_info_c::is_ANY_REAL_literal(current_param_type))
- search_constant_type_c::lreal_type_name.accept(*this);
+ get_datatype_info_c::lreal_type_name.accept(*this);
else
current_param_type->accept(*this);
s4o.print(")");