nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
parser: `Visitor::visit` does not accepts `null`
[nit.git]
/
src
/
separate_options.nit
diff --git
a/src/separate_options.nit
b/src/separate_options.nit
index
bdc336c
..
8ebe70e
100644
(file)
--- a/
src/separate_options.nit
+++ b/
src/separate_options.nit
@@
-22,6
+22,7
@@
import compiling
# only to order correctly redefs of compile_separate_module
import native_interface
# only to order correctly redefs of compile_separate_module
import native_interface
+import ffi
redef class ToolContext
# all ops precised in .ops files
redef class ToolContext
# all ops precised in .ops files
@@
-41,7
+42,7
@@
redef class ToolContext
fun integrate_separate_options( options : String, mod : MMModule )
do
fun integrate_separate_options( options : String, mod : MMModule )
do
- for line in options.split do
+ for line in options.split_with('\n') do
line = line.strip_extension( "\n" )
separate_options.parse( line.split_with( ' ' ) )
var rest = new Array[String]
line = line.strip_extension( "\n" )
separate_options.parse( line.split_with( ' ' ) )
var rest = new Array[String]