Re: Tool to rename a GObject written in C?



On Thu, 2015-09-10 at 19:22 +0200, Sébastien Wilmet wrote:
Hi,

Renaming a GObject written in C can be done with some sed substitutions,
but after that the indentation is broken.

Do you know a tool to rename a GObject while still keeping a good
indentation and coding style?

Builder?

[...]
In any case, it should be scriptable, to re-indent a list of files in
one command, for example after changing the namespace of a group of
GObjects.

For function definitions, I've already written a script:
https://github.com/swilmet/gnome-c-utils

It seems you are re-inventing the good old indent(1) utility.

http://linux.die.net/man/1/indent

-- 
Germán Poo-Caamaño
http://calcifer.org/



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