nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb9c1e1
)
lib/c: add doc on `NATIVE` and `native_array`
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 2 Dec 2014 21:28:56 +0000
(16:28 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 2 Dec 2014 21:29:13 +0000
(16:29 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/c.nit
patch
|
blob
|
history
diff --git
a/lib/c.nit
b/lib/c.nit
index
6c50cf8
..
3732085
100644
(file)
--- a/
lib/c.nit
+++ b/
lib/c.nit
@@
-23,7
+23,10
@@
intrude import standard::collection::array
abstract class CArray[E]
super AbstractArrayRead[E]
+ # The corresponding C type
type NATIVE: NativeCArray
+
+ # Pointer to the real C array
var native_array: NATIVE is noinit
private init(length: Int) do self._length = length