Pelles C > Add-ins

Comments automation addin

<< < (3/3)

frankie:
In the file "faddin.c", function "AddInMain", change the function and module comment sections from:

--- Code: ---AddCmd.idMenu = AIM_MENU_SOURCE;
--- End code ---

to

--- Code: ---AddCmd.idMenu = AIM_MENU_NOTHING;
--- End code ---

Miralex:
Big Thanks. It Work   :)


And I still have a proposition:
When I'm add a solid function comment  - it add's and cutting on some fixed strings. But it It would be nice if cutting where just sentence ended or finded 'line feed character'.

frankie:
I don't exactly catch what you mean.
Anyway to keep code simple I just get a line at time and if it ends with a space this means that the comment continues on the next line. A comment is closed when the last char in a line is != space.
To make it more flexible I should introduce REGEX to discriminate comments start and end, and this is somwhat complicate at this time.
Anyway your welcome to modify the code as per your preferences and I'll be glad to see your own implementation.

P.S. I'm still planning to add other features, as soon as I will have time, as automatic arguments listing for comment (inside a function comment) and the already promised automatic version resource updating.

Navigation

[0] Message Index

[*] Previous page

Go to full version