nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: lib/github: uses nitcorn to listen Github hook events.
[nit.git]
/
src
/
ffi
/
c.nit
diff --git
a/src/ffi/c.nit
b/src/ffi/c.nit
index
48d4343
..
ebd2277
100644
(file)
--- a/
src/ffi/c.nit
+++ b/
src/ffi/c.nit
@@
-68,12
+68,16
@@
redef class AExternCodeBlock
end
redef class Location
end
redef class Location
- fun as_line_pragma: String do return "#line {line_start} \"{file.filename}\"\n"
+ fun as_line_pragma: String do return "#line {line_start-1} \"{file.filename}\"\n"
end
redef class MModule
end
redef class MModule
- var c_compiler_options = "" is writable
- var c_linker_options = "" is writable
+ var cflags = "" is writable
+ var ldflags = "" is writable
+
+ # Additional libraries needed for the compilation
+ # Will be used with pkg-config
+ var pkgconfigs = new Array[String]
end
class ForeignCType
end
class ForeignCType