FreeBasic IDE-poseidonFB(Update 2024.03.03)

User projects written in or related to FreeBASIC.
Post Reply
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2022.02.25)

Post by Kuan Hsu »

UEZ wrote: Mar 03, 2022 8:29If you contract all then the next functions will be hidden. I know that it might be difficult because of the ASM commands which uses also FB.

Thx.
Yes, it's because "Sub" instruction in Assembly, I need check and do somethings in the scintilla code, maybe later...

I need some help:

Code: Select all

Sub REG_AX, REG_BP
Sub REG_ACCESS Ptr Y_OFF, 1
About SUB syntax, next next token after SUB must is comma or ptr?
Please test(Win DLL): https://www.mediafire.com/file/mdvn76s6 ... la.7z/file
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2022.02.25)

Post by UEZ »

SUB <target operand>,<source operand>
The operand can also be a pointer or Sub can only be one operand such as SUB bl.

I tested the iup_scintilla.dll and looks good now - I can contract the function. :)

Thx.
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2022.02.25)

Post by Kuan Hsu »

UEZ wrote: Mar 06, 2022 14:24 SUB <target operand>,<source operand>
The operand can also be a pointer or Sub can only be one operand such as SUB bl.

I tested the iup_scintilla.dll and looks good now - I can contract the function. :)

Thx.
I modified LexBasic.cxx in scintilla, if we got sub token, check if next next token is ptr or comma (,), it should be asm keyword and no fold.
but:

Code: Select all

sub [L6], eax
Is it corrent syntax?
If yes, I'll add check if next token is left bracket ([), no fold.
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2022.02.25)

Post by UEZ »

Kuan Hsu wrote: Mar 07, 2022 2:28
UEZ wrote: Mar 06, 2022 14:24 SUB <target operand>,<source operand>
The operand can also be a pointer or Sub can only be one operand such as SUB bl.

I tested the iup_scintilla.dll and looks good now - I can contract the function. :)

Thx.
I modified LexBasic.cxx in scintilla, if we got sub token, check if next next token is ptr or comma (,), it should be asm keyword and no fold.
but:

Code: Select all

sub [L6], eax
Is it corrent syntax?
If yes, I'll add check if next token is left bracket ([), no fold.
As I'm not that familiar with assembler I assume that this is not possible but maybe SARG can jump-in.
SARG
Posts: 1756
Joined: May 27, 2005 7:15
Location: FRANCE

Re: FreeBasic IDE-poseidonFB(Update 2022.02.25)

Post by SARG »

Some examples (64bit) I thought of. No error when assembling.
But maybe not exhaustive.

Code: Select all

asm
		sub rax,rax
		sub qword ptr [rbp],rax  # byte/word/dword/qword
		sub [rax],rdx
		sub test[rip],rax
		sub 12[rbp],rax
End Asm
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2022.04.05)

Post by UEZ »

With version 2022.04.05 "Contract All" doesn't work properly anymore.

Have a look to the screenshot:
Image
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2022.04.05)

Post by Kuan Hsu »

UEZ wrote: Apr 05, 2022 21:34 With version 2022.04.05 "Contract All" doesn't work properly anymore.
LexBasic.cxx ( iup_scintilla ) bug!!
Image
If the default parameter exists, the issue occurs.

I'll fix and commit later, sorry.....
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2022.04.07)

Post by UEZ »

2022.04.07 looks good now.

Edit: iup.DLL is crashing often

Faulting application name: poseidonFB.exe, version: 1.2.3.4, time stamp: 0x00000000
Faulting module name: iup.DLL, version: 3.30.0.0, time stamp: 0x6246f4b7
Exception code: 0xc000041d
Fault offset: 0x00011cc0



Thanks.
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2022.04.07)

Post by Kuan Hsu »

UEZ wrote: Apr 06, 2022 17:43 2022.04.07 looks good now.

Edit: iup.DLL is crashing often

Faulting application name: poseidonFB.exe, version: 1.2.3.4, time stamp: 0x00000000
Faulting module name: iup.DLL, version: 3.30.0.0, time stamp: 0x6246f4b7
Exception code: 0xc000041d
Fault offset: 0x00011cc0



Thanks.
Still while open new document?
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2022.04.07)

Post by UEZ »

Kuan Hsu wrote: Apr 07, 2022 5:01
UEZ wrote: Apr 06, 2022 17:43 2022.04.07 looks good now.

Edit: iup.DLL is crashing often

Faulting application name: poseidonFB.exe, version: 1.2.3.4, time stamp: 0x00000000
Faulting module name: iup.DLL, version: 3.30.0.0, time stamp: 0x6246f4b7
Exception code: 0xc000041d
Fault offset: 0x00011cc0



Thanks.
Still while open new document?
No, opening seems to work properly. It crashes sometimes when I try to resize the output windows or after closing preference menu and clicking in the editor.
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2022.04.07)

Post by Kuan Hsu »

UEZ wrote: Apr 07, 2022 5:48 It crashes sometimes when I try to (1)resize the output windows or (2)after closing preference menu and clicking in the editor.
(1) I added a empty callback function to catch the split VALUECHANGED_CB signal.
(2) Added some checks about null pointer and modified preference close code.
Please test: https://www.mediafire.com/file/qvlpdcg ... od.7z/file
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2022.04.07)

Post by UEZ »

I will test it...

Thx.
UEZ
Posts: 972
Joined: May 05, 2017 19:59
Location: Germany

Re: FreeBasic IDE-poseidonFB(Update 2022.04.07)

Post by UEZ »

So far no crash, but the colors get corrupted when changing the color scheme

Dark scheme:
Image
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2022.04.07)

Post by Kuan Hsu »

UEZ wrote: Apr 08, 2022 20:25 So far no crash, but the colors get corrupted when changing the color scheme

Dark scheme:
Image
It's a good news. :D
The color scheme is Because I added dlgFore/dlgback/txtFore/txtBack, please check this one:
DARK.ini

Code: Select all

[color]
caretLine=0 0 0
cursor=255 255 255
selectionFore=255 255 255
selectionBack=0 128 0
linenumFore=255 255 255
linenumBack=30 30 30
fold=40 40 40
selAlpha=80
braceFore=255 0 0
braceBack=0 255 0
errorFore=102 69 3
errorBack=255 200 227
warningFore=0 0 255
warningBack=255 255 157
scintillaFore=255 255 255
scintillaBack=50 50 50
SCE_B_COMMENT_Fore=0 128 0
SCE_B_COMMENT_Back=50 50 50
SCE_B_NUMBER_Fore=128 128 64
SCE_B_NUMBER_Back=50 50 50
SCE_B_STRING_Fore=217 217 0
SCE_B_STRING_Back=50 50 50
SCE_B_PREPROCESSOR_Fore=0 0 255
SCE_B_PREPROCESSOR_Back=50 50 50
SCE_B_OPERATOR_Fore=128 255 255
SCE_B_OPERATOR_Back=50 50 50
SCE_B_IDENTIFIER_Fore=255 255 255
SCE_B_IDENTIFIER_Back=50 50 50
SCE_B_COMMENTBLOCK_Fore=0 128 0
SCE_B_COMMENTBLOCK_Back=50 50 50
projectFore=255 255 255
projectBack=60 60 60
outlineFore=255 255 255
outlineBack=60 60 60
dlgFore=240 240 240
dlgBack=0 0 0
txtFore=255 255 255
txtBack=32 32 32
outputFore=255 255 255
outputBack=80 80 80
searchFore=255 255 255
searchBack=80 80 80
prjTitle=128 128 128
prjSourceType=255 255 0
keyword0=255 128 64
keyword1=255 255 128
keyword2=0 255 128
keyword3=128 255 255
currentword=0 128 0
currentwordAlpha=80
keyword4=
keyword5=
Kuan Hsu
Posts: 586
Joined: Sep 16, 2007 15:12
Location: Taiwan

Re: FreeBasic IDE-poseidonFB(Update 2022.04.09)

Post by Kuan Hsu »

At rev.486, project / outline view layout can be changed, the main different I used IupFlatTree instead of IupTree, the result(appearance) is the non-native system scrollbar:
Image
It's Windows only and using by setting editorSettings.ini, add OutlineFlat=On /OFF at [size] blocks:
Image
Post Reply