| List: | Internals | « Previous MessageNext Message » | |
| From: | Ingo Strüwing | Date: | October 19 2009 3:32pm |
| Subject: | Style proposal [Re: Coding style changes of 2009-06-26 now in the guidelines] | ||
| View as plain text | |||
Hi Mark, thank you. I added it to the list of pending proposals: http://forge.mysql.com/wiki/Coding_Style#Pending_propsals MARK CALLAGHAN, 19.10.2009 17:07: ... > I don't expect existing code to be changed. But it would be nice for > people to slowly fix things when they edit code. My requests are: > 1) Use Unix style for functions (return type is int, 0 == success). > The current rule doesn't mention the return type. Do not use > bool/my_bool for this with FALSE==errror and TRUE==success in place of > 1. > 2) Use _Bool for my_bool on platforms that support C99 > 3) Do not use the literals 0 and 1 in place of FALSE and TRUE ... Regards Ingo -- Ingo Strüwing, Database Group Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Geschäftsführer: Thomas Schröder, Wolfgang Engels, Wolf Frenkel Vorsitzender des Aufsichtsrates: Martin Häring HRB München 161028
