nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Use new constructors
[nit.git]
/
src
/
ffi
/
c.nit
diff --git
a/src/ffi/c.nit
b/src/ffi/c.nit
index
44841a8
..
6fba61a
100644
(file)
--- a/
src/ffi/c.nit
+++ b/
src/ffi/c.nit
@@
-84,11
+84,6
@@
class ForeignCType
super ForeignType
redef var ctype: String
super ForeignType
redef var ctype: String
-
- init(ctype: String)
- do
- self.ctype = ctype
- end
end
redef class NitniCallback
end
redef class NitniCallback
@@
-118,7
+113,7
@@
end
class ToCCallContext
super CallContext
class ToCCallContext
super CallContext
- private init do end
+ # TODO: private init because singleton instance (see `to_c_call_context`)
redef fun name_mtype(mtype)
do
redef fun name_mtype(mtype)
do
@@
-131,7
+126,7
@@
end
class FromCCallContext
super CallContext
class FromCCallContext
super CallContext
- private init do end
+ # TODO: private init because singleton instance (see `from_c_call_context`)
redef fun name_mtype(mtype) do return mtype.cname
end
redef fun name_mtype(mtype) do return mtype.cname
end