[Geany-devel] struct names / geany macro
enrico.troeger at xxxxx
Wed May 28 15:45:38 UTC 2008
On Mon, 26 May 2008 13:03:21 +0100, Nick Treleaven
<nick.treleaven at btinternet.com> wrote:
> On Sun, 25 May 2008 22:20:01 +0200
> Enrico Tröger <enrico.troeger at uvena.de> wrote:
> > On Thu, 22 May 2008 18:36:11 +0100, Nick Treleaven
> > <nick.treleaven at btinternet.com> wrote:
> > > 1. Should we use underscores for struct names? E.g.
> > > _GeanyProject. I know GTK uses this, but I've read in C
> > > programming books that tag names with a leading underscore should
> > > not be used as the compiler uses them. Also it looks a bit ugly.
> > > But I don't know if there is a portability reason why GTK uses it.
> > I started using the underscores because I thought this is common
> > practise (at least I read a lot of code where underscores are used)
> > and at some point there were problems if structs and types had the
> > same name, so the easiest solution was to prefix the struct name
> > with
> Do you remember what problems there were?
Maybe I did something else wrong and it wasn't really related to the
struct names (weren't the first time...;-)).
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the Devel