On Mon, 26 May 2008 13:03:21 +0100, Nick Treleaven nick.treleaven@btinternet.com wrote:
On Sun, 25 May 2008 22:20:01 +0200 Enrico Tröger enrico.troeger@uvena.de wrote:
On Thu, 22 May 2008 18:36:11 +0100, Nick Treleaven nick.treleaven@btinternet.com wrote:
...
- 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?
Unfortunately, not. Maybe I did something else wrong and it wasn't really related to the struct names (weren't the first time...;-)).
Regards, Enrico