Skip to content

Commit bddaaa9

Browse files
Fix methods, add stuffs
1 parent 9f82af1 commit bddaaa9

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

Source/FreakC.bat

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ if "%helpCheck%" == "true" (
3131
)
3232
if "%1" == "--version" goto fcversion
3333
if "%2" == "--compile" set fccompile=true
34+
if "%2" == "--keep" (
35+
set keepmethod=true
36+
set keepinline=true
37+
set fccompile=true
38+
)
3439
if "%2" == "--candr" set fcread=true
3540
if "%2" == "--create" set fccreate=true
3641
if "%1" == "--shell" (
@@ -121,6 +126,17 @@ for /f "tokens=* delims= " %%x in (%output%.fclang) do (
121126
if exist !targetFile!.fclang call createFile.bat "!targetFile!"
122127
set deniedToken=true
123128
)
129+
if %%a == get_utils[] (
130+
if "!procadd!" == "true" (set outtar=!proctar!.bat) else if "!inlfadd!" == "true" (set outtar=!inlftar!.inline) else (set outtar=%output%.bat)
131+
(
132+
echo.set NLM=^^
133+
echo.
134+
echo.
135+
echo.set NL=^^^^^^%%NLM%%%%NLM%%^^%%NLM%%%%NLM%%
136+
echo.set LF=^^^^%%NL%%
137+
)>>!outtar!
138+
set deniedToken=true
139+
)
124140
if %%a == end[] set printString=!printString:end[]=exit /b 0!
125141
if %%a == gen_lib_func[] (
126142
call libgen !printString:gen_lib_func[] =!
@@ -195,10 +211,10 @@ for /f "tokens=* delims= " %%x in (%output%.fclang) do (
195211
echo !line:$this=%%v!>>!objname!!_name:~%%j!
196212
) else echo.!line!>>!objname!!_name:~%%j!
197213
)
214+
set line=
198215
)
199216
)
200217
)
201-
set line=
202218
)
203219
if exist !objname!.init.bat (
204220
for %%i in (!target!) do for %%j in (!objname!) do set printString=!printString:new[] %%i =call %%j.init.bat !
@@ -217,10 +233,10 @@ for /f "tokens=* delims= " %%x in (%output%.fclang) do (
217233
for /L %%c in (1 1 !slen!) do (
218234
set /p line=
219235
if "!line!" NEQ "" for %%v in (!classtar!) do echo.!line!>>!classtar!!name:~%%j!
236+
set line=
220237
)
221238
)
222239
)
223-
set line=
224240
)
225241
set deniedToken=true
226242
)
@@ -568,14 +584,14 @@ for /f "tokens=* delims= " %%x in (%output%.fclang) do (
568584
)
569585
)
570586
)
571-
if exist *.inline del /q *.inline
572-
if exist *.method del /q *.method
587+
if "%keepinline%" NEQ "true" if exist *.inline del /q *.inline
588+
if "%keepmethod%" NEQ "true" if exist *.method del /q *.method
573589
setlocal disabledelayedexpansion
574590
if "%fcread%" == "true" type %output%.bat
575591
if not "%fccompile%" == "true" if not "%fcread%" == "true" call %output%.bat
576592
exit /b
577593
:fcversion
578-
echo FreakC DevKit Version 0.19.3 BETA
594+
echo FreakC DevKit Version 0.19.4 BETA
579595
exit /b
580596

581597
:get_len

Source/createFile.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
freakc %~1 --compile
1+
freakc %~1 --keep

0 commit comments

Comments
 (0)