[fpc-pascal] FreePascal Coding style
Graeme Geldenhuys
graemeg.lists at gmail.com
Mon Jan 21 13:01:02 CET 2008
On 21/01/2008, Vinzent Hoefler <JeLlyFish.software at gmx.net> wrote:
>
> As an example where most tools just put out nonsense, consider this:
>
> |type
> | CPU_Ins = (Add, Sub, Mul, Div,
> | Jnz, Jz, Jnc, Jc,
> | Call, Ret,
> | Push, Pop,
> | ...);
This is so easy to accomplish with 'elastic tabstops' (ET). ET is all
about keeping alignment of text in columns. Trailing comments, column
in code like you shown above etc..Just watch the flash demo of ET or
try the Java example (though a bit dated I believe).
> So what does the tool do? Reformat it to some kind of coding standard
> like that:
>
> type CPU_Ins = (Add, Sub, Mul, Div, Jnz, Jz, Jnc,
> Jc, Call, Ret, Push, Pop, ...)
ET doesn't do this!
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
More information about the fpc-pascal
mailing list