nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
app.nit: id the platform at runtime
[nit.git]
/
tests
/
test_ffi_c_strings.nit
diff --git
a/tests/test_ffi_c_strings.nit
b/tests/test_ffi_c_strings.nit
index
aad8b05
..
3da9b4b
100644
(file)
--- a/
tests/test_ffi_c_strings.nit
+++ b/
tests/test_ffi_c_strings.nit
@@
-14,20
+14,20
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
-fun print_cstring(cstr: NativeString) `{
+fun print_cstring(cstr: CString) `{
printf("cstr-> %s\n", cstr);
`}
printf("cstr-> %s\n", cstr);
`}
-fun get_cstring: NativeString `{
+fun get_cstring: CString `{
return "char* from C";
`}
return "char* from C";
`}
-fun print_string(str: String) import String::to_cstring `{
+fun print_string(str: String) import String.to_cstring `{
printf("str-> %s\n", String_to_cstring(str) );
`}
printf("str-> %s\n", String_to_cstring(str) );
`}
-fun get_string: String import NativeString::to_s, String::output `{
- String str = NativeString_to_s("Nit string from C");
+fun get_string: String import CString.to_s, String.output `{
+ String str = CString_to_s("Nit string from C");
String_output(str);
printf("\n");
return str;
String_output(str);
printf("\n");
return str;