diff options
| author | ruki <[email protected]> | 2017-03-27 17:57:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-03-27 17:58:56 +0800 |
| commit | 71d627e4aa9b5780e63fc6b679c74548844c5feb (patch) | |
| tree | 46d8e8c874d045ca1f4d492b6edf82f5d716ae54 /xmake/languages | |
| parent | 235bb967883ab0686bab731c8e94a4a0bb7677ab (diff) | |
fix io.read and io.write raw lua api
Diffstat (limited to 'xmake/languages')
| -rw-r--r-- | xmake/languages/c++/check_main.lua | 2 | ||||
| -rw-r--r-- | xmake/languages/dlang/check_main.lua | 2 | ||||
| -rw-r--r-- | xmake/languages/golang/check_main.lua | 2 | ||||
| -rw-r--r-- | xmake/languages/objc++/check_main.lua | 2 | ||||
| -rw-r--r-- | xmake/languages/rust/check_main.lua | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/xmake/languages/c++/check_main.lua b/xmake/languages/c++/check_main.lua index f0c12b582..d5d434d8f 100644 --- a/xmake/languages/c++/check_main.lua +++ b/xmake/languages/c++/check_main.lua @@ -27,7 +27,7 @@ function main(sourcefile) -- load source code - local sourcecode = io.read(sourcefile) + local sourcecode = io.readfile(sourcefile) -- remove comment first sourcecode = sourcecode:gsub("/%*.-%*/", "") diff --git a/xmake/languages/dlang/check_main.lua b/xmake/languages/dlang/check_main.lua index f69c4b142..9eb1d43bb 100644 --- a/xmake/languages/dlang/check_main.lua +++ b/xmake/languages/dlang/check_main.lua @@ -26,7 +26,7 @@ function main(sourcefile) -- load source code - local sourcecode = io.read(sourcefile) + local sourcecode = io.readfile(sourcefile) -- remove comment first sourcecode = sourcecode:gsub("/%*.-%*/", "") diff --git a/xmake/languages/golang/check_main.lua b/xmake/languages/golang/check_main.lua index 8c7d2931e..62471650b 100644 --- a/xmake/languages/golang/check_main.lua +++ b/xmake/languages/golang/check_main.lua @@ -26,7 +26,7 @@ function main(sourcefile) -- load source code - local sourcecode = io.read(sourcefile) + local sourcecode = io.readfile(sourcefile) -- remove comment first sourcecode = sourcecode:gsub("/%*.-%*/", "") diff --git a/xmake/languages/objc++/check_main.lua b/xmake/languages/objc++/check_main.lua index f0c12b582..d5d434d8f 100644 --- a/xmake/languages/objc++/check_main.lua +++ b/xmake/languages/objc++/check_main.lua @@ -27,7 +27,7 @@ function main(sourcefile) -- load source code - local sourcecode = io.read(sourcefile) + local sourcecode = io.readfile(sourcefile) -- remove comment first sourcecode = sourcecode:gsub("/%*.-%*/", "") diff --git a/xmake/languages/rust/check_main.lua b/xmake/languages/rust/check_main.lua index a02da9d6f..75cd89356 100644 --- a/xmake/languages/rust/check_main.lua +++ b/xmake/languages/rust/check_main.lua @@ -26,7 +26,7 @@ function main(sourcefile) -- load source code - local sourcecode = io.read(sourcefile) + local sourcecode = io.readfile(sourcefile) -- remove comment first sourcecode = sourcecode:gsub("/%*.-%*/", "") |
