getting rid of mkproto.sh from Samba3

Stefan (metze) Metzmacher metze at samba.org
Wed Jun 6 13:58:49 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Volker Lendecke schrieb:
> On Wed, Jun 06, 2007 at 10:38:07PM +1000, tridge at samba.org wrote:
>> nope. If we do it manually we will screw up, just like every other C
>> project has screwed it up. Maybe there is a perfect team of
>> programmers somewhere in the world, but we are not it. It's not
>> philosphy to realise that we are fallible.
> 
> I can certainly only speak for me, but for the ctdb protocol
> wrapper for S3 I coded up the attached little packet
> wrapper. It has helped me immensly to be forced to manually
> write down the header file in getting the abstraction in
> place.

Yes, it is always good to define the interface before doing the coding!
I typically do something like this but with structure hierachies in
within a header file or start like you've done but within a C file
returning NT_STATUS_NOT_IMPLEMENTED in the function bodies.
And when a sample caller of the API has all it needs I start
filling the function bodies.

The main thing I would like a tool for is syncing the header file with
the source file (it can be a manual called script), because syncing
prototypes and comments by hand is real pain and only lead to bugs...

metze
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFGZr2Zm70gjA5TCD8RAq1uAKDD9kf0X1nELU1R+p1898vW7rYdEwCeIeBh
ImuY7gvPt5zMEmnfMW2n1GA=
=C7sq
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list