summaryrefslogtreecommitdiff
path: root/src/bin/eolian_mono
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2018-03-22 13:17:42 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2018-04-03 17:29:41 -0300
commitd1e7a9474cc8dca46aa2c1eec7adac19a9fa84b0 (patch)
treedef4bd458c9c911bca96c631ead35be919a7d225 /src/bin/eolian_mono
parenteac568f6dcdfdd8ab79d020e6a82a4b8666d17de (diff)
csharp: Fix typo in generated code.
Diffstat (limited to 'src/bin/eolian_mono')
-rw-r--r--src/bin/eolian_mono/eolian/mono/parameter.hh16
-rw-r--r--src/bin/eolian_mono/eolian/mono/struct_definition.hh10
2 files changed, 13 insertions, 13 deletions
diff --git a/src/bin/eolian_mono/eolian/mono/parameter.hh b/src/bin/eolian_mono/eolian/mono/parameter.hh
index 0487ee22b3..615b06fb35 100644
--- a/src/bin/eolian_mono/eolian/mono/parameter.hh
+++ b/src/bin/eolian_mono/eolian/mono/parameter.hh
@@ -554,7 +554,7 @@ struct native_convert_in_variable_generator
554 else if (need_struct_conversion(regular)) 554 else if (need_struct_conversion(regular))
555 { 555 {
556 return as_generator( 556 return as_generator(
557 "var " << string << " = " << type << "_StructConvertion.ToExternal(" << escape_keyword(param.param_name) << ");\n" 557 "var " << string << " = " << type << "_StructConversion.ToExternal(" << escape_keyword(param.param_name) << ");\n"
558 ).generate(sink, std::make_tuple(in_variable_name(param.param_name), param.type), context); 558 ).generate(sink, std::make_tuple(in_variable_name(param.param_name), param.type), context);
559 } 559 }
560 else if (param.type.c_type == "Eina_Binbuf *" || param.type.c_type == "const Eina_Binbuf *") 560 else if (param.type.c_type == "Eina_Binbuf *" || param.type.c_type == "const Eina_Binbuf *")
@@ -622,7 +622,7 @@ struct convert_in_variable_generator
622 else if (need_struct_conversion(regular)) 622 else if (need_struct_conversion(regular))
623 { 623 {
624 return as_generator( 624 return as_generator(
625 "var " << string << " = " << type << "_StructConvertion.ToInternal(" << escape_keyword(param.param_name) << ");\n" 625 "var " << string << " = " << type << "_StructConversion.ToInternal(" << escape_keyword(param.param_name) << ");\n"
626 ).generate(sink, std::make_tuple(in_variable_name(param.param_name), param.type), context); 626 ).generate(sink, std::make_tuple(in_variable_name(param.param_name), param.type), context);
627 } 627 }
628 else if (param.type.c_type == "Eina_Binbuf *" || param.type.c_type == "const Eina_Binbuf *") 628 else if (param.type.c_type == "Eina_Binbuf *" || param.type.c_type == "const Eina_Binbuf *")
@@ -883,7 +883,7 @@ struct convert_out_assign_generator
883 else if (need_struct_conversion(regular)) 883 else if (need_struct_conversion(regular))
884 { 884 {
885 return as_generator( 885 return as_generator(
886 string << " = " << type << "_StructConvertion.ToExternal(" << out_variable_name(param.param_name) << ");\n" 886 string << " = " << type << "_StructConversion.ToExternal(" << out_variable_name(param.param_name) << ");\n"
887 ).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type), context); 887 ).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type), context);
888 } 888 }
889 else if (param_is_acceptable(param, "Eina_Binbuf *", WANT_OWN, WANT_OUT) 889 else if (param_is_acceptable(param, "Eina_Binbuf *", WANT_OWN, WANT_OUT)
@@ -966,7 +966,7 @@ struct native_convert_in_ptr_assign_generator
966 if (param_should_use_in_var(param, true) && param.type.is_ptr && !param.type.has_own && need_struct_conversion(regular)) 966 if (param_should_use_in_var(param, true) && param.type.is_ptr && !param.type.has_own && need_struct_conversion(regular))
967 { 967 {
968 return as_generator( 968 return as_generator(
969 string << " = " << type << "_StructConvertion.ToInternal(" << in_variable_name(param.param_name) << ");\n" 969 string << " = " << type << "_StructConversion.ToInternal(" << in_variable_name(param.param_name) << ");\n"
970 ).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type), context); 970 ).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type), context);
971 } 971 }
972 972
@@ -983,7 +983,7 @@ struct convert_in_ptr_assign_generator
983 if (param_should_use_in_var(param, true) && param.type.is_ptr && !param.type.has_own && need_struct_conversion(regular)) 983 if (param_should_use_in_var(param, true) && param.type.is_ptr && !param.type.has_own && need_struct_conversion(regular))
984 { 984 {
985 return as_generator( 985 return as_generator(
986 string << " = " << type << "_StructConvertion.ToExternal(" << in_variable_name(param.param_name) << ");\n" 986 string << " = " << type << "_StructConversion.ToExternal(" << in_variable_name(param.param_name) << ");\n"
987 ).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type), context); 987 ).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type), context);
988 } 988 }
989 989
@@ -1021,7 +1021,7 @@ struct convert_return_generator
1021 else if (need_struct_conversion(regular)) 1021 else if (need_struct_conversion(regular))
1022 { 1022 {
1023 return as_generator( 1023 return as_generator(
1024 "return " << type << "_StructConvertion.ToExternal(_ret_var);\n" 1024 "return " << type << "_StructConversion.ToExternal(_ret_var);\n"
1025 ).generate(sink, ret_type, context); 1025 ).generate(sink, ret_type, context);
1026 } 1026 }
1027 else if (ret_type.c_type == "Eina_Binbuf *" || ret_type.c_type == "const Eina_Binbuf *") 1027 else if (ret_type.c_type == "Eina_Binbuf *" || ret_type.c_type == "const Eina_Binbuf *")
@@ -1089,7 +1089,7 @@ struct native_convert_out_assign_generator
1089 else if (need_struct_conversion(regular)) 1089 else if (need_struct_conversion(regular))
1090 { 1090 {
1091 return as_generator( 1091 return as_generator(
1092 string << " = " << type << "_StructConvertion.ToInternal(" << string << ");\n" 1092 string << " = " << type << "_StructConversion.ToInternal(" << string << ");\n"
1093 ).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type, out_variable_name(param.param_name)), context); 1093 ).generate(sink, std::make_tuple(escape_keyword(param.param_name), param.type, out_variable_name(param.param_name)), context);
1094 } 1094 }
1095 else if (param_is_acceptable(param, "Eina_Stringshare *", !WANT_OWN, WANT_OUT)) 1095 else if (param_is_acceptable(param, "Eina_Stringshare *", !WANT_OWN, WANT_OUT))
@@ -1222,7 +1222,7 @@ struct native_convert_return_generator
1222 else if (need_struct_conversion(regular)) 1222 else if (need_struct_conversion(regular))
1223 { 1223 {
1224 return as_generator( 1224 return as_generator(
1225 "return " << type << "_StructConvertion.ToInternal(_ret_var);\n" 1225 "return " << type << "_StructConversion.ToInternal(_ret_var);\n"
1226 ).generate(sink, ret_type, context); 1226 ).generate(sink, ret_type, context);
1227 } 1227 }
1228 else if (ret_type.c_type == "const char *") 1228 else if (ret_type.c_type == "const char *")
diff --git a/src/bin/eolian_mono/eolian/mono/struct_definition.hh b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
index 2382368bcd..f772564440 100644
--- a/src/bin/eolian_mono/eolian/mono/struct_definition.hh
+++ b/src/bin/eolian_mono/eolian/mono/struct_definition.hh
@@ -140,12 +140,12 @@ struct struct_internal_definition_generator
140 scope_tab << "///<summary>Implicit conversion to the internal/marshalling representation.</summary>\n" 140 scope_tab << "///<summary>Implicit conversion to the internal/marshalling representation.</summary>\n"
141 << scope_tab << "public static implicit operator " << string << "(" << string << " struct_)\n" 141 << scope_tab << "public static implicit operator " << string << "(" << string << " struct_)\n"
142 << scope_tab << "{\n" 142 << scope_tab << "{\n"
143 << scope_tab << scope_tab << "return " << string << "_StructConvertion.ToExternal(struct_);\n" 143 << scope_tab << scope_tab << "return " << string << "_StructConversion.ToExternal(struct_);\n"
144 << scope_tab << "}\n" 144 << scope_tab << "}\n"
145 << scope_tab << "///<summary>Implicit conversion to the managed representation.</summary>\n" 145 << scope_tab << "///<summary>Implicit conversion to the managed representation.</summary>\n"
146 << scope_tab << "public static implicit operator " << string << "(" << string << " struct_)\n" 146 << scope_tab << "public static implicit operator " << string << "(" << string << " struct_)\n"
147 << scope_tab << "{\n" 147 << scope_tab << "{\n"
148 << scope_tab << scope_tab << "return " << string << "_StructConvertion.ToInternal(struct_);\n" 148 << scope_tab << scope_tab << "return " << string << "_StructConversion.ToInternal(struct_);\n"
149 << scope_tab << "}\n" 149 << scope_tab << "}\n"
150 ).generate(sink, std::make_tuple(external_name, internal_name, external_name, 150 ).generate(sink, std::make_tuple(external_name, internal_name, external_name,
151 internal_name, external_name, external_name), context)) 151 internal_name, external_name, external_name), context))
@@ -201,7 +201,7 @@ struct to_internal_field_convert_generator
201 else if (need_struct_conversion(regular)) 201 else if (need_struct_conversion(regular))
202 { 202 {
203 if (!as_generator( 203 if (!as_generator(
204 scope_tab << scope_tab << "_internal_struct." << string << " = " << type << "_StructConvertion.ToInternal(_external_struct." << string << ");\n") 204 scope_tab << scope_tab << "_internal_struct." << string << " = " << type << "_StructConversion.ToInternal(_external_struct." << string << ");\n")
205 .generate(sink, std::make_tuple(field_name, field.type, field_name), context)) 205 .generate(sink, std::make_tuple(field_name, field.type, field_name), context))
206 return false; 206 return false;
207 } 207 }
@@ -311,7 +311,7 @@ struct to_external_field_convert_generator
311 else if (need_struct_conversion(regular)) 311 else if (need_struct_conversion(regular))
312 { 312 {
313 if (!as_generator( 313 if (!as_generator(
314 scope_tab << scope_tab << "_external_struct." << string << " = " << type << "_StructConvertion.ToExternal(_internal_struct." << string << ");\n") 314 scope_tab << scope_tab << "_external_struct." << string << " = " << type << "_StructConversion.ToExternal(_internal_struct." << string << ");\n")
315 .generate(sink, std::make_tuple(field_name, field.type, field_name), context)) 315 .generate(sink, std::make_tuple(field_name, field.type, field_name), context))
316 return false; 316 return false;
317 } 317 }
@@ -365,7 +365,7 @@ struct struct_binding_conversion_functions_generator
365 // Open conversion class 365 // Open conversion class
366 if (!as_generator 366 if (!as_generator
367 ( 367 (
368 "internal static class " << string << "_StructConvertion\n{\n" 368 "internal static class " << string << "_StructConversion\n{\n"
369 ) 369 )
370 .generate(sink, struct_.cxx_name, context)) 370 .generate(sink, struct_.cxx_name, context))
371 return false; 371 return false;