Click! now does a few things with # directives.
1. If a # is followed by a space, the space is removed
... and only for #include ...
2. The word INCLUDE is converted to lower case
3. The filename is converted to upper case
4. The delimiters on the filename are changed to " if they are '
So...
# INCLUDE 'filename.ch'
... becomes ...
#include "FILENAME.CH"
---
The conversion of line elements for alignment of := was too aggressive.
I changed it so that it only tries to align := on lines that start with
variables. This works much better.
---
Optimized a few more places in the code in an attempt to squeeze every
ounce of speed out of Click!. Found a couple of pretty good speed
improvements.
---
The Declaration Buster can now convert older style code to use the
incremental operators ++, --, +=, -=, /=, *= and =
CONVERT_TO_INCREMENTOR=YES
Code style like:
s = s + 1
s := s - 1
x := x + ( anyvar + anyfunc() )
test=test-1// with a comment
q = q * 14
... now converts to ...
s ++
s --
x += ( anyvar + anyfunc() )
test -- // with a comment
q *= 14
It will not convert more complex forms, like:
x[ 2 ] = x[ 2 ] + 1
---
The Declaration Buster can now convert the old style function calls to
the new style. The CLICK.INI directive which controls this is:
CONVERT_OLD_STYLE_FUNCTIONS=YES (defaults to NO)
With this set to YES, ...
do test
do test // a comment
do test with a, c, somevar
do test with a, c, somevar // and a comment
... becomes ...
test()
test() // a comment
test( a, c, somevar )
test( a, c, somevar ) // and a comment