On 01/27/2012 03:07 PM, Tony Espy wrote:
> Charles inspired me to ask a few follow-up questions of my own!
>
> * larsu points out that only <glib.h> is required, not an
> additional include for <glib-object.h>; I looked at this, and can't
> quite grok how this chaining works as <glib.h> doesn't appear to
> pull in any of the GObject headers?
Sorry if I wasn't clear: glib-object.h includes glib.h, not the other
way around. (glib itself doesn't depend on gobject)
> [...] * Regarding line length... the vt130 comment was funny, but
> not a real justification. I would suggest checking out a few public
> C/C++ styleguides ( GTK+, Google Style Guides, ... ) for reference,
> most if not all recommend 80 char lines.
In general, I totally agree with a 80 char limit. However, the g*
libraries have an affinity towards fairly long function names, which
can make this hard to enforce sometimes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 01/27/2012 03:07 PM, Tony Espy wrote:
> Charles inspired me to ask a few follow-up questions of my own!
>
> * larsu points out that only <glib.h> is required, not an
> additional include for <glib-object.h>; I looked at this, and can't
> quite grok how this chaining works as <glib.h> doesn't appear to
> pull in any of the GObject headers?
Sorry if I wasn't clear: glib-object.h includes glib.h, not the other
way around. (glib itself doesn't depend on gobject)
> [...] * Regarding line length... the vt130 comment was funny, but
> not a real justification. I would suggest checking out a few public
> C/C++ styleguides ( GTK+, Google Style Guides, ... ) for reference,
> most if not all recommend 80 char lines.
In general, I totally agree with a 80 char limit. However, the g* enigmail. mozdev. org/
libraries have an affinity towards fairly long function names, which
can make this hard to enforce sometimes.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iQEcBAEBAgAGBQJ PIrXeAAoJEAbD1b cyW6kFyu8H/ 0wxSAHY4iEwIRUz hEkvFzFV uDmGs3QIldW1iV3 B2rTv4ZxXt3RECV UTsme0tCR7Gea+ oU81H 5QqOP4o/ tDbw3OaFoBIYfDN dCejaRjM1c6fip8 kOmtcfl2gdR qo3dFsy+ KNmEg1rHRwvjq9G VrkfJXywCylIkz6 3FIoHQijR7s 6CG5jAEU9FDcKgT g+KK622WqVWCy7B upp24LVEtdyuJO3 wuYseH2Xe9Kf dydkMHWiVR0L+ jXKuKzmoCio8p4L 0/Q//GwSuvILISn xysLU=
f/dkNSdWR9ODyOr
8lQKV0tP2E81g6H
PoonUiw8D9BT6gF
nr7hkO/
WI0pUAODJh3CAp/
=de0l
-----END PGP SIGNATURE-----