[gt-users] skeleton code generator script

Sascha Steinbiss steinbiss at zbh.uni-hamburg.de
Mon Jan 25 11:09:26 CET 2010


On 01/24/2010 04:14 PM, Giorgio Gonnella wrote:
> Hi gt users,

Hi Giorgio,

> this morning, I was having a look to the scripts I wrote during the last months
> and I found one that may eventually be interesting for someone else too.

[snip]

Yes, I think it actually is quite useful to avoid repetitive (and
error-prone) copy&paste sessions of boilerplate code.
However, I have two small suggestions regarding the code conventions
(are they yet documented somewhere?):

- When declaring pointers, the asterisk(*) usually is attached to the
  variable name, not to the type. That is, we write

    int *var;

  not

    int* var;

- Generated C class files have a trailing empty line, which is reported
  by scripts/src_check.

Otherwise I like it. Maybe someday it could even generate interface and
implementation scaffolds, because IMHO those are the most tedious to write.

Sascha


-- 
Sascha Steinbiss
Center for Bioinformatics
University of Hamburg
Bundesstr. 43
20146 Hamburg
Germany

Email:  steinbiss at zbh.uni-hamburg.de
URL:    http://www.zbh.uni-hamburg.de/steinbiss
Phone:  +49 (40) 42838 7322
FAX:    +49 (40) 42838 7312



More information about the gt-users mailing list