summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-07-15 16:28:44 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-08-16 17:05:00 -0300
commit309622b650a5366c28bdb286602764c12fdea0ef (patch)
tree6b6712f7bf6b5ced85f495f480c22d4cbe29ebea
parent230ca3aed1aa67025b78e80865b296733b40f640 (diff)
downloadefl-309622b650a5366c28bdb286602764c12fdea0ef.tar.gz
testgen: Slice fixes
-rw-r--r--src/scripts/testgen/ekeys.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/scripts/testgen/ekeys.py b/src/scripts/testgen/ekeys.py
index 1a0d6a4d51..42d9889f8d 100644
--- a/src/scripts/testgen/ekeys.py
+++ b/src/scripts/testgen/ekeys.py
@@ -84,6 +84,8 @@ class EMonoKeys(EKeys):
"accessor": "Eina.Accessor",
"strbuf": "Eina.Strbuf",
"Efl.Class": "System.Type",
+ "rw_slice": "Eina.RwSlice",
+ "slice": "Eina.Slice",
}
self.keywords = [
@@ -198,7 +200,7 @@ class EMonoKeys(EKeys):
if direction == direction.INOUT:
return "ref"
elif direction != direction.IN:
- if param.type.name in ("Eina.Slice", "Eina.Rw_Slice"):
+ if param.type.name in ("slice", "rw_slice"):
return "ref"
else:
return "out"
@@ -224,7 +226,7 @@ class EMonoKeys(EKeys):
new_type = self.dicttypes.get(
eotype.name, name_helpers.type_managed_name(eotype)
)
- if new_type != "int" and eotype.base_type:
+ if new_type not in ("Eina.RwSlice", "Eina.Slice") and eotype.base_type:
# Stringshare is a special case where its C# type differs if inside or outside
# a container:
# - Non-contained stringshares are directly converted to strings.