Merge branch 'master' of gitlab.com:gambas/gambas

This commit is contained in:
gambas 2019-01-01 15:17:06 +01:00
commit 1919f6ab4c
3 changed files with 7 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View file

@ -2,13 +2,13 @@
Title=gbs3
Startup=MMain
Icon=icon.png
Version=3.11.90
Version=3.12.0
VersionFile=1
Component=gb.eval
Description="Gambas Script"
Authors="Fabien Bodard, Benoit Minisini"
Arguments=[["-e","-p","for each {s}s in dir(\"/\"):print s:next"]]
CurrentArgument=0
Arguments=[["--help"],["-e","For i as Integer To 10:Print \"Hello World\":Next"]]
CurrentArgument=2
TabSize=2
Language=fr
Maintainer=benoit

View file

@ -502,7 +502,9 @@ Private Sub GenerateFilesFromArgs(sLine As String)
sCode &= s
Next
$aVarsDecl.Clear
If $bPrecompiler Then
For Each s In Split(sCode, "\n")
sNew &= PrecompileLine(s) & "\n"
@ -511,9 +513,10 @@ Private Sub GenerateFilesFromArgs(sLine As String)
For i = 0 To $aVarsDecl.Max
If InStr(sNew, $aVarsDecl[i], 0, gb.IgnoreCase) Then $aVarsDecl[i] = ""
Next
sCode = sNew
Endif
scode = "Public Sub Main()\n" & $aVarsDecl.Join("\n") & "\n" & sNew
scode = "Public Sub Main()\n" & $aVarsDecl.Join("\n") & "\n" & sCode
sCode &= "\nEnd\n"
Print #$hOutFile, sCode