Re: Tool to rename a GObject written in C?

On Thu, Sep 10, 2015 at 07:22:04PM +0200, Sébastien Wilmet wrote:
For function definitions, I've already written a script:

For function calls, a script could be written to do the substitutions.
When the script detects that (1) an opening parenthesis is present
further on the same line and (2) the following lines are aligned on the
parenthesis, then adujst the alignment. A script that needs to fix
broken alignment is harder to write, so it's simpler if the re-alignment
is done at the same time as the substitution (assuming that the code is
initially well indented).

In the end I've written another script called lineup-substitution.

We are never better served than by ourself.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]