[Gambas-devel] gambas editor added PrettyPrinter

Charlie karl.reinl at ...16...
Sat Jul 17 18:07:23 CEST 2004


Benoit Minisini schrieb:

>On Monday 12 July 2004 00:46, Charlie Reinl wrote:
>  
>
>>Salut,
>>
>>based on 0.94 (not 0.94a) I added to the gb.qt.editor a PrettyPrinter.
>>( editor.TabLength return a int now, I changed it for this version)
>>............................
>>
>When you have an optional parameter in a method implementation, you must not 
>do:
>
>	if (MISSING(bUseTab))
>		VARG(bUseTab) = TRUE;
>
>because you are modifying the interpreter stack, and this could be dangerous!
>
>You should use the macro VARGOPT instead:  VARGOPT(bUseTab, TRUE)
>
>Regards,
>
>  
>
Salut Benoît,

Thanks for your help, now I don't modify the interpreter stack 
anymore,(So I hope)

I send you a gambas project (Indenter4-0.0.5.tar.gz) to test it and the
*.cpp and *.h files I changed (editor_PP2.tar.gz) , copy them to
/.../gambas-0.94/src/lib/qt/editor/ then compile/install it.

I changed the part with the optional parameters and left a bug, who 
skipt the leading Var-declarations outside
of proc/sub/functions.

Amicalement
Charlie

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Indenter4-0.0.5.tar.gz
Type: application/x-tar
Size: 15679 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20040717/58cf36e0/attachment.tar>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: editor_PP2.tar.gz
Type: application/x-tar
Size: 41556 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20040717/58cf36e0/attachment-0001.tar>


More information about the Devel mailing list