Commit 64fa3132d4399b01073d8ff95b8c0f35fc476817
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 | 65 | string then |
| 66 | 66 | "add_string("+type_msg+", \""+field_name+"\", _"+name+")", |
| 67 | 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 | 71 | // float64 then |
| 70 | 72 | // "add_float64("+type_msg+", \""+field_name+"\", _"+name+")", |
| 71 | 73 | ds_type(type_name) then |
| ... | ... | @@ -210,7 +212,8 @@ public define String |
| 210 | 212 | word16 then indent + "with " + name + " = find_int16_list("+type_msg+", \""+field_name+"\"),\n", |
| 211 | 213 | word32 then indent + "with " + name + " = find_int32_list("+type_msg+", \""+field_name+"\"),\n", |
| 212 | 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 | 217 | // float64 then indent + "with " + name + " = find_float64_list("+type_msg+", \""+field_name+"\"),\n", |
| 215 | 218 | ds_type(type_name) then |
| 216 | 219 | brace_counter <- *brace_counter + 1; |
| ... | ... | @@ -259,10 +262,13 @@ public define String |
| 259 | 262 | indent + "if find_string("+type_msg+", \""+field_name+"\")"+" is {failure then failure, success("+name+") then\n", |
| 260 | 263 | float then |
| 261 | 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 | 269 | // float64 then |
| 264 | 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 | 272 | ds_type(type_name) then |
| 267 | 273 | brace_counter <- (*brace_counter + 2); |
| 268 | 274 | indent + "if find_message("+type_msg+", \""+field_name+"\")"+" is {failure then failure, success("+name+"_msg) then\n"+ | ... | ... |