GnuCash developer documentation

David Hampton hampton@employees.org
23 Nov 2002 15:54:18 -0800


--=-p/CEBnW6eajpWcMp6XEH
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Sat, 2002-11-23 at 15:19, Conrad Canterford wrote:
> And this was decided a couple of years ago, although I don't think it
> ever got documented (the documentation was the code... :-)).

Last I heard the rule was to follow whatever style had been previously
used in the file. There was no consistent style for all of gnucash.

Is there any reason not to use the standard "gnu" coding style?  The
opening brace of a function is in column 0, tabs are four spaces,
indentation is easy to match up, etc.  It can also be trivially done by
running 'indent' with no arguments.  'info indent' will give you the
full details.

David

P.S. The default brace placement for an if block looks like this:

    if ()
      {
        something;
      }
    else
      {
        something else;
      }


--=-p/CEBnW6eajpWcMp6XEH
Content-Type: application/DEFANGED-17; name="signature_asc.DEFANGED-17"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA94BUplSwHWMdNRQQRAuLOAJ46+a4yCROyR/3D1h3iLuX0NQG0qwCg+LYL
7Nr4ujRN6HZLPnNkEcPcI5M=
=trb/
-----END PGP SIGNATURE-----

--=-p/CEBnW6eajpWcMp6XEH--