nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated `tests/syntax_callref.nit`
[nit.git]
/
tests
/
test_ffi_c_new_extern.nit
diff --git
a/tests/test_ffi_c_new_extern.nit
b/tests/test_ffi_c_new_extern.nit
index
091c999
..
da5c83c
100644
(file)
--- a/
tests/test_ffi_c_new_extern.nit
+++ b/
tests/test_ffi_c_new_extern.nit
@@
-14,7
+14,7
@@
# Test callback to an extern constructor from extern code
# Test callback to an extern constructor from extern code
-import standard::text
+import core::text
extern class IntPtr `{ int* `}
new (v: Int) `{
extern class IntPtr `{ int* `}
new (v: Int) `{
@@
-23,11
+23,11
@@
extern class IntPtr `{ int* `}
return r;
`}
return r;
`}
- redef fun to_s import NativeString, NativeString.to_s `{
+ redef fun to_s import CString, CString.to_s `{
int len = snprintf(NULL, 0, "%d", *self) + 1;
int len = snprintf(NULL, 0, "%d", *self) + 1;
- char *c = new_NativeString(len);
+ char *c = new_CString(len);
sprintf(c, "%d", *self);
sprintf(c, "%d", *self);
- return NativeString_to_s(c);
+ return CString_to_s(c);
`}
end
`}
end