summaryrefslogtreecommitdiff
path: root/src/tests/eolian_cxx
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-09-22 17:10:42 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-09-22 17:10:42 +0200
commitf36e5bd543a1fed2bc93bc803e326684269e28d0 (patch)
tree78095130c96a60af66a74c8fd1859b8176cddaa1 /src/tests/eolian_cxx
parentfdd27cadf837bf3df7e8174030b3630d2649350b (diff)
downloadefl-f36e5bd543a1fed2bc93bc803e326684269e28d0.tar.gz
eolian: add mstring
This is a new type representing a mutable string (no const). Regular strings cannot be made mutable with @owned because they might be hidden behind typedefs.
Diffstat (limited to 'src/tests/eolian_cxx')
-rw-r--r--src/tests/eolian_cxx/complex.eo4
-rw-r--r--src/tests/eolian_cxx/name1_name2_type_generation.eo4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/eolian_cxx/complex.eo b/src/tests/eolian_cxx/complex.eo
index df1c337b08..b9442a2ef1 100644
--- a/src/tests/eolian_cxx/complex.eo
+++ b/src/tests/eolian_cxx/complex.eo
@@ -40,7 +40,7 @@ class Complex (Efl.Object)
}
instringowncont {
params {
- l: list<string @owned>;
+ l: list<mstring @owned>;
}
}
instringcontown {
@@ -121,7 +121,7 @@ class Complex (Efl.Object)
}
outstringowncont {
params {
- @out l: list<string @owned>;
+ @out l: list<mstring @owned>;
}
}
outstringcontown {
diff --git a/src/tests/eolian_cxx/name1_name2_type_generation.eo b/src/tests/eolian_cxx/name1_name2_type_generation.eo
index 833a54059b..ee4d044a36 100644
--- a/src/tests/eolian_cxx/name1_name2_type_generation.eo
+++ b/src/tests/eolian_cxx/name1_name2_type_generation.eo
@@ -56,7 +56,7 @@ class Name1.Name2.Type_Generation (Efl.Object)
}
instringown {
params {
- @in v: string @owned;
+ @in v: mstring @owned;
}
}
instringptrown {
@@ -102,7 +102,7 @@ class Name1.Name2.Type_Generation (Efl.Object)
return: ptr(string);
}
returnstringown {
- return: string @owned;
+ return: mstring @owned;
}
returnstringownptr {
return: ptr(string) @owned;