nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/model: model_visitor uses MEntity::visibility
[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
e9b46d2
..
5181198
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::string
+import core::text
extern class IntPtr `{ int* `}
new (v: Int) `{
extern class IntPtr `{ int* `}
new (v: Int) `{
@@
-24,9
+24,9
@@
extern class IntPtr `{ int* `}
`}
redef fun to_s import NativeString, NativeString.to_s `{
`}
redef fun to_s import NativeString, NativeString.to_s `{
- int len = snprintf(NULL, 0, "%d", *recv) + 1;
+ int len = snprintf(NULL, 0, "%d", *self) + 1;
char *c = new_NativeString(len);
char *c = new_NativeString(len);
- sprintf(c, "%d", *recv);
+ sprintf(c, "%d", *self);
return NativeString_to_s(c);
`}
end
return NativeString_to_s(c);
`}
end