Commit 64fa3132d4399b01073d8ff95b8c0f35fc476817

Authored by totoro
1 parent 2e8d7efa

finalize float implementation

Showing 1 changed file with 10 additions and 4 deletions   Show diff stats
src/generation/types_messages.anubis
@@ -65,7 +65,9 @@ public define String @@ -65,7 +65,9 @@ public define String
65 string then 65 string then
66 "add_string("+type_msg+", \""+field_name+"\", _"+name+")", 66 "add_string("+type_msg+", \""+field_name+"\", _"+name+")",
67 float then 67 float then
68 - "add_float32("+type_msg+", \""+field_name+"\", _"+name+")", 68 + "add_double("+type_msg+", \""+field_name+"\", _"+name+")",
  69 +// float32 then
  70 +// "add_float32("+type_msg+", \""+field_name+"\", _"+name+")",
69 // float64 then 71 // float64 then
70 // "add_float64("+type_msg+", \""+field_name+"\", _"+name+")", 72 // "add_float64("+type_msg+", \""+field_name+"\", _"+name+")",
71 ds_type(type_name) then 73 ds_type(type_name) then
@@ -210,7 +212,8 @@ public define String @@ -210,7 +212,8 @@ public define String
210 word16 then indent + "with " + name + " = find_int16_list("+type_msg+", \""+field_name+"\"),\n", 212 word16 then indent + "with " + name + " = find_int16_list("+type_msg+", \""+field_name+"\"),\n",
211 word32 then indent + "with " + name + " = find_int32_list("+type_msg+", \""+field_name+"\"),\n", 213 word32 then indent + "with " + name + " = find_int32_list("+type_msg+", \""+field_name+"\"),\n",
212 string then indent + "with " + name + " = find_string_list("+type_msg+", \""+field_name+"\"),\n", 214 string then indent + "with " + name + " = find_string_list("+type_msg+", \""+field_name+"\"),\n",
213 - float then indent + "with " + name + " = find_float32_list("+type_msg+", \""+field_name+"\"),\n", 215 + float then indent + "with " + name + " = find_float64_list("+type_msg+", \""+field_name+"\"),\n",
  216 +// float32 then indent + "with " + name + " = find_float32_list("+type_msg+", \""+field_name+"\"),\n",
214 // float64 then indent + "with " + name + " = find_float64_list("+type_msg+", \""+field_name+"\"),\n", 217 // float64 then indent + "with " + name + " = find_float64_list("+type_msg+", \""+field_name+"\"),\n",
215 ds_type(type_name) then 218 ds_type(type_name) then
216 brace_counter <- *brace_counter + 1; 219 brace_counter <- *brace_counter + 1;
@@ -259,10 +262,13 @@ public define String @@ -259,10 +262,13 @@ public define String
259 indent + "if find_string("+type_msg+", \""+field_name+"\")"+" is {failure then failure, success("+name+") then\n", 262 indent + "if find_string("+type_msg+", \""+field_name+"\")"+" is {failure then failure, success("+name+") then\n",
260 float then 263 float then
261 brace_counter <- (*brace_counter + 1); 264 brace_counter <- (*brace_counter + 1);
262 - indent + "if find_float32("+type_msg+", \""+field_name+"\)"+" is {failure then failure, success("+name+") then\n", 265 + indent + "if find_float64("+type_msg+", \""+field_name+"\")"+" is {failure then failure, success("+name+") then\n",
  266 +// float32 then
  267 +// brace_counter <- (*brace_counter + 1);
  268 +// indent + "if find_float32("+type_msg+", \""+field_name+"\")"+" is {failure then failure, success("+name+") then\n",
263 // float64 then 269 // float64 then
264 // brace_counter <- (*brace_counter + 1); 270 // brace_counter <- (*brace_counter + 1);
265 -// indent + "if find_float64("+type_msg+", \""+field_name+"\)"+" is {failure then failure, success("+name+") then\n", 271 +// indent + "if find_float64("+type_msg+", \""+field_name+"\")"+" is {failure then failure, success("+name+") then\n",
266 ds_type(type_name) then 272 ds_type(type_name) then
267 brace_counter <- (*brace_counter + 2); 273 brace_counter <- (*brace_counter + 2);
268 indent + "if find_message("+type_msg+", \""+field_name+"\")"+" is {failure then failure, success("+name+"_msg) then\n"+ 274 indent + "if find_message("+type_msg+", \""+field_name+"\")"+" is {failure then failure, success("+name+"_msg) then\n"+